From 8c8f2de12e9ee866db40cf393c341c44e8a73af2 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Thu, 21 Mar 2024 21:45:46 +0500 Subject: [PATCH] feat: add python312 support --- .github/workflows/ci.yml | 6 +++--- setup.py | 3 ++- tox.ini | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6e266db..17f564c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [quality, docs, pii_check, django32, django40] + python-version: ['3.8', '3.12'] + toxenv: [quality, docs, pii_check, django42] steps: - uses: actions/checkout@v4 @@ -37,7 +37,7 @@ jobs: run: tox - name: Run coverage - if: matrix.python-version == '3.8' && matrix.toxenv == 'django32' + if: matrix.python-version == '3.8' && matrix.toxenv == 'django42' uses: codecov/codecov-action@v3 with: flags: unittests diff --git a/setup.py b/setup.py index 9e182fdb..7dacadca 100755 --- a/setup.py +++ b/setup.py @@ -120,11 +120,12 @@ def is_requirement(line): classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', - 'Framework :: Django :: 3.2', + '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 5488d41f..0bbf2062 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-django{32,40} +envlist = py{38,312}-django{42} [doc8] ; D001 = Line too long @@ -64,6 +64,8 @@ commands = twine check dist/* [testenv:quality] +setenv = + DJANGO_SETTINGS_MODULE = test_settings allowlist_externals = make rm @@ -86,4 +88,3 @@ deps = -r{toxinidir}/requirements/test.txt commands = code_annotations django_find_annotations --config_file .pii_annotations.yml --lint --report --coverage -