0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-21 18:09:02 +01:00

Formalise support for Django 4.0

This commit is contained in:
Matt Westcott 2022-01-07 10:32:22 +00:00 committed by Matt Westcott
parent 385a0aee67
commit 6b22835dc5
9 changed files with 27 additions and 18 deletions

View File

@ -19,16 +19,16 @@ on:
# Current configuration:
# - django 3.2, python 3.7, postgres
# - django 3.2, python 3.8, mysql
# - django 3.2, python 3.9, sqlite
# - django 4.0, python 3.9, mysql (allow failures)
# - django 3.2, python 3.10, postgres, USE_EMAIL_USER_MODEL=yes
# - django 3.2, python 3.10, postgres, DISABLE_TIMEZONE=yes
# - django 4.0, python 3.9, sqlite
# - django 4.0, python 3.9, mysql
# - django 4.0, python 3.10, postgres, USE_EMAIL_USER_MODEL=yes
# - django 4.0, python 3.10, postgres, DISABLE_TIMEZONE=yes
# - django stable/4.0.x, python 3.10, postgres (allow failures)
# - django main, python 3.10, postgres (allow failures)
# - elasticsearch 5, django 3.2, python 3.7, sqlite
# - elasticsearch 6, django 3.2, python 3.7, postgres
# - elasticsearch 7, django 4.0, python 3.8, postgres (allow failures)
# - elasticsearch 7, django 3.2, python 3.9, sqlite, USE_EMAIL_USER_MODEL=yes
# - elasticsearch 7, django 4.0, python 3.8, postgres
# - elasticsearch 7, django 4.0, python 3.9, sqlite, USE_EMAIL_USER_MODEL=yes
jobs:
test-sqlite:
@ -37,7 +37,7 @@ jobs:
matrix:
include:
- python: "3.9"
django: "Django>=3.2,<3.3"
django: "Django>=4.0,<4.1"
steps:
- uses: actions/checkout@v2
@ -66,11 +66,11 @@ jobs:
django: "Django>=3.2,<3.3"
experimental: false
- python: "3.10"
django: "Django>=3.2,<3.3"
django: "Django>=4.0,<4.1"
notz: notz
experimental: false
- python: "3.10"
django: "Django>=3.2,<3.3"
django: "Django>=4.0,<4.1"
experimental: false
emailuser: emailuser
- python: "3.10"
@ -121,7 +121,7 @@ jobs:
experimental: false
- python: "3.9"
django: "Django>=4.0,<4.1"
experimental: true
experimental: false
services:
mysql:
@ -201,7 +201,7 @@ jobs:
matrix:
include:
- python: "3.9"
django: "Django>=3.2,<3.3"
django: "Django>=4.0,<4.1"
emailuser: emailuser
steps:
- name: Configure sysctl limits
@ -295,7 +295,7 @@ jobs:
include:
- python: "3.8"
django: "Django>=4.0,<4.1"
experimental: true
experimental: false
services:
postgres:

View File

@ -4,6 +4,7 @@ Changelog
2.16 (xx.xx.xxxx) - IN DEVELOPMENT
~~~~~~~~~~~~~~~~~
* Added support for Django 4.0
* Removed support for Django 3.0 and 3.1
* Removed support for Python 3.6
* Added persistent IDs for ListBlock items, allowing commenting and improvements to revision comparisons (Matt Westcott, Tidjani Dia, with sponsorship from [NHS](https://www.nhs.uk/))

View File

@ -56,7 +56,7 @@ _(If you are reading this on GitHub, the details here may not be indicative of t
Wagtail supports:
* Django 3.2.x
* Django 3.2.x and 4.0.x
* Python 3.7, 3.8, 3.9 and 3.10
* PostgreSQL, MySQL and SQLite as database backends

View File

@ -5,7 +5,7 @@
Wagtail provides the `wagtail start` command and project template to get you started with a new Wagtail project as quickly as possible, but it's easy to integrate Wagtail into an existing Django project too.
Wagtail is currently compatible with Django 3.2. First, install the `wagtail` package from PyPI:
Wagtail is currently compatible with Django 3.2 and 4.0. First, install the `wagtail` package from PyPI:
```sh
$ pip install wagtail

View File

@ -8,6 +8,11 @@
## What's new
### Django 4.0 support
This release adds support for Django 4.0.
### Slim sidebar
As part of a [wider redesign](https://github.com/wagtail/wagtail/discussions/7739) of Wagtails administration interface, we have replaced the sidebar with a slim, keyboard-friendly version. This re-implementation comes with significant accessibility improvements for keyboard and screen reader users, and will enable us to make navigation between views much snappier in the future. Please have a look at [upgrade considerations](#upgrade-considerations) for more details on differences with the previous version.
@ -24,6 +29,7 @@ WAGTAILREDIRECTS_AUTO_CREATE = False
Thank you to [The National Archives](https://www.nationalarchives.gov.uk) for kindly sponsoring this feature.
### Other features
* Added persistent IDs for ListBlock items, allowing commenting and improvements to revision comparisons (Matt Westcott, Tidjani Dia, with sponsorship from [NHS](https://www.nhs.uk/))

View File

@ -147,5 +147,5 @@ The compatible versions of Django and Python for each Wagtail release are:
+-------------------+------------------------------+-----------------------------+
| 2.15 LTS | 3.0, 3.1, 3.2 | 3.6, 3.7, 3.8, 3.9, 3.10 |
+-------------------+------------------------------+-----------------------------+
| 2.16 | 3.2 | 3.7, 3.8, 3.9, 3.10 |
| 2.16 | 3.2, 4.0 | 3.7, 3.8, 3.9, 3.10 |
+-------------------+------------------------------+-----------------------------+

View File

@ -20,7 +20,7 @@ except ImportError:
install_requires = [
"Django>=3.2,<4.0",
"Django>=3.2,<4.1",
"django-modelcluster>=5.2,<6.0",
"django-taggit>=2.0,<3.0",
"django-treebeard>=4.2.0,<5.0,!=4.5",
@ -111,6 +111,7 @@ https://github.com/wagtail/wagtail/.",
'Programming Language :: Python :: 3.10',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Wagtail',
'Topic :: Internet :: WWW/HTTP :: Site Management',
],

View File

@ -2,7 +2,7 @@
skipsdist = True
usedevelop = True
envlist = py{37,38,39,310}-dj{32,40stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},
envlist = py{37,38,39,310}-dj{32,40,40stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},
[testenv]
install_command = pip install -e ".[testing]" -U {opts} {packages}
@ -23,6 +23,7 @@ deps =
Embedly
dj32: Django~=3.2.0
dj40: Django~=4.0.0
dj40stable: git+https://github.com/django/django.git@stable/4.0.x#egg=Django
djmain: git+https://github.com/django/django.git@main#egg=Django

View File

@ -1,2 +1,2 @@
Django>=3.2,<3.3
Django>=4.0,<4.1
wagtail==2.16rc1