1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

bumped minimum required python to 3.8

This commit is contained in:
Bastian Venthur
2021-02-13 13:34:24 +01:00
parent e972d90704
commit e52b1b7738
3 changed files with 5 additions and 11 deletions

View File

@@ -17,8 +17,6 @@ jobs:
- macos-latest - macos-latest
- windows-latest - windows-latest
python-version: python-version:
- 3.6
- 3.7
- 3.8 - 3.8
- 3.9 - 3.9
- pypy3 - pypy3
@@ -42,8 +40,4 @@ jobs:
- name: Run linter - name: Run linter
run: | run: |
flake8 -vv flake8
- name: Run tests
run: |
pytest

View File

@@ -85,9 +85,9 @@ class MarkdownLinkTreeprocessor(Treeprocessor):
def convert(self, url): def convert(self, url):
scheme, netloc, path, query, fragment = urlsplit(url) scheme, netloc, path, query, fragment = urlsplit(url)
# logger.debug( logger.debug(
# f'{url}: {scheme=} {netloc=} {path=} {query=} {fragment=}' f'{url}: {scheme=} {netloc=} {path=} {query=} {fragment=}'
# ) )
if (scheme or netloc or not path): if (scheme or netloc or not path):
return url return url
if path.endswith('.md'): if path.endswith('.md'):

View File

@@ -17,7 +17,7 @@ setup(
author='Bastian Venthur', author='Bastian Venthur',
author_email='mail@venthur.de', author_email='mail@venthur.de',
url='https://github.com/venthur/blag', url='https://github.com/venthur/blag',
python_requires='>=3', python_requires='>=3.8',
package_data={ package_data={
'blag': ['templates/*'], 'blag': ['templates/*'],
}, },