Skip to content

Commit

Permalink
Add support for Django 5.0 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhiebert authored Dec 11, 2023
1 parent 2a998b4 commit 1f25844
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
9 changes: 8 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
4.2 (TBD)
+++++++++

* Add support for Django 5.0.
* Add support for Python 3.12.
* Expand test matrix to all supported combinations of Django and Python.

4.1 (2023-09-13)
++++++++++++++++

* Add a pre-commit hook to ensure migrations have a safe atrribute.
* Add a pre-commit hook to ensure migrations have a safe attribute.

4.0 (2022-10-07)
++++++++++++++++
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ license = "MIT"
readme = "README.rst"

[tool.poetry.dependencies]
python = "^3.8"
django = ">=3.2,<5.0"
python = ">=3.8"
django = ">=3.2"

[tool.poetry.dev-dependencies]
tox = "*"
Expand Down
16 changes: 10 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@
isolated_build = True
envlist =
py{38,39,310}-dj32
py310-dj40
py{310,311}-dj{41,42,main}
py{38,39,310}-dj40
py{38,39,310,311}-dj41
py{38,39,310,311,312}-dj42
py{310,311,312}-dj50
py{310,311,312}-djmain

[testenv]
pip_pre = True
deps =
dj32: django~=3.2.9
dj32: django~=3.2.0
dj40: django~=4.0.0
dj41: django~=4.1.3
dj42: django>=4.2a1,<5
dj41: django~=4.1.0
dj42: django~=4.2.0
dj50: django~=5.0.0
djmain: https://github.com/django/django/archive/main.tar.gz
pytest
pytest-cov
pytest-django
pytest-pythonpath
pytest-mock
passenv =
CI
Expand All @@ -34,3 +37,4 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

0 comments on commit 1f25844

Please sign in to comment.