Skip to content

Commit

Permalink
Test against Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Oct 4, 2023
1 parent b32c5c0 commit 67de5e9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ concurrency:

# Current configuration:
# - django 3.2, python 3.8, postgres, parallel
# - django 3.2, python 3.8, mysql
# - django 4.1, python 3.9, sqlite
# - django 4.2, python 3.10, mysql, parallel
# - django 4.1, python 3.10, postgres, parallel, USE_EMAIL_USER_MODEL=yes
# - django 4.2, python 3.11, postgres, parallel, DISABLE_TIMEZONE=yes
# - django 3.2, python 3.9, mysql
# - django 4.1, python 3.10, sqlite
# - django 4.2, python 3.11, mysql, parallel
# - django 4.1, python 3.11, postgres, parallel, USE_EMAIL_USER_MODEL=yes
# - django 4.2, python 3.12, postgres, parallel, DISABLE_TIMEZONE=yes
# - django stable/4.2.x, python 3.10, postgres (allow failures)
# - django main, python 3.10, postgres, parallel (allow failures)
# - elasticsearch 5, django 3.2, python 3.8, sqlite
Expand All @@ -49,7 +49,7 @@ jobs:
strategy:
matrix:
include:
- python: '3.9'
- python: '3.10'
django: 'Django>=4.1,<4.2'

steps:
Expand Down Expand Up @@ -85,13 +85,13 @@ jobs:
django: 'Django>=3.2,<3.3'
experimental: false
parallel: '--parallel'
- python: '3.11'
- python: '3.12'
django: 'Django>=4.2,<4.3'
postgres: 'postgres:12'
notz: notz
experimental: false
parallel: '--parallel'
- python: '3.10'
- python: '3.11'
django: 'Django>=4.1,<4.2'
experimental: false
emailuser: emailuser
Expand Down Expand Up @@ -156,10 +156,10 @@ jobs:
strategy:
matrix:
include:
- python: '3.8'
- python: '3.9'
django: 'Django>=3.2,<3.3'
experimental: false
- python: '3.10'
- python: '3.11'
django: 'Django>=4.2,<4.3'
experimental: false
parallel: '--parallel'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ _(If you are reading this on GitHub, the details here may not be indicative of t
Wagtail supports:

- Django 3.2.x, 4.1.x and 4.2.x
- Python 3.8, 3.9, 3.10 and 3.11
- Python 3.8, 3.9, 3.10, 3.11 and 3.12
- PostgreSQL, MySQL and SQLite (with JSON1) as database backends

[Previous versions of Wagtail](https://docs.wagtail.org/en/stable/releases/upgrading.html#compatible-django-python-versions) additionally supported Python 2.7, 3.7 and earlier Django versions.
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The compatible versions of Django and Python for each Wagtail release are:

| Wagtail release | Compatible Django versions | Compatible Python versions |
| --------------- | -------------------------- | -------------------------- |
| 5.2 | 3.2, 4.1, 4.2 | 3.8, 3.9, 3.10, 3.11 |
| 5.2 | 3.2, 4.1, 4.2 | 3.8, 3.9, 3.10, 3.11, 3.12 |
| 5.1 | 3.2, 4.1, 4.2 | 3.8, 3.9, 3.10, 3.11 |
| 5.0 | 3.2, 4.1, 4.2 | 3.7, 3.8, 3.9, 3.10, 3.11 |
| 4.2 | 3.2, 4.0, 4.1 | 3.7, 3.8, 3.9, 3.10, 3.11 |
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
skipsdist = True
usedevelop = True

envlist = py{38,39,310,311}-dj{32,41,42,42stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch8,elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},
envlist = py{38,39,310,311,312}-dj{32,41,42,42stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch8,elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},

[testenv]
install_command = pip install -e ".[testing]" -U {opts} {packages}
Expand All @@ -18,6 +18,7 @@ basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12

deps =
django-sendfile==0.3.6
Expand Down

0 comments on commit 67de5e9

Please sign in to comment.