Skip to content

Commit cfdbb0f

Browse files
awais786feanil
authored andcommitted
build: adding python3.11 support.
1 parent 8627845 commit cfdbb0f

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
os: [ubuntu-20.04]
1616
python-version:
1717
- '3.8'
18+
- '3.11'
1819
- '3.12'
1920
toxenv: [django42-celery53-drflatest, django42-celery53-drflatest,
2021
quality, docs, django42]

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def is_requirement(line):
125125
'Natural Language :: English',
126126
'Programming Language :: Python :: 3',
127127
'Programming Language :: Python :: 3.8',
128+
'Programming Language :: Python :: 3.11',
128129
'Programming Language :: Python :: 3.12',
129130
],
130131
)

tox.ini

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
[tox]
2-
envlist =
3-
py{38,312}-django{42}-celery{53}-drf{313,latest}
2+
envlist =
3+
py{38,311,312}-django{42}-celery{53}-drf{313,latest}
44
quality
55
docs
66
[testenv]
7-
deps =
7+
deps =
88
django42: Django>=4.2,<4.3
99
drflatest: djangorestframework
1010
-r{toxinidir}/requirements/test.txt
11-
commands =
11+
commands =
1212
python -Wd -m pytest --cov user_tasks {posargs}
1313

1414
[testenv:docs]
15-
allowlist_externals =
15+
allowlist_externals =
1616
make
1717
rm
1818
deps =
1919
setuptools
2020
wheel
2121
-r{toxinidir}/requirements/doc.txt
22-
commands =
22+
commands =
2323
doc8 --ignore-path docs/_build --ignore-path docs/rest_api.rst README.rst docs
2424
rm -f docs/user_tasks.rst
2525
rm -f docs/modules.rst
@@ -29,15 +29,15 @@ commands =
2929
twine check dist/*
3030

3131
[testenv:quality]
32-
allowlist_externals =
32+
allowlist_externals =
3333
make
3434
rm
3535
touch
36-
deps =
36+
deps =
3737
-r{toxinidir}/requirements/doc.txt
3838
-r{toxinidir}/requirements/quality.txt
3939
-r{toxinidir}/requirements/test.txt
40-
commands =
40+
commands =
4141
touch tests/__init__.py
4242
pylint user_tasks
4343
pylint tests

0 commit comments

Comments
 (0)