kopia lustrzana https://github.com/wagtail/wagtail
Remove Python 3.6 support
rodzic
6931663c7f
commit
cf0ee13b49
|
@ -17,7 +17,7 @@ on:
|
|||
# - test runs with USE_EMAIL_USER_MODEL=yes and DISABLE_TIMEZONE=yes
|
||||
|
||||
# Current configuration:
|
||||
# - django 3.0, python 3.6, sqlite
|
||||
# - django 3.0, python 3.7, sqlite
|
||||
# - django 3.1, python 3.7, postgres
|
||||
# - django 3.2, python 3.8, postgres
|
||||
# - django 3.2, python 3.9, mysql
|
||||
|
@ -26,7 +26,7 @@ on:
|
|||
# - django 3.2, python 3.10, postgres, DISABLE_TIMEZONE=yes
|
||||
# - django stable/3.2.x, python 3.9, postgres (allow failures)
|
||||
# - django main, python 3.10, postgres (allow failures)
|
||||
# - elasticsearch 5, django 3.0, python 3.6, sqlite
|
||||
# - elasticsearch 5, django 3.0, python 3.7, sqlite
|
||||
# - elasticsearch 6, django 3.1, python 3.7, postgres
|
||||
# - elasticsearch 7, django 3.2, python 3.8, postgres
|
||||
# - elasticsearch 7, django 3.2, python 3.9, sqlite, USE_EMAIL_USER_MODEL=yes
|
||||
|
@ -37,7 +37,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- python: "3.6"
|
||||
- python: "3.7"
|
||||
django: "Django>=3.0,<3.1"
|
||||
- python: "3.10"
|
||||
django: "Django>=3.1,<3.2"
|
||||
|
@ -161,7 +161,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- python: "3.6"
|
||||
- python: "3.7"
|
||||
django: "Django>=3.0,<3.1"
|
||||
steps:
|
||||
- name: Configure sysctl limits
|
||||
|
|
|
@ -57,7 +57,7 @@ _(If you are reading this on GitHub, the details here may not be indicative of t
|
|||
Wagtail supports:
|
||||
|
||||
* Django 3.0.x, 3.1.x and 3.2.x
|
||||
* Python 3.6, 3.7, 3.8, 3.9 and 3.10
|
||||
* Python 3.7, 3.8, 3.9 and 3.10
|
||||
* 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 - 2.x.
|
||||
|
|
|
@ -79,7 +79,7 @@ an argument to ``runtests.py`` or ``tox``:
|
|||
$ python runtests.py wagtail.core
|
||||
|
||||
$ # Running in a specified Tox environment
|
||||
$ tox -e py36-dj22-sqlite-noelasticsearch wagtail.core
|
||||
$ tox -e py39-dj32-sqlite-noelasticsearch wagtail.core
|
||||
|
||||
$ # See a list of available Tox environments
|
||||
$ tox -l
|
||||
|
@ -93,7 +93,7 @@ an argument to ``runtests.py``
|
|||
$ python runtests.py wagtail.core.tests.test_blocks.TestIntegerBlock
|
||||
|
||||
$ # Running in a specified Tox environment
|
||||
$ tox -e py36-dj22-sqlite-noelasticsearch wagtail.core.tests.test_blocks.TestIntegerBlock
|
||||
$ tox -e py39-dj32-sqlite-noelasticsearch wagtail.core.tests.test_blocks.TestIntegerBlock
|
||||
|
||||
Running migrations for the test app models
|
||||
------------------------------------------
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
### Install dependencies
|
||||
|
||||
Wagtail supports Python 3.6, 3.7, 3.8, 3.9 and 3.10.
|
||||
Wagtail supports Python 3.7, 3.8, 3.9 and 3.10.
|
||||
|
||||
To check whether you have an appropriate version of Python 3:
|
||||
|
||||
|
@ -18,7 +18,7 @@ To check whether you have an appropriate version of Python 3:
|
|||
$ python3 --version
|
||||
```
|
||||
|
||||
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/).
|
||||
If this does not return a version number or returns a version lower than 3.7, you will need to [install Python 3](https://www.python.org/downloads/).
|
||||
|
||||
```eval_rst
|
||||
.. important::
|
||||
|
|
|
@ -27,3 +27,7 @@
|
|||
|
||||
|
||||
## Upgrade considerations
|
||||
|
||||
### Removed support for Python 3.6
|
||||
|
||||
Python 3.6 is no longer supported as of this release; please upgrade to Python 3.7 or above before upgrading Wagtail.
|
||||
|
|
|
@ -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.0, 3.1, 3.2 | 3.6, 3.7, 3.8, 3.9, 3.10 |
|
||||
| 2.16 | 3.0, 3.1, 3.2 | 3.7, 3.8, 3.9, 3.10 |
|
||||
+-------------------+------------------------------+-----------------------------+
|
||||
|
|
3
setup.py
3
setup.py
|
@ -109,7 +109,6 @@ https://github.com/wagtail/wagtail/.",
|
|||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
|
@ -121,7 +120,7 @@ https://github.com/wagtail/wagtail/.",
|
|||
'Framework :: Wagtail',
|
||||
'Topic :: Internet :: WWW/HTTP :: Site Management',
|
||||
],
|
||||
python_requires='>=3.6',
|
||||
python_requires='>=3.7',
|
||||
install_requires=install_requires,
|
||||
extras_require={
|
||||
'testing': testing_extras,
|
||||
|
|
5
tox.ini
5
tox.ini
|
@ -2,7 +2,7 @@
|
|||
skipsdist = True
|
||||
usedevelop = True
|
||||
|
||||
envlist = py{36,37,38,39,310}-dj{30,31,32,32stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},
|
||||
envlist = py{37,38,39,310}-dj{30,31,32,32stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},
|
||||
|
||||
[testenv]
|
||||
install_command = pip install -e ".[testing]" -U {opts} {packages}
|
||||
|
@ -13,7 +13,6 @@ commands =
|
|||
noelasticsearch: coverage run runtests.py {posargs}
|
||||
|
||||
basepython =
|
||||
py36: python3.6
|
||||
py37: python3.7
|
||||
py38: python3.8
|
||||
py39: python3.9
|
||||
|
@ -59,6 +58,6 @@ setenv =
|
|||
mssql: DATABASE_PASSWORD=Password12!
|
||||
|
||||
[testenv:flake8]
|
||||
basepython=python3.6
|
||||
basepython=python3.7
|
||||
deps=flake8>=3.6.0
|
||||
commands=flake8
|
||||
|
|
Ładowanie…
Reference in New Issue