Skip to content

Commit a3479b1

Browse files
authored
Drop Django 3.2 to 4.1 support (#978)
These versions are all EOL since April.
1 parent 6f5222d commit a3479b1

14 files changed

+104
-1069
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
rev: 1.21.0
4040
hooks:
4141
- id: django-upgrade
42-
args: [--target-version, '3.2']
42+
args: [--target-version, '4.2']
4343
- repo: https://github.com/psf/black-pre-commit-mirror
4444
rev: 24.8.0
4545
hooks:

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
=========
44

5+
Unreleased
6+
----------
7+
8+
* Drop Django 3.2 to 4.1 support.
9+
510
4.5.0 (2024-10-12)
611
------------------
712

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Requirements
4949

5050
Python 3.9 to 3.13 supported.
5151

52-
Django 3.2 to 5.1 supported.
52+
Django 4.2 to 5.1 supported.
5353

5454
Setup
5555
-----

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ classifiers = [
2727
"Development Status :: 5 - Production/Stable",
2828
"Environment :: Web Environment",
2929
"Framework :: Django",
30-
"Framework :: Django :: 3.2",
31-
"Framework :: Django :: 4.0",
32-
"Framework :: Django :: 4.1",
3330
"Framework :: Django :: 4.2",
3431
"Framework :: Django :: 5.0",
3532
"Framework :: Django :: 5.1",
@@ -48,7 +45,7 @@ classifiers = [
4845
]
4946
dependencies = [
5047
"asgiref>=3.6",
51-
"django>=3.2",
48+
"django>=4.2",
5249
]
5350
urls.Changelog = "https://github.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst"
5451
urls.Funding = "https://adamj.eu/books/"

tests/requirements/compile.py

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,6 @@
2121
*sys.argv[1:],
2222
]
2323
run = partial(subprocess.run, check=True)
24-
run(
25-
[
26-
*common_args,
27-
"--python",
28-
"3.9",
29-
"--output-file",
30-
"py39-django32.txt",
31-
],
32-
input=b"Django>=3.2a1,<3.3",
33-
)
34-
run(
35-
[
36-
*common_args,
37-
"--python",
38-
"3.9",
39-
"--output-file",
40-
"py39-django40.txt",
41-
],
42-
input=b"Django>=4.0a1,<4.1",
43-
)
44-
run(
45-
[
46-
*common_args,
47-
"--python",
48-
"3.9",
49-
"--output-file",
50-
"py39-django41.txt",
51-
],
52-
input=b"Django>=4.1a1,<4.2",
53-
)
5424
run(
5525
[
5626
*common_args,
@@ -61,36 +31,6 @@
6131
],
6232
input=b"Django>=4.2a1,<5.0",
6333
)
64-
run(
65-
[
66-
*common_args,
67-
"--python",
68-
"3.10",
69-
"--output-file",
70-
"py310-django32.txt",
71-
],
72-
input=b"Django>=3.2a1,<3.3",
73-
)
74-
run(
75-
[
76-
*common_args,
77-
"--python",
78-
"3.10",
79-
"--output-file",
80-
"py310-django40.txt",
81-
],
82-
input=b"Django>=4.0a1,<4.1",
83-
)
84-
run(
85-
[
86-
*common_args,
87-
"--python",
88-
"3.10",
89-
"--output-file",
90-
"py310-django41.txt",
91-
],
92-
input=b"Django>=4.1a1,<4.2",
93-
)
9434
run(
9535
[
9636
*common_args,
@@ -121,16 +61,6 @@
12161
],
12262
input=b"Django>=5.1a1,<5.2",
12363
)
124-
run(
125-
[
126-
*common_args,
127-
"--python",
128-
"3.11",
129-
"--output-file",
130-
"py311-django41.txt",
131-
],
132-
input=b"Django>=4.1a1,<4.2",
133-
)
13464
run(
13565
[
13666
*common_args,

tests/requirements/py310-django32.txt

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)