Skip to content

Commit

Permalink
Add Python 3.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
georgek committed Aug 24, 2023
1 parent 148bac4 commit 5764d06
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,29 @@ 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
exclude:
# 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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 9 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit 5764d06

Please sign in to comment.