From 1a47ea73afd08b1fe4aad9e3717f18b7e8d6808e Mon Sep 17 00:00:00 2001 From: Irtaza Akram Date: Tue, 20 Feb 2024 13:02:43 +0500 Subject: [PATCH] feat: add support for python 3.12 --- .github/workflows/ci.yml | 5 +++-- CHANGELOG.rst | 6 ++++-- completion/__init__.py | 2 +- requirements/dev.txt | 2 +- requirements/doc.txt | 2 +- requirements/quality.txt | 2 +- requirements/test.txt | 2 +- setup.py | 4 ++-- tox.ini | 4 ++-- 9 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a87e846..3b973077 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,11 @@ jobs: name: Tests runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [quality, django32-drf314, django32-drflatest, django42-drf314, django42-drflatest] + python-version: ['3.8', '3.12'] + toxenv: [quality, django42-drf314, django42-drflatest] steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ea60aa9d..8ff19fd5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,8 +11,10 @@ Change Log .. There should always be an "Unreleased" section for changes pending release. -Unreleased -~~~~~~~~~~ +[4.5.0] - Unreleased +~~~~~~~~~~~~~~~~~~~~ + +* Add support for Python 3.12 [4.4.1] - 2023-10-27 ~~~~~~~~~~~~~~~~~~~~ diff --git a/completion/__init__.py b/completion/__init__.py index 8050a702..142bd91a 100644 --- a/completion/__init__.py +++ b/completion/__init__.py @@ -3,4 +3,4 @@ """ -__version__ = '4.4.1' +__version__ = '4.5.0' diff --git a/requirements/dev.txt b/requirements/dev.txt index 1303f7b5..8e41d038 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -14,7 +14,7 @@ astroid==3.0.3 # via # pylint # pylint-celery -backports-zoneinfo[tzdata]==0.2.1 +backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9' # via # celery # kombu diff --git a/requirements/doc.txt b/requirements/doc.txt index c4e55ab2..79ef4c11 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -18,7 +18,7 @@ babel==2.14.0 # via # pydata-sphinx-theme # sphinx -backports-zoneinfo[tzdata]==0.2.1 +backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9' # via # celery # kombu diff --git a/requirements/quality.txt b/requirements/quality.txt index 2374f9b1..c960a873 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -14,7 +14,7 @@ astroid==3.0.3 # via # pylint # pylint-celery -backports-zoneinfo[tzdata]==0.2.1 +backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9' # via # celery # kombu diff --git a/requirements/test.txt b/requirements/test.txt index 6231147a..0ee38117 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -10,7 +10,7 @@ appdirs==1.4.4 # via fs asgiref==3.7.2 # via django -backports-zoneinfo[tzdata]==0.2.1 +backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9' # via # celery # kombu diff --git a/setup.py b/setup.py index d551a166..017bb57a 100644 --- a/setup.py +++ b/setup.py @@ -125,12 +125,12 @@ def add_version_constraint_or_raise(current_line, current_requirements, add_if_n classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', - 'Framework :: Django :: 3.2', - 'Framework :: Django :: 4.0', + 'Framework :: Django :: 4.2', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', 'Natural Language :: English', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.12', ], ) diff --git a/tox.ini b/tox.ini index c61bfd6f..e5e893cb 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = drf{314,latest},py38-django{32,42} +envlist = drf{314,latest},py{38,312}-django{42} [doc8] max-line-length = 120 @@ -19,7 +19,6 @@ norecursedirs = .* docs requirements [testenv] deps = - django32: Django>=3.2,<4.0 django42: Django>=4.2,<4.3 drf314: djangorestframework<3.15.0 drflatest: djangorestframework @@ -51,6 +50,7 @@ allowlist_externals = rm touch deps = + wheel -r{toxinidir}/requirements/quality.txt commands = pylint completion