Skip to content

Commit

Permalink
some workarounds for py38
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Oct 27, 2023
1 parent 89cbe02 commit 865baa9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ packages = find:
python_requires = >=3.8
install_requires =
Jinja2>=2.11
importlib-resources; python_version<"3.9"
importlib-resources; python_version=="3.8"
[options.packages.find]
where = src
2 changes: 1 addition & 1 deletion src/json2daisy/json2daisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

try:
from importlib_resources import files as resource_files
from importlib_resources import files as resource_files # type: ignore
except ImportError:
from importlib.resources import files as resource_files

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ python =
; Test config
[testenv]
deps =
jinja2
-rrequirements.txt
pytest-cov
commands =
python -m pytest --cov-config=tox.ini --cov=json2daisy tests/
Expand All @@ -29,13 +29,13 @@ commands =

[testenv:mypy]
deps =
jinja2
-rrequirements.txt
types-setuptools
mypy
basepython =
python3
commands =
mypy .
mypy src tests

[run]
ignore = examples/*
Expand Down

0 comments on commit 865baa9

Please sign in to comment.