Skip to content

Commit

Permalink
Add support for Django 5.0, 5.1 and for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 21, 2024
1 parent 29d461a commit 1409768
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,33 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']
django-version: ['3.2', '4.2', 'main']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
django-version: ['3.2', '4.2', '5.0', '5.1', 'main']
exclude:
- python-version: '3.11'
django-version: '3.2'
- python-version: '3.12-dev'
- python-version: '3.12'
django-version: '3.2'
- python-version: '3.13'
django-version: '3.2'

- python-version: '3.11'
django-version: '4.0'
- python-version: '3.12-dev'
django-version: '4.0'
- python-version: '3.13'
django-version: '4.2'

- python-version: '3.8'
django-version: '5.0'
- python-version: '3.9'
django-version: '5.0'

- python-version: '3.12-dev'
django-version: '4.1'
- python-version: '3.8'
django-version: '5.1'
- python-version: '3.9'
django-version: '5.1'

- python-version: '3.8'
django-version: 'main'
- python-version: '3.9'
django-version: 'main'
- python-version: '3.10'
django-version: 'main'

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ language using Transifex_.
Also have a look at the bundled example templates and views to see how you
can integrate the application into your project.

Compatible with Django 3.2 and 4.2 on Python 3.8 to 3.11.
Compatible with Django 3.2, 4.2, 5.0 and 5.1 on Python 3.8 to 3.13.
Documentation is available at `readthedocs.org`_.


Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ classifiers = [
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand All @@ -27,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
]
dependencies = [
Expand Down
9 changes: 8 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ minversion = 1.8
envlist =
; https://docs.djangoproject.com/en/stable/faq/install/#what-python-version-can-i-use-with-django
py{38,39,310}-dj32
py{311,312}-dj{42,main}
py{38,39,310,311,312}-dj42
py{310,311,312}-dj50
py{310,311,312,313}-dj{51,main}

[gh-actions]
python =
Expand All @@ -13,11 +15,14 @@ python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[gh-actions:env]
DJANGO =
3.2: dj32
4.2: dj42
5.0: dj50
5.1: dj51
main: djmain

[testenv]
Expand All @@ -30,6 +35,8 @@ deps =
coverage
dj32: Django>=3.2,<4.0
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
geoip2
ignore_outcome =
Expand Down

0 comments on commit 1409768

Please sign in to comment.