mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-21 18:09:02 +01:00
Add support for Python 3.13
This commit is contained in:
parent
a199096af3
commit
27b972d30f
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -26,13 +26,13 @@ concurrency:
|
|||||||
# - django 5.0, python 3.11, sqlite, WAGTAIL_CHECK_TEMPLATE_NUMBER_FORMAT=1
|
# - django 5.0, python 3.11, sqlite, WAGTAIL_CHECK_TEMPLATE_NUMBER_FORMAT=1
|
||||||
# - django 5.1, python 3.12, mysql:8.4, parallel, USE_EMAIL_USER_MODEL=yes
|
# - django 5.1, python 3.12, mysql:8.4, parallel, USE_EMAIL_USER_MODEL=yes
|
||||||
# - django 5.1, python 3.12, mariadb:11.4, USE_EMAIL_USER_MODEL=yes
|
# - django 5.1, python 3.12, mariadb:11.4, USE_EMAIL_USER_MODEL=yes
|
||||||
# - django 5.1, python 3.12, sqlite, parallel, USE_EMAIL_USER_MODEL=yes
|
# - django 5.1, python 3.13, sqlite, parallel, USE_EMAIL_USER_MODEL=yes
|
||||||
# - django 5.1, python 3.12, postgres:15, psycopg 3, parallel, DISABLE_TIMEZONE=yes
|
# - django 5.1, python 3.13, postgres:15, psycopg 3, parallel, DISABLE_TIMEZONE=yes
|
||||||
# - django stable/5.1.x, python 3.11, postgres:15, psycopg 3 (allow failures)
|
# - django stable/5.1.x, python 3.11, postgres:15, psycopg 3 (allow failures)
|
||||||
# - django main, python 3.12, postgres:latest, psycopg 3, parallel (allow failures)
|
# - django main, python 3.13, postgres:latest, psycopg 3, parallel (allow failures)
|
||||||
# - elasticsearch 7, django 4.2, python 3.9, postgres:latest, psycopg 2
|
# - elasticsearch 7, django 4.2, python 3.9, postgres:latest, psycopg 2
|
||||||
# - opensearch 2, django 5.0, python 3.10, sqlite
|
# - opensearch 2, django 5.0, python 3.10, sqlite
|
||||||
# - elasticsearch 8, django 5.1, python 3.12, sqlite, USE_EMAIL_USER_MODEL=yes
|
# - elasticsearch 8, django 5.1, python 3.13, sqlite, USE_EMAIL_USER_MODEL=yes
|
||||||
|
|
||||||
# Some tests are run in parallel by passing --parallel to runtests.py.
|
# Some tests are run in parallel by passing --parallel to runtests.py.
|
||||||
# When running tests in parallel, some errors cannot be pickled and result in
|
# When running tests in parallel, some errors cannot be pickled and result in
|
||||||
@ -52,7 +52,7 @@ jobs:
|
|||||||
- python: '3.11'
|
- python: '3.11'
|
||||||
django: 'Django>=5.0,<5.1'
|
django: 'Django>=5.0,<5.1'
|
||||||
check_template_number_format: '1'
|
check_template_number_format: '1'
|
||||||
- python: '3.12'
|
- python: '3.13'
|
||||||
django: 'Django>=5.1,<5.2'
|
django: 'Django>=5.1,<5.2'
|
||||||
emailuser: emailuser
|
emailuser: emailuser
|
||||||
parallel: '--parallel'
|
parallel: '--parallel'
|
||||||
@ -95,7 +95,7 @@ jobs:
|
|||||||
psycopg: 'psycopg2>=2.6'
|
psycopg: 'psycopg2>=2.6'
|
||||||
experimental: false
|
experimental: false
|
||||||
parallel: '--parallel'
|
parallel: '--parallel'
|
||||||
- python: '3.12'
|
- python: '3.13'
|
||||||
django: 'Django>=5.0,<5.1'
|
django: 'Django>=5.0,<5.1'
|
||||||
psycopg: 'psycopg>=3.1.8'
|
psycopg: 'psycopg>=3.1.8'
|
||||||
postgres: 'postgres:15'
|
postgres: 'postgres:15'
|
||||||
@ -107,7 +107,7 @@ jobs:
|
|||||||
psycopg: 'psycopg>=3.1.8'
|
psycopg: 'psycopg>=3.1.8'
|
||||||
postgres: 'postgres:15'
|
postgres: 'postgres:15'
|
||||||
experimental: true
|
experimental: true
|
||||||
- python: '3.12'
|
- python: '3.13'
|
||||||
django: 'git+https://github.com/django/django.git@main#egg=Django'
|
django: 'git+https://github.com/django/django.git@main#egg=Django'
|
||||||
psycopg: 'psycopg>=3.1.8'
|
psycopg: 'psycopg>=3.1.8'
|
||||||
experimental: true
|
experimental: true
|
||||||
@ -227,7 +227,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: '3.12'
|
- python: '3.13'
|
||||||
django: 'Django>=5.1,<5.2'
|
django: 'Django>=5.1,<5.2'
|
||||||
emailuser: emailuser
|
emailuser: emailuser
|
||||||
steps:
|
steps:
|
||||||
|
@ -16,6 +16,7 @@ Changelog
|
|||||||
* Add search and filters to form pages listing (Sage Abdullah)
|
* Add search and filters to form pages listing (Sage Abdullah)
|
||||||
* Deprecate the `WAGTAIL_AUTO_UPDATE_PREVIEW` setting, use `WAGTAIL_AUTO_UPDATE_PREVIEW_INTERVAL = 0` instead (Sage Abdullah)
|
* Deprecate the `WAGTAIL_AUTO_UPDATE_PREVIEW` setting, use `WAGTAIL_AUTO_UPDATE_PREVIEW_INTERVAL = 0` instead (Sage Abdullah)
|
||||||
* Consistently use `capfirst` for title-casing model verbose names (Sébastien Corbin)
|
* Consistently use `capfirst` for title-casing model verbose names (Sébastien Corbin)
|
||||||
|
* Add support for Python 3.13 (Matt Westcott)
|
||||||
* Fire `copy_for_translation_done` signal when copying translatable models as well as pages (Coen van der Kamp)
|
* Fire `copy_for_translation_done` signal when copying translatable models as well as pages (Coen van der Kamp)
|
||||||
* Fix: Prevent page type business rules from blocking reordering of pages (Andy Babic, Sage Abdullah)
|
* Fix: Prevent page type business rules from blocking reordering of pages (Andy Babic, Sage Abdullah)
|
||||||
* Fix: Improve layout of object permissions table (Sage Abdullah)
|
* Fix: Improve layout of object permissions table (Sage Abdullah)
|
||||||
|
@ -85,7 +85,7 @@ _(If you are reading this on GitHub, the details here may not be indicative of t
|
|||||||
Wagtail supports:
|
Wagtail supports:
|
||||||
|
|
||||||
- Django 4.2.x, 5.0.x and 5.1.x
|
- Django 4.2.x, 5.0.x and 5.1.x
|
||||||
- Python 3.9, 3.10, 3.11 and 3.12
|
- Python 3.9, 3.10, 3.11, 3.12 and 3.13
|
||||||
- PostgreSQL, MySQL, MariaDB and SQLite (with JSON1) as database backends
|
- PostgreSQL, MySQL, MariaDB 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.8 and earlier Django versions.
|
[Previous versions of Wagtail](https://docs.wagtail.org/en/stable/releases/upgrading.html#compatible-django-python-versions) additionally supported Python 2.7, 3.8 and earlier Django versions.
|
||||||
|
@ -11,6 +11,10 @@ depth: 1
|
|||||||
|
|
||||||
## What's new
|
## What's new
|
||||||
|
|
||||||
|
### Python 3.13 support
|
||||||
|
|
||||||
|
This release adds formal support for Python 3.13.
|
||||||
|
|
||||||
### Django 5.1 support
|
### Django 5.1 support
|
||||||
|
|
||||||
This release adds formal support for Django 5.1.
|
This release adds formal support for Django 5.1.
|
||||||
|
@ -57,57 +57,57 @@ New feature releases frequently add support for newer versions of Django and Pyt
|
|||||||
|
|
||||||
The compatible versions of Django and Python for each Wagtail release are:
|
The compatible versions of Django and Python for each Wagtail release are:
|
||||||
|
|
||||||
| Wagtail release | Compatible Django versions | Compatible Python versions |
|
| Wagtail release | Compatible Django versions | Compatible Python versions |
|
||||||
| --------------- | -------------------------- | -------------------------- |
|
| --------------- | -------------------------- | --------------------------- |
|
||||||
| 6.3 | 4.2, 5.0, 5.1 | 3.9, 3.10, 3.11, 3.12 |
|
| 6.3 | 4.2, 5.0, 5.1 | 3.9, 3.10, 3.11, 3.12, 3.13 |
|
||||||
| 6.2 | 4.2, 5.0 | 3.8, 3.9, 3.10, 3.11, 3.12 |
|
| 6.2 | 4.2, 5.0 | 3.8, 3.9, 3.10, 3.11, 3.12 |
|
||||||
| 6.1 | 4.2, 5.0 | 3.8, 3.9, 3.10, 3.11, 3.12 |
|
| 6.1 | 4.2, 5.0 | 3.8, 3.9, 3.10, 3.11, 3.12 |
|
||||||
| 6.0 | 4.2, 5.0 | 3.8, 3.9, 3.10, 3.11, 3.12 |
|
| 6.0 | 4.2, 5.0 | 3.8, 3.9, 3.10, 3.11, 3.12 |
|
||||||
| 5.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.7, 3.2, 3.3, 3.4 |
|
||||||
| 0.3 | 1.6 | 2.6, 2.7 |
|
| 0.3 | 1.6 | 2.6, 2.7 |
|
||||||
| 0.2 | 1.6 | 2.7 |
|
| 0.2 | 1.6 | 2.7 |
|
||||||
| 0.1 | 1.6 | 2.7 |
|
| 0.1 | 1.6 | 2.7 |
|
||||||
|
|
||||||
[^*]: Added in a patch release
|
[^*]: Added in a patch release
|
||||||
|
1
setup.py
1
setup.py
@ -111,6 +111,7 @@ https://github.com/wagtail/wagtail/.",
|
|||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
"Framework :: Django",
|
"Framework :: Django",
|
||||||
"Framework :: Django :: 4.2",
|
"Framework :: Django :: 4.2",
|
||||||
"Framework :: Django :: 5.0",
|
"Framework :: Django :: 5.0",
|
||||||
|
3
tox.ini
3
tox.ini
@ -2,7 +2,7 @@
|
|||||||
skipsdist = True
|
skipsdist = True
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
|
|
||||||
envlist = py{39,310,311,312}-dj{42,50,51,51stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch8,elasticsearch7,noelasticsearch}-{customuser,emailuser}-{tz,notz},
|
envlist = py{39,310,311,312,313}-dj{42,50,51,51stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch8,elasticsearch7,noelasticsearch}-{customuser,emailuser}-{tz,notz},
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
install_command = pip install -e ".[testing]" -U {opts} {packages}
|
install_command = pip install -e ".[testing]" -U {opts} {packages}
|
||||||
@ -16,6 +16,7 @@ basepython =
|
|||||||
py310: python3.10
|
py310: python3.10
|
||||||
py311: python3.11
|
py311: python3.11
|
||||||
py312: python3.12
|
py312: python3.12
|
||||||
|
py313: python3.13
|
||||||
|
|
||||||
deps =
|
deps =
|
||||||
django-sendfile==0.3.6
|
django-sendfile==0.3.6
|
||||||
|
Loading…
Reference in New Issue
Block a user