Skip to content

Commit

Permalink
Support Django 5.2 (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Feb 6, 2025
1 parent ae3fa94 commit 3bd4c67
Show file tree
Hide file tree
Showing 9 changed files with 192 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Changelog
=========

* Support Django 5.2.

6.8.2 (2024-10-29)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ WhiteNoise works with any WSGI-compatible application.

Python 3.8 to 3.13 supported.

Django 4.2 to 5.1 supported.
Django 4.2 to 5.2 supported.

Installation
------------
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down
40 changes: 40 additions & 0 deletions tests/requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
],
input=b"Django>=5.1a1,<5.2",
)
run(
[
*common_args,
"--python",
"3.10",
"--output-file",
"py310-django52.txt",
],
input=b"Django>=5.2a1,<5.3",
)
run(
[
*common_args,
Expand Down Expand Up @@ -92,6 +102,16 @@
],
input=b"Django>=5.1a1,<5.2",
)
run(
[
*common_args,
"--python",
"3.11",
"--output-file",
"py311-django52.txt",
],
input=b"Django>=5.2a1,<5.3",
)
run(
[
*common_args,
Expand Down Expand Up @@ -122,6 +142,16 @@
],
input=b"Django>=5.1a1,<5.2",
)
run(
[
*common_args,
"--python",
"3.12",
"--output-file",
"py312-django52.txt",
],
input=b"Django>=5.2a1,<5.3",
)
run(
[
*common_args,
Expand All @@ -132,3 +162,13 @@
],
input=b"Django>=5.1a1,<5.2",
)
run(
[
*common_args,
"--python",
"3.13",
"--output-file",
"py313-django52.txt",
],
input=b"Django>=5.2a1,<5.3",
)
42 changes: 42 additions & 0 deletions tests/requirements/py310-django52.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --constraint - requirements.in --python 3.10 --output-file py310-django52.txt
asgiref==3.8.1
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2025.1.31
# via requests
charset-normalizer==3.4.1
# via requests
coverage==7.6.10
# via -r requirements.in
django==5.2a1
# via -r requirements.in
exceptiongroup==1.2.2
# via pytest
idna==3.10
# via requests
iniconfig==2.0.0
# via pytest
packaging==24.2
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.4
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.16.0
# via -r requirements.in
requests==2.32.3
# via -r requirements.in
sqlparse==0.5.3
# via django
tomli==2.2.1
# via
# coverage
# pytest
typing-extensions==4.12.2
# via asgiref
urllib3==2.3.0
# via requests
34 changes: 34 additions & 0 deletions tests/requirements/py311-django52.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --constraint - requirements.in --python 3.11 --output-file py311-django52.txt
asgiref==3.8.1
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2025.1.31
# via requests
charset-normalizer==3.4.1
# via requests
coverage==7.6.10
# via -r requirements.in
django==5.2a1
# via -r requirements.in
idna==3.10
# via requests
iniconfig==2.0.0
# via pytest
packaging==24.2
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.4
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.16.0
# via -r requirements.in
requests==2.32.3
# via -r requirements.in
sqlparse==0.5.3
# via django
urllib3==2.3.0
# via requests
34 changes: 34 additions & 0 deletions tests/requirements/py312-django52.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --constraint - requirements.in --python 3.12 --output-file py312-django52.txt
asgiref==3.8.1
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2025.1.31
# via requests
charset-normalizer==3.4.1
# via requests
coverage==7.6.10
# via -r requirements.in
django==5.2a1
# via -r requirements.in
idna==3.10
# via requests
iniconfig==2.0.0
# via pytest
packaging==24.2
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.4
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.16.0
# via -r requirements.in
requests==2.32.3
# via -r requirements.in
sqlparse==0.5.3
# via django
urllib3==2.3.0
# via requests
34 changes: 34 additions & 0 deletions tests/requirements/py313-django52.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --constraint - requirements.in --python 3.13 --output-file py313-django52.txt
asgiref==3.8.1
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2025.1.31
# via requests
charset-normalizer==3.4.1
# via requests
coverage==7.6.10
# via -r requirements.in
django==5.2a1
# via -r requirements.in
idna==3.10
# via requests
iniconfig==2.0.0
# via pytest
packaging==24.2
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.4
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.16.0
# via -r requirements.in
requests==2.32.3
# via -r requirements.in
sqlparse==0.5.3
# via django
urllib3==2.3.0
# via requests
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
requires =
tox>=4.2
env_list =
py313-django{51}
py312-django{51, 50, 42}
py311-django{51, 50, 42}
py313-django{52, 51}
py312-django{52, 51, 50, 42}
py311-django{52, 51, 50, 42}
py311-codegen
py310-django{51, 50, 42}
py310-django{52, 51, 50, 42}
py39-django{42}

[testenv]
Expand Down

0 comments on commit 3bd4c67

Please sign in to comment.