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:
8
.github/workflows/python-package.yaml
vendored
8
.github/workflows/python-package.yaml
vendored
@@ -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
|
|
||||||
|
|||||||
@@ -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'):
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -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/*'],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user