Skip to content

Commit

Permalink
Support Django 5.0 (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Sep 19, 2023
1 parent bcbf50f commit 803d3df
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 3 deletions.
36 changes: 36 additions & 0 deletions requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,18 @@
check=True,
capture_output=True,
)
subprocess.run(
[
"python3.10",
*common_args,
"-P",
"Django>=5.0a1,<5.1",
"-o",
"py310-django50.txt",
],
check=True,
capture_output=True,
)
subprocess.run(
[
"python3.11",
Expand All @@ -185,6 +197,18 @@
check=True,
capture_output=True,
)
subprocess.run(
[
"python3.11",
*common_args,
"-P",
"Django>=5.0a1,<5.1",
"-o",
"py311-django50.txt",
],
check=True,
capture_output=True,
)
subprocess.run(
[
"python3.12",
Expand All @@ -197,3 +221,15 @@
check=True,
capture_output=True,
)
subprocess.run(
[
"python3.12",
*common_args,
"-P",
"Django>=5.0a1,<5.1",
"-o",
"py312-django50.txt",
],
check=True,
capture_output=True,
)
44 changes: 44 additions & 0 deletions requirements/py310-django50.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# requirements/compile.py
#
asgiref==3.7.2
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2023.7.22
# via requests
charset-normalizer==3.2.0
# via requests
coverage==7.3.1
# via -r requirements.in
django==5.0a1
# via -r requirements.in
exceptiongroup==1.1.3
# via pytest
idna==3.4
# via requests
iniconfig==2.0.0
# via pytest
packaging==23.1
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.2
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.15.0
# via -r requirements.in
requests==2.31.0
# via -r requirements.in
sqlparse==0.4.4
# via django
tomli==2.0.1
# via pytest
typing-extensions==4.8.0
# via asgiref
urllib3==2.0.4
# via requests
38 changes: 38 additions & 0 deletions requirements/py311-django50.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# requirements/compile.py
#
asgiref==3.7.2
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2023.7.22
# via requests
charset-normalizer==3.2.0
# via requests
coverage==7.3.1
# via -r requirements.in
django==5.0a1
# via -r requirements.in
idna==3.4
# via requests
iniconfig==2.0.0
# via pytest
packaging==23.1
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.2
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.15.0
# via -r requirements.in
requests==2.31.0
# via -r requirements.in
sqlparse==0.4.4
# via django
urllib3==2.0.4
# via requests
38 changes: 38 additions & 0 deletions requirements/py312-django50.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# requirements/compile.py
#
asgiref==3.7.2
# via django
brotli==1.1.0
# via -r requirements.in
certifi==2023.7.22
# via requests
charset-normalizer==3.2.0
# via requests
coverage==7.3.1
# via -r requirements.in
django==5.0a1
# via -r requirements.in
idna==3.4
# via requests
iniconfig==2.0.0
# via pytest
packaging==23.1
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.2
# via
# -r requirements.in
# pytest-randomly
pytest-randomly==3.15.0
# via -r requirements.in
requests==2.31.0
# via -r requirements.in
sqlparse==0.4.4
# via django
urllib3==2.0.4
# via requests
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers =
Framework :: Django :: 4.0
Framework :: Django :: 4.1
Framework :: Django :: 4.2
Framework :: Django :: 5.0
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Expand Down
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{42}
py311-django{42, 41}
py312-django{50, 42}
py311-django{50, 42, 41}
py311-codegen
py310-django{42, 41, 40, 32}
py310-django{50, 42, 41, 40, 32}
py39-django{42, 41, 40, 32}
py38-django{42, 41, 40, 32}

Expand Down

0 comments on commit 803d3df

Please sign in to comment.