Update supported versions for 3.14 release (#8662)

* Update supported versions for 3.14 release

* Fix up test case for Django 3.0
This commit is contained in:
Tom Christie 2022-09-21 14:32:02 +01:00 committed by GitHub
parent b658915846
commit f8b3f38b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -54,8 +54,8 @@ There is a live example API for testing purposes, [available here][sandbox].
# Requirements # Requirements
* Python (3.6, 3.7, 3.8, 3.9, 3.10) * Python 3.6+
* Django (2.2, 3.0, 3.1, 3.2, 4.0, 4.1) * Django 4.1, 4.0, 3.2, 3.1, 3.0
We **highly recommend** and only officially support the latest patch release of We **highly recommend** and only officially support the latest patch release of
each Python and Django series. each Python and Django series.

View File

@ -26,7 +26,7 @@ The latest release now fully supports Django 4.1.
Our requirements are now: Our requirements are now:
* Python 3.6+ * Python 3.6+
* Django 4.1, 4.0, 3.2, 3.1, 2.2 (LTS) * Django 4.1, 4.0, 3.2, 3.1, 3.0
## `raise_exceptions` argument for `is_valid` is now keyword-only. ## `raise_exceptions` argument for `is_valid` is now keyword-only.

View File

@ -219,8 +219,8 @@ class SessionAuthTests(TestCase):
Ensure POSTing form over session authentication with CSRF token succeeds. Ensure POSTing form over session authentication with CSRF token succeeds.
Regression test for #6088 Regression test for #6088
""" """
# Remove this shim when dropping support for Django 2.2. # Remove this shim when dropping support for Django 3.0.
if django.VERSION < (3, 0): if django.VERSION < (3, 1):
from django.middleware.csrf import _get_new_csrf_token from django.middleware.csrf import _get_new_csrf_token
else: else:
from django.middleware.csrf import ( from django.middleware.csrf import (

View File

@ -1,6 +1,6 @@
[tox] [tox]
envlist = envlist =
{py36,py37,py38,py39}-django22, {py36,py37,py38,py39}-django30,
{py36,py37,py38,py39}-django31, {py36,py37,py38,py39}-django31,
{py36,py37,py38,py39,py310}-django32, {py36,py37,py38,py39,py310}-django32,
{py38,py39,py310}-{django40,django41,djangomain}, {py38,py39,py310}-{django40,django41,djangomain},
@ -8,7 +8,7 @@ envlist =
[travis:env] [travis:env]
DJANGO = DJANGO =
2.2: django22 3.0: django30
3.1: django31 3.1: django31
3.2: django32 3.2: django32
4.0: django40 4.0: django40
@ -22,7 +22,7 @@ setenv =
PYTHONDONTWRITEBYTECODE=1 PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once PYTHONWARNINGS=once
deps = deps =
django22: Django>=2.2,<3.0 django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2 django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0 django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1 django40: Django>=4.0,<4.1