Skip to content

Commit 3bd4c67

Browse files
authored
Support Django 5.2 (#633)
1 parent ae3fa94 commit 3bd4c67

File tree

9 files changed

+192
-5
lines changed

9 files changed

+192
-5
lines changed

docs/changelog.rst

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

5+
* Support Django 5.2.
6+
57
6.8.2 (2024-10-29)
68
------------------
79

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ WhiteNoise works with any WSGI-compatible application.
3131

3232
Python 3.8 to 3.13 supported.
3333

34-
Django 4.2 to 5.1 supported.
34+
Django 4.2 to 5.2 supported.
3535

3636
Installation
3737
------------

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ classifiers = [
2626
"Framework :: Django :: 4.2",
2727
"Framework :: Django :: 5.0",
2828
"Framework :: Django :: 5.1",
29+
"Framework :: Django :: 5.2",
2930
"Intended Audience :: Developers",
3031
"License :: OSI Approved :: MIT License",
3132
"Operating System :: OS Independent",

tests/requirements/compile.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@
6262
],
6363
input=b"Django>=5.1a1,<5.2",
6464
)
65+
run(
66+
[
67+
*common_args,
68+
"--python",
69+
"3.10",
70+
"--output-file",
71+
"py310-django52.txt",
72+
],
73+
input=b"Django>=5.2a1,<5.3",
74+
)
6575
run(
6676
[
6777
*common_args,
@@ -92,6 +102,16 @@
92102
],
93103
input=b"Django>=5.1a1,<5.2",
94104
)
105+
run(
106+
[
107+
*common_args,
108+
"--python",
109+
"3.11",
110+
"--output-file",
111+
"py311-django52.txt",
112+
],
113+
input=b"Django>=5.2a1,<5.3",
114+
)
95115
run(
96116
[
97117
*common_args,
@@ -122,6 +142,16 @@
122142
],
123143
input=b"Django>=5.1a1,<5.2",
124144
)
145+
run(
146+
[
147+
*common_args,
148+
"--python",
149+
"3.12",
150+
"--output-file",
151+
"py312-django52.txt",
152+
],
153+
input=b"Django>=5.2a1,<5.3",
154+
)
125155
run(
126156
[
127157
*common_args,
@@ -132,3 +162,13 @@
132162
],
133163
input=b"Django>=5.1a1,<5.2",
134164
)
165+
run(
166+
[
167+
*common_args,
168+
"--python",
169+
"3.13",
170+
"--output-file",
171+
"py313-django52.txt",
172+
],
173+
input=b"Django>=5.2a1,<5.3",
174+
)

tests/requirements/py310-django52.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --constraint - requirements.in --python 3.10 --output-file py310-django52.txt
3+
asgiref==3.8.1
4+
# via django
5+
brotli==1.1.0
6+
# via -r requirements.in
7+
certifi==2025.1.31
8+
# via requests
9+
charset-normalizer==3.4.1
10+
# via requests
11+
coverage==7.6.10
12+
# via -r requirements.in
13+
django==5.2a1
14+
# via -r requirements.in
15+
exceptiongroup==1.2.2
16+
# via pytest
17+
idna==3.10
18+
# via requests
19+
iniconfig==2.0.0
20+
# via pytest
21+
packaging==24.2
22+
# via pytest
23+
pluggy==1.5.0
24+
# via pytest
25+
pytest==8.3.4
26+
# via
27+
# -r requirements.in
28+
# pytest-randomly
29+
pytest-randomly==3.16.0
30+
# via -r requirements.in
31+
requests==2.32.3
32+
# via -r requirements.in
33+
sqlparse==0.5.3
34+
# via django
35+
tomli==2.2.1
36+
# via
37+
# coverage
38+
# pytest
39+
typing-extensions==4.12.2
40+
# via asgiref
41+
urllib3==2.3.0
42+
# via requests

tests/requirements/py311-django52.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --constraint - requirements.in --python 3.11 --output-file py311-django52.txt
3+
asgiref==3.8.1
4+
# via django
5+
brotli==1.1.0
6+
# via -r requirements.in
7+
certifi==2025.1.31
8+
# via requests
9+
charset-normalizer==3.4.1
10+
# via requests
11+
coverage==7.6.10
12+
# via -r requirements.in
13+
django==5.2a1
14+
# via -r requirements.in
15+
idna==3.10
16+
# via requests
17+
iniconfig==2.0.0
18+
# via pytest
19+
packaging==24.2
20+
# via pytest
21+
pluggy==1.5.0
22+
# via pytest
23+
pytest==8.3.4
24+
# via
25+
# -r requirements.in
26+
# pytest-randomly
27+
pytest-randomly==3.16.0
28+
# via -r requirements.in
29+
requests==2.32.3
30+
# via -r requirements.in
31+
sqlparse==0.5.3
32+
# via django
33+
urllib3==2.3.0
34+
# via requests

tests/requirements/py312-django52.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --constraint - requirements.in --python 3.12 --output-file py312-django52.txt
3+
asgiref==3.8.1
4+
# via django
5+
brotli==1.1.0
6+
# via -r requirements.in
7+
certifi==2025.1.31
8+
# via requests
9+
charset-normalizer==3.4.1
10+
# via requests
11+
coverage==7.6.10
12+
# via -r requirements.in
13+
django==5.2a1
14+
# via -r requirements.in
15+
idna==3.10
16+
# via requests
17+
iniconfig==2.0.0
18+
# via pytest
19+
packaging==24.2
20+
# via pytest
21+
pluggy==1.5.0
22+
# via pytest
23+
pytest==8.3.4
24+
# via
25+
# -r requirements.in
26+
# pytest-randomly
27+
pytest-randomly==3.16.0
28+
# via -r requirements.in
29+
requests==2.32.3
30+
# via -r requirements.in
31+
sqlparse==0.5.3
32+
# via django
33+
urllib3==2.3.0
34+
# via requests

tests/requirements/py313-django52.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --constraint - requirements.in --python 3.13 --output-file py313-django52.txt
3+
asgiref==3.8.1
4+
# via django
5+
brotli==1.1.0
6+
# via -r requirements.in
7+
certifi==2025.1.31
8+
# via requests
9+
charset-normalizer==3.4.1
10+
# via requests
11+
coverage==7.6.10
12+
# via -r requirements.in
13+
django==5.2a1
14+
# via -r requirements.in
15+
idna==3.10
16+
# via requests
17+
iniconfig==2.0.0
18+
# via pytest
19+
packaging==24.2
20+
# via pytest
21+
pluggy==1.5.0
22+
# via pytest
23+
pytest==8.3.4
24+
# via
25+
# -r requirements.in
26+
# pytest-randomly
27+
pytest-randomly==3.16.0
28+
# via -r requirements.in
29+
requests==2.32.3
30+
# via -r requirements.in
31+
sqlparse==0.5.3
32+
# via django
33+
urllib3==2.3.0
34+
# via requests

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
requires =
33
tox>=4.2
44
env_list =
5-
py313-django{51}
6-
py312-django{51, 50, 42}
7-
py311-django{51, 50, 42}
5+
py313-django{52, 51}
6+
py312-django{52, 51, 50, 42}
7+
py311-django{52, 51, 50, 42}
88
py311-codegen
9-
py310-django{51, 50, 42}
9+
py310-django{52, 51, 50, 42}
1010
py39-django{42}
1111

1212
[testenv]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy