Skip to content

Commit

Permalink
Formalise support for Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Nov 2, 2020
1 parent 330f0dd commit 5bcfcdd
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 40 deletions.
58 changes: 24 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,42 @@ matrix:
include:
- env: TOXENV=py36-dj22-mysql-noelasticsearch
python: 3.6
- env: TOXENV=py36-dj22-postgres-noelasticsearch
python: 3.6
- env: TOXENV=py37-dj22-sqlite-noelasticsearch
python: 3.7
- env: TOXENV=py37-dj30-sqlite-noelasticsearch
python: 3.7
- env: TOXENV=py37-dj30-mysql-noelasticsearch
python: 3.7
- env: TOXENV=py38-dj30-postgres-noelasticsearch
python: 3.8
- env: TOXENV=py38-dj31-postgres-noelasticsearch
python: 3.8
- env: TOXENV=py38-dj31-postgres-noelasticsearch-emailuser
python: 3.8
- env: TOXENV=py38-dj31-postgres-noelasticsearch-notz
python: 3.8
- env: TOXENV=py38-dj31stable-postgres-noelasticsearch
python: 3.8
- env: TOXENV=py38-djmaster-postgres-noelasticsearch
python: 3.8
- env: TOXENV=py39-dj31-mysql-noelasticsearch
python: 3.9
- env: TOXENV=py39-dj31-sqlite-noelasticsearch
python: 3.9
- env: TOXENV=py39-dj31-postgres-noelasticsearch-emailuser
python: 3.9
- env: TOXENV=py39-dj31-postgres-noelasticsearch-notz
python: 3.9
- env: TOXENV=py39-dj31stable-postgres-noelasticsearch
python: 3.9
- env: TOXENV=py39-djmaster-postgres-noelasticsearch
python: 3.9
- env: TOXENV=py36-dj22-sqlite-elasticsearch2 INSTALL_ELASTICSEARCH2=yes
python: 3.6
- env: TOXENV=py36-dj22-postgres-elasticsearch5 INSTALL_ELASTICSEARCH5=yes
python: 3.6
- env: TOXENV=py37-dj22-postgres-elasticsearch6 INSTALL_ELASTICSEARCH6=yes
- env: TOXENV=py37-dj30-postgres-elasticsearch5 INSTALL_ELASTICSEARCH5=yes
python: 3.7
- env: TOXENV=py38-dj22-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
python: 3.8
- env: TOXENV=py38-dj30-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
python: 3.8
- env: TOXENV=py38-dj31-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
python: 3.8
- env: TOXENV=py38-dj31-postgres-elasticsearch7-emailuser INSTALL_ELASTICSEARCH7=yes
- env: TOXENV=py38-dj31-postgres-elasticsearch6 INSTALL_ELASTICSEARCH6=yes
python: 3.8
- env: TOXENV=py39-dj31-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
python: 3.9
- env: TOXENV=py39-dj31-sqlite-elasticsearch7-emailuser INSTALL_ELASTICSEARCH7=yes
python: 3.9
allow_failures:
# Ignore failures on Elasticsearch tests because ES on Travis is intermittently flaky
- env: TOXENV=py36-dj22-sqlite-elasticsearch2 INSTALL_ELASTICSEARCH2=yes
- env: TOXENV=py36-dj22-postgres-elasticsearch5 INSTALL_ELASTICSEARCH5=yes
- env: TOXENV=py37-dj22-postgres-elasticsearch6 INSTALL_ELASTICSEARCH6=yes
- env: TOXENV=py38-dj22-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
- env: TOXENV=py38-dj30-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
- env: TOXENV=py38-dj31-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
- env: TOXENV=py38-dj31-postgres-elasticsearch7-emailuser INSTALL_ELASTICSEARCH7=yes
- env: TOXENV=py37-dj30-postgres-elasticsearch5 INSTALL_ELASTICSEARCH5=yes
- env: TOXENV=py38-dj31-postgres-elasticsearch6 INSTALL_ELASTICSEARCH6=yes
- env: TOXENV=py39-dj31-postgres-elasticsearch7 INSTALL_ELASTICSEARCH7=yes
- env: TOXENV=py39-dj31-sqlite-elasticsearch7-emailuser INSTALL_ELASTICSEARCH7=yes
# allow failures against Django pre-releases on git
- env: TOXENV=py38-dj31stable-postgres-noelasticsearch
- env: TOXENV=py38-djmaster-postgres-noelasticsearch
- env: TOXENV=py39-dj31stable-postgres-noelasticsearch
- env: TOXENV=py39-djmaster-postgres-noelasticsearch

# Services
services:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ _(If you are reading this on GitHub, the details here may not be indicative of t
Wagtail supports:

* Django 2.2.x, 3.0.x and 3.1.x
* Python 3.6, 3.7 and 3.8
* Python 3.6, 3.7, 3.8 and 3.9
* PostgreSQL, MySQL and SQLite as database backends

[Previous versions of Wagtail](https://docs.wagtail.io/en/stable/releases/upgrading.html#compatible-django-python-versions) additionally supported Python 2.7 and Django 1.x.
Expand Down
4 changes: 2 additions & 2 deletions docs/getting_started/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ Install and run Wagtail
Install dependencies
~~~~~~~~~~~~~~~~~~~~

Wagtail supports Python 3.5, 3.6, 3.7 and 3.8.
Wagtail supports Python 3.6, 3.7, 3.8 and 3.9.

To check whether you have an appropriate version of Python 3:

.. code-block:: console
$ python3 --version
If this does not return a version number or returns a version lower than 3.5, you will need to `install Python 3 <https://www.python.org/downloads/>`_.
If this does not return a version number or returns a version lower than 3.6, you will need to `install Python 3 <https://www.python.org/downloads/>`_.

.. important::
Before installing Wagtail, it is necessary to install the **libjpeg** and **zlib** libraries, which provide support for working with JPEG, PNG and GIF images (via the Python **Pillow** library).
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ The compatible versions of Django and Python for each Wagtail release are:
+-------------------+------------------------------+-----------------------------+
| 2.11 | 2.2, 3.0, 3.1 | 3.6, 3.7, 3.8 |
+-------------------+------------------------------+-----------------------------+
| 2.12 | 2.2, 3.0, 3.1 | 3.6, 3.7, 3.8 |
| 2.12 | 2.2, 3.0, 3.1 | 3.6, 3.7, 3.8, 3.9 |
+-------------------+------------------------------+-----------------------------+
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'pytz>=2014.7',
'elasticsearch>=1.0.0,<3.0',
'Jinja2>=2.8,<3.0',
'boto3>=1.4,<1.5',
'boto3>=1.16,<1.17',
'freezegun>=0.3.8',
'openpyxl>=2.6.4',
'Unidecode>=0.04.14,<2.0',
Expand Down Expand Up @@ -105,6 +105,7 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
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{36,37,38}-dj{22,30,31,31stable,master}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,elasticsearch2,noelasticsearch}-{customuser,emailuser}-{tz,notz},
envlist = py{36,37,38,39}-dj{22,30,31,31stable,master}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,elasticsearch2,noelasticsearch}-{customuser,emailuser}-{tz,notz},

[testenv]
install_command = pip install -e ".[testing]" -U {opts} {packages}
Expand All @@ -17,6 +17,7 @@ basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9

deps =
django-sendfile==0.3.6
Expand Down

0 comments on commit 5bcfcdd

Please sign in to comment.