Skip to content

Commit 326cdc6

Browse files
committed
drop support for Django below 4.2
1 parent dc3d8ff commit 326cdc6

File tree

6 files changed

+14
-31
lines changed

6 files changed

+14
-31
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ jobs:
1616
- '3.11'
1717
- '3.12'
1818
django-version:
19-
- '3.2'
20-
- '4.0'
21-
- '4.1'
2219
- '4.2'
2320
- '5.0'
21+
- '5.1'
2422
- 'main'
2523
exclude:
2624
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
@@ -30,21 +28,15 @@ jobs:
3028
django-version: '5.0'
3129
- python-version: '3.9'
3230
django-version: '5.0'
31+
- python-version: '3.8'
32+
django-version: '5.1'
33+
- python-version: '3.9'
34+
django-version: '5.1'
3335
- python-version: '3.8'
3436
django-version: 'main'
3537
- python-version: '3.9'
3638
django-version: 'main'
3739

38-
# Python 3.12 is not supported by Django < 5.0
39-
- python-version: '3.12'
40-
django-version: '3.2'
41-
- python-version: '3.12'
42-
django-version: '4.0'
43-
- python-version: '3.12'
44-
django-version: '4.1'
45-
- python-version: '3.12'
46-
django-version: '4.2'
47-
4840
steps:
4941
- uses: actions/checkout@v4
5042

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
### Deprecated
2626
### Removed
2727
* #1425 Remove deprecated `RedirectURIValidator`, `WildcardSet` per #1345; `validate_logout_request` per #1274
28+
* Remove support for Django below 4.2
2829

2930
### Fixed
3031
* #1443 Query strings with invalid hex values now raise a SuspiciousOperation exception (in DRF extension) instead of raising a 500 ValueError: Invalid hex encoding in query string.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Requirements
4444
------------
4545

4646
* Python 3.8+
47-
* Django 3.2, 4.0 (4.0.1+ due to a regression), 4.1, 4.2, or 5.0
47+
* Django 4.2, 5.0 and 5.1
4848
* oauthlib 3.1+
4949

5050
Installation

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Requirements
2222
------------
2323

2424
* Python 3.8+
25-
* Django 3.2, 4.0 (4.0.1+ due to a regression), 4.1, 4.2, or 5.0
25+
* Django 4.2, 5.0 and 5.1
2626
* oauthlib 3.1+
2727

2828
Index

setup.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ classifiers =
1212
Development Status :: 5 - Production/Stable
1313
Environment :: Web Environment
1414
Framework :: Django
15-
Framework :: Django :: 3.2
16-
Framework :: Django :: 4.0
17-
Framework :: Django :: 4.1
1815
Framework :: Django :: 4.2
1916
Framework :: Django :: 5.0
17+
Framework :: Django :: 5.1
2018
Intended Audience :: Developers
2119
License :: OSI Approved :: BSD License
2220
Operating System :: OS Independent
@@ -36,7 +34,7 @@ python_requires = >=3.8
3634
# jwcrypto has a direct dependency on six, but does not list it yet in a release
3735
# Previously, cryptography also depended on six, so this was unnoticed
3836
install_requires =
39-
django >= 3.2, != 4.0.0
37+
django >= 4.2
4038
requests >= 2.13.0
4139
oauthlib >= 3.1.0
4240
jwcrypto >= 0.8.0

tox.ini

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ envlist =
55
migrate_swapped,
66
docs,
77
sphinxlint,
8-
py{38,39,310}-dj32,
9-
py{38,39,310}-dj40,
10-
py{38,39,310,311}-dj41,
118
py{38,39,310,311,312}-dj42,
129
py{310,311,312}-dj50,
10+
py{310,311,312}-dj51,
1311
py{310,311,312}-djmain,
1412

1513
[gh-actions]
@@ -22,12 +20,9 @@ python =
2220

2321
[gh-actions:env]
2422
DJANGO =
25-
2.2: dj22
26-
3.2: dj32
27-
4.0: dj40
28-
4.1: dj41
2923
4.2: dj42
3024
5.0: dj50
25+
5.1: dj51
3126
main: djmain
3227

3328
[pytest]
@@ -50,12 +45,9 @@ setenv =
5045
PYTHONPATH = {toxinidir}
5146
PYTHONWARNINGS = all
5247
deps =
53-
dj22: Django>=2.2,<3
54-
dj32: Django>=3.2,<3.3
55-
dj40: Django>=4.0.0,<4.1
56-
dj41: Django>=4.1,<4.2
5748
dj42: Django>=4.2,<4.3
58-
dj50: Django>=5.0b1,<5.1
49+
dj50: Django>=5.0,<5.1
50+
dj51: Django>=5.1,<5.2
5951
djmain: https://github.com/django/django/archive/main.tar.gz
6052
djangorestframework
6153
oauthlib>=3.1.0

0 commit comments

Comments
 (0)