From 5764d067cecb2fee1a953d07780865dfe0a72a01 Mon Sep 17 00:00:00 2001 From: George Kettleborough Date: Thu, 24 Aug 2023 22:10:14 +0100 Subject: [PATCH] Add Python 3.11 support --- .github/workflows/test.yml | 10 ++++++++-- setup.py | 1 + tox.ini | 17 +++++++++-------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b36cb8..90ec231 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,16 +10,19 @@ jobs: fail-fast: false max-parallel: 5 matrix: - python-version: ['3.8', '3.9', '3.10', 'pypy-3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.10'] django-version: ['2.2', '3.2', '4.0', '4.1', '4.2'] include: # Tox configuration for QA environment - - python-version: '3.10' + - python-version: '3.11' django-version: 'qa' # Django main - python-version: '3.10' django-version: 'main' experimental: true + - python-version: '3.11' + django-version: 'main' + experimental: true - python-version: 'pypy-3.10' django-version: 'main' experimental: true @@ -27,6 +30,9 @@ jobs: # Exclude Django 2.2 for Python 3.10 - python-version: '3.10' django-version: '2.2' + # Exclude Django 2.2 for Python 3.11 + - python-version: '3.11' + django-version: '2.2' steps: - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index 2c40e35..8e74f15 100755 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/tox.ini b/tox.ini index 137a12a..e5b315d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,19 @@ [tox] envlist = py{38,39,py3}-dj22 - py{38,39,310,py3}-dj32 - py{38,39,310,py3}-dj40 - py{38,39,310,py3}-dj41 - py{38,39,310,py3}-dj42 - py{310,py3}-djmain - py310-djqa + py{38,39,310,311,py3}-dj32 + py{38,39,310,311,py3}-dj40 + py{38,39,310,311,py3}-dj41 + py{38,39,310,311,py3}-dj42 + py{310,311,py3}-djmain + py311-djqa [gh-actions] python = 3.8: py38 3.9: py39 3.10: py310 + 3.11: py311 pypy-3.10: pypy3 [gh-actions:env] @@ -47,9 +48,9 @@ commands = coverage report -m coverage xml -[testenv:py310-djqa] +[testenv:py311-djqa] ignore_errors = true -basepython = python3.10 +basepython = python3.11 setenv = DJANGO_SETTINGS_MODULE=tests.settings deps =