diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2ed74f6..774e7ca 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 5ed8237..c241c0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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" @@ -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 = @@ -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