Skip to content

Commit

Permalink
Allow django 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
voidus committed Mar 28, 2024
1 parent dec88fd commit 80fa796
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11"]
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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 All @@ -32,7 +33,10 @@ include = ["README.rst", "CHANGELOG.rst", "LICENSE"]

[tool.poetry.dependencies]
python = "^3.9.0"
django = ">=3.0, <5.0"
django = [
{ version = ">=3.0, <5.0", python = ">= 3.9.0, <3.10"},
{ version = ">=3.0, <6.0", python = "^3.10.0"},
]
djangorestframework = "^3.13"
djangorestframework-dataclasses = "^1.3.0"
inflection = "^0.5.1"
Expand All @@ -53,12 +57,14 @@ isolated_build = true
envlist = py{39,310}-django{32}-drf{313,314}
py{39,310,311}-django{40}-drf{313,314}
py{39,310,311}-django{41,42}-drf{314}
py{310,311,312}-django{50}-drf{314,315}
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps =
Expand All @@ -71,8 +77,10 @@ deps =
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
drf313: djangorestframework>=3.13,<3.14
drf314: djangorestframework>=3.14,<3.15
drf315: djangorestframework>=3.15,<3.16
allowlist_externals = poetry
commands =
poetry run pytest --cov=./ --cov-report=xml
Expand Down

0 comments on commit 80fa796

Please sign in to comment.