-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add python 3.11 and 3.12 support
- Loading branch information
1 parent
52fc520
commit d11ec93
Showing
7 changed files
with
88 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,52 @@ | ||
[tox] | ||
envlist = py38-django{32,42}, docs, quality | ||
envlist = py{38, 311}-django{42}, docs, quality | ||
|
||
[pytest] | ||
addopts = --cov web_fragments --cov-report term-missing --cov-report xml | ||
|
||
[testenv] | ||
deps = | ||
django32: Django>=3.2,<3.3 | ||
django42: Django>=4.2,<4.3 | ||
-r{toxinidir}/requirements/test.txt | ||
setenv = | ||
DJANGO_SETTINGS_MODULE = test_settings | ||
commands = | ||
python -Wd -m pytest {posargs} | ||
deps = | ||
django42: Django>=4.2,<4.3 | ||
-r{toxinidir}/requirements/test.txt | ||
setenv = | ||
DJANGO_SETTINGS_MODULE = test_settings | ||
commands = | ||
python -Wd -m pytest {posargs} | ||
|
||
[testenv:docs] | ||
setenv = | ||
DJANGO_SETTINGS_MODULE = test_settings | ||
PYTHONPATH = {toxinidir} | ||
allowlist_externals = | ||
make | ||
rm | ||
deps = | ||
-r{toxinidir}/requirements/doc.txt | ||
commands = | ||
doc8 --ignore-path docs/_build README.rst docs | ||
rm -f docs/web_fragments.rst | ||
rm -f docs/modules.rst | ||
make -C docs clean | ||
make -C docs html | ||
python setup.py bdist_wheel | ||
twine check dist/* | ||
setenv = | ||
DJANGO_SETTINGS_MODULE = test_settings | ||
PYTHONPATH = {toxinidir} | ||
allowlist_externals = | ||
make | ||
rm | ||
deps = | ||
-r{toxinidir}/requirements/doc.txt | ||
commands = | ||
doc8 --ignore-path docs/_build README.rst docs | ||
rm -f docs/web_fragments.rst | ||
rm -f docs/modules.rst | ||
make -C docs clean | ||
make -C docs html | ||
python setup.py bdist_wheel | ||
twine check dist/* | ||
|
||
[testenv:quality] | ||
setenv = | ||
DJANGO_SETTINGS_MODULE = test_settings | ||
PYTHONPATH = {toxinidir} | ||
allowlist_externals = | ||
make | ||
rm | ||
touch | ||
deps = | ||
-r{toxinidir}/requirements/doc.txt | ||
-r{toxinidir}/requirements/quality.txt | ||
-r{toxinidir}/requirements/test.txt | ||
commands = | ||
touch web_fragments/tests/__init__.py | ||
pylint web_fragments | ||
rm web_fragments/tests/__init__.py | ||
isort --check-only web_fragments manage.py setup.py test_settings.py | ||
make help | ||
setenv = | ||
DJANGO_SETTINGS_MODULE = test_settings | ||
PYTHONPATH = {toxinidir} | ||
allowlist_externals = | ||
make | ||
rm | ||
touch | ||
deps = | ||
-r{toxinidir}/requirements/doc.txt | ||
-r{toxinidir}/requirements/quality.txt | ||
-r{toxinidir}/requirements/test.txt | ||
commands = | ||
touch web_fragments/tests/__init__.py | ||
pylint web_fragments | ||
rm web_fragments/tests/__init__.py | ||
isort --check-only web_fragments manage.py setup.py test_settings.py | ||
make help | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
""" | ||
Web fragments. | ||
""" | ||
__version__ = '2.1.0' | ||
__version__ = '2.2.0' |