Skip to content

Commit

Permalink
build: adding python3.11 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 authored and feanil committed Mar 29, 2024
1 parent 8627845 commit cfdbb0f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
os: [ubuntu-20.04]
python-version:
- '3.8'
- '3.11'
- '3.12'
toxenv: [django42-celery53-drflatest, django42-celery53-drflatest,
quality, docs, django42]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def is_requirement(line):
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
)
18 changes: 9 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[tox]
envlist =
py{38,312}-django{42}-celery{53}-drf{313,latest}
envlist =
py{38,311,312}-django{42}-celery{53}-drf{313,latest}
quality
docs
[testenv]
deps =
deps =
django42: Django>=4.2,<4.3
drflatest: djangorestframework
-r{toxinidir}/requirements/test.txt
commands =
commands =
python -Wd -m pytest --cov user_tasks {posargs}

[testenv:docs]
allowlist_externals =
allowlist_externals =
make
rm
deps =
setuptools
wheel
-r{toxinidir}/requirements/doc.txt
commands =
commands =
doc8 --ignore-path docs/_build --ignore-path docs/rest_api.rst README.rst docs
rm -f docs/user_tasks.rst
rm -f docs/modules.rst
Expand All @@ -29,15 +29,15 @@ commands =
twine check dist/*

[testenv:quality]
allowlist_externals =
allowlist_externals =
make
rm
touch
deps =
deps =
-r{toxinidir}/requirements/doc.txt
-r{toxinidir}/requirements/quality.txt
-r{toxinidir}/requirements/test.txt
commands =
commands =
touch tests/__init__.py
pylint user_tasks
pylint tests
Expand Down

0 comments on commit cfdbb0f

Please sign in to comment.