Skip to content

Commit

Permalink
Add Django 5.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Oct 25, 2023
1 parent 5599143 commit 0af39ab
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
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']
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- 'pypy-3.10'
django-version:
- '3.2'
- '4.1'
- '4.2'
- '5.0'
include:
# Tox configuration for QA environment
- python-version: '3.11'
Expand All @@ -27,12 +37,12 @@ jobs:
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'
- python-version: '3.12'
django-version: '3.2'
- python-version: '3.12'
django-version: '4.1'
- python-version: '3.12'
django-version: '4.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 @@ -21,6 +21,7 @@
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ envlist =
py{38,39,310,311,py3}-dj32
py{38,39,310,311,py3}-dj41
py{38,39,310,311,py3}-dj42
py{310,311,312,py3}-dj50
py{310,311,py3}-djmain
py311-djqa

Expand All @@ -12,13 +13,15 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.10: pypy3

[gh-actions:env]
DJANGO =
3.2: dj32
4.1: dj41
4.2: dj42
5.0: dj50
main: djmain
qa: djqa

Expand All @@ -28,6 +31,7 @@ deps =
dj32: django>=3.2,<3.3
dj41: django>=4.1,<4.2
dj42: django>=4.2,<4.3
dj50: django>=5.0a1,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
usedevelop = True
setenv =
Expand Down

0 comments on commit 0af39ab

Please sign in to comment.