From cfdbb0f489540c1660d3c686b0bc8cbd88645c45 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Tue, 26 Mar 2024 14:23:49 +0500 Subject: [PATCH] build: adding python3.11 support. --- .github/workflows/ci.yml | 1 + setup.py | 1 + tox.ini | 18 +++++++++--------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03e4db20..cde90cb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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] diff --git a/setup.py b/setup.py index 5ac6cf2c..a44b0abe 100644 --- a/setup.py +++ b/setup.py @@ -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', ], ) diff --git a/tox.ini b/tox.ini index 17aa2684..c514199a 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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