Skip to content

Commit

Permalink
Support Django 5.1 (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Jun 19, 2024
1 parent 1c2d056 commit 727fce0
Show file tree
Hide file tree
Showing 8 changed files with 147 additions and 4 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.1.

6.6.0 (2023-10-11)
------------------

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.12 supported.

Django 3.2 to 5.0 supported.
Django 3.2 to 5.1 supported.

Installation
------------
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down
30 changes: 30 additions & 0 deletions requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@
],
input=b"Django>=5.0a1,<5.1",
)
run(
[
*common_args,
"--python",
"3.10",
"--output-file",
"py310-django51.txt",
],
input=b"Django>=5.1a1,<5.2",
)
run(
[
*common_args,
Expand Down Expand Up @@ -182,6 +192,16 @@
],
input=b"Django>=5.0a1,<5.1",
)
run(
[
*common_args,
"--python",
"3.11",
"--output-file",
"py311-django51.txt",
],
input=b"Django>=5.1a1,<5.2",
)
run(
[
*common_args,
Expand All @@ -202,3 +222,13 @@
],
input=b"Django>=5.0a1,<5.1",
)
run(
[
*common_args,
"--python",
"3.12",
"--output-file",
"py312-django51.txt",
],
input=b"Django>=5.1a1,<5.2",
)
42 changes: 42 additions & 0 deletions requirements/py310-django51.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-django51.txt
asgiref==3.8.1
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2024.6.2
# via requests
charset-normalizer==3.3.2
# via requests
coverage==7.5.3
# via -r requirements.in
django==5.1a1
# via -r requirements.in
exceptiongroup==1.2.1
# via pytest
idna==3.7
# via requests
iniconfig==2.0.0
# via pytest
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.2.2
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.15.0
# via -r requirements.in
requests==2.32.3
# via -r requirements.in
sqlparse==0.5.0
# via django
tomli==2.0.1
# via
# coverage
# pytest
typing-extensions==4.12.2
# via asgiref
urllib3==2.2.2
# via requests
34 changes: 34 additions & 0 deletions requirements/py311-django51.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-django51.txt
asgiref==3.8.1
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2024.6.2
# via requests
charset-normalizer==3.3.2
# via requests
coverage==7.5.3
# via -r requirements.in
django==5.1a1
# via -r requirements.in
idna==3.7
# via requests
iniconfig==2.0.0
# via pytest
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.2.2
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.15.0
# via -r requirements.in
requests==2.32.3
# via -r requirements.in
sqlparse==0.5.0
# via django
urllib3==2.2.2
# via requests
34 changes: 34 additions & 0 deletions requirements/py312-django51.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-django51.txt
asgiref==3.8.1
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2024.6.2
# via requests
charset-normalizer==3.3.2
# via requests
coverage==7.5.3
# via -r requirements.in
django==5.1a1
# via -r requirements.in
idna==3.7
# via requests
iniconfig==2.0.0
# via pytest
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.2.2
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.15.0
# via -r requirements.in
requests==2.32.3
# via -r requirements.in
sqlparse==0.5.0
# via django
urllib3==2.2.2
# via requests
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
requires =
tox>=4.2
env_list =
py312-django{50, 42}
py311-django{50, 42, 41}
py312-django{51, 50, 42}
py311-django{51, 50, 42, 41}
py311-codegen
py310-django{50, 42, 41, 40, 32}
py310-django{51, 50, 42, 41, 40, 32}
py39-django{42, 41, 40, 32}
py38-django{42, 41, 40, 32}

Expand Down

0 comments on commit 727fce0

Please sign in to comment.