From f8b3f38b57ff5a8e08b725a4dab81952c43ce972 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 21 Sep 2022 14:32:02 +0100 Subject: [PATCH] Update supported versions for 3.14 release (#8662) * Update supported versions for 3.14 release * Fix up test case for Django 3.0 --- README.md | 4 ++-- docs/community/3.14-announcement.md | 2 +- tests/authentication/test_authentication.py | 4 ++-- tox.ini | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6cd4e86c7..e8375291d 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,8 @@ There is a live example API for testing purposes, [available here][sandbox]. # Requirements -* Python (3.6, 3.7, 3.8, 3.9, 3.10) -* Django (2.2, 3.0, 3.1, 3.2, 4.0, 4.1) +* Python 3.6+ +* Django 4.1, 4.0, 3.2, 3.1, 3.0 We **highly recommend** and only officially support the latest patch release of each Python and Django series. diff --git a/docs/community/3.14-announcement.md b/docs/community/3.14-announcement.md index 04d1572b1..8b7ee9f14 100644 --- a/docs/community/3.14-announcement.md +++ b/docs/community/3.14-announcement.md @@ -26,7 +26,7 @@ The latest release now fully supports Django 4.1. Our requirements are now: * 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. diff --git a/tests/authentication/test_authentication.py b/tests/authentication/test_authentication.py index d771aaf8b..b64c05de8 100644 --- a/tests/authentication/test_authentication.py +++ b/tests/authentication/test_authentication.py @@ -219,8 +219,8 @@ class SessionAuthTests(TestCase): Ensure POSTing form over session authentication with CSRF token succeeds. Regression test for #6088 """ - # Remove this shim when dropping support for Django 2.2. - if django.VERSION < (3, 0): + # Remove this shim when dropping support for Django 3.0. + if django.VERSION < (3, 1): from django.middleware.csrf import _get_new_csrf_token else: from django.middleware.csrf import ( diff --git a/tox.ini b/tox.ini index c275a0abe..957d8a2e7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - {py36,py37,py38,py39}-django22, + {py36,py37,py38,py39}-django30, {py36,py37,py38,py39}-django31, {py36,py37,py38,py39,py310}-django32, {py38,py39,py310}-{django40,django41,djangomain}, @@ -8,7 +8,7 @@ envlist = [travis:env] DJANGO = - 2.2: django22 + 3.0: django30 3.1: django31 3.2: django32 4.0: django40 @@ -22,7 +22,7 @@ setenv = PYTHONDONTWRITEBYTECODE=1 PYTHONWARNINGS=once deps = - django22: Django>=2.2,<3.0 + django30: Django>=3.0,<3.1 django31: Django>=3.1,<3.2 django32: Django>=3.2,<4.0 django40: Django>=4.0,<4.1