From 32a0721d4df924d3190e373c566879f39bb6f756 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Fri, 8 Dec 2023 18:30:48 +0100 Subject: [PATCH] :boom: Change supported versions * Drop support for Django 4.1, which is end-of-life * Add support for Python 3.12 * Add support for Django 5.0 --- .github/workflows/ci.yml | 16 ++++++++++------ setup.cfg | 3 ++- tox.ini | 10 ++++++---- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b4913f..723b39e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,13 +15,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ['3.8', '3.9', '3.10'] - django: ['3.2', '4.1', '4.2'] - include: + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] + django: ['3.2', '4.2', '5.0'] + exclude: - python: '3.11' - django: '4.1' - - python: '3.11' - django: '4.2' + django: '3.2' + - python: '3.12' + django: '3.2' + - python: '3.8' + django: '5.0' + - python: '3.9' + django: '5.0' name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }}) diff --git a/setup.cfg b/setup.cfg index b1b7c03..02616bd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,8 +20,8 @@ classifiers = Development Status :: 4 - Beta Framework :: Django Framework :: Django :: 3.2 - Framework :: Django :: 4.1 Framework :: Django :: 4.2 + Framework :: Django :: 5.0 Intended Audience :: Developers License :: OSI Approved :: BSD License Operating System :: Unix @@ -32,6 +32,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Topic :: Software Development :: Libraries :: Python Modules [options] diff --git a/tox.ini b/tox.ini index 4f8ef89..86551d7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,8 @@ [tox] envlist = - py{38,39,310}-django{32,41,42} - py311-django{41,42} + py{38,39}-django{32,42} + py310-django32 + py{310,311,312}-django{42,50} isort black ; flake8 @@ -14,12 +15,13 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [gh-actions:env] DJANGO = 3.2: django32 - 4.1: django41 4.2: django42 + 5.0: django50 [testenv] setenv = @@ -30,8 +32,8 @@ extras = coverage deps = django32: Django~=3.2.0 - django41: Django~=4.1.0 django42: Django~=4.2.0 + django50: Django~=5.0.0 commands = pytest tests \ -m 'not e2e' \