diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 991872b..7f8a7de 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -28,6 +28,7 @@ jobs: - "3.2" # LTS - "4.2" # LTS - "5.0" + - "5.1" drf-version: - "" - "3.14" # only testing latest version for now @@ -43,6 +44,11 @@ jobs: django-version: "5.0" - python-version: "3.9" django-version: "5.0" + # Django 5.1 is compatible with Python 3.10+ + - python-version: "3.8" + django-version: "5.1" + - python-version: "3.9" + django-version: "5.1" steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 640781b..2c3a0c3 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ to help your team dramatically improve your productivity. Supports: Python 3.8, 3.9, 3.10, 3.11, and 3.12. -Supports Django Versions: 3.2, 4.2, and 5.0. +Supports Django Versions: 3.2, 4.2, 5.0, and 5.1. ## Documentation diff --git a/noxfile.py b/noxfile.py index c4cce9b..44232cd 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,16 +1,20 @@ import nox -DJANGO_VERSIONS = ["3.2", "4.2", "5.0"] -DRF_VERSIONS = ["3.11", "3.12", "3.13", "3.14"] +DJANGO_VERSIONS = ["3.2", "4.2", "5.0", "5.1"] +DRF_VERSIONS = ["3.11", "3.12", "3.13", "3.14", ] PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"] INVALID_PYTHON_DJANGO_SESSIONS = [ - ("3.8", "5.0"), ("3.9", "5.0"), + ("3.8", "5.1"), + ("3.9", "5.1"), ("3.11", "3.2"), ("3.12", "3.2"), ] +nox.options.default_venv_backend = "uv|venv" +nox.options.reuse_existing_virtualenvs = True + @nox.session(python=PYTHON_VERSIONS, tags=["django"], venv_backend="uv") @nox.parametrize("django", DJANGO_VERSIONS) @@ -23,7 +27,7 @@ def tests(session: nox.Session, django: str) -> None: @nox.session(python=["3.10"], tags=["drf"], venv_backend="uv") -@nox.parametrize("django", ["3.2"]) +@nox.parametrize("django", ["4.2"]) @nox.parametrize("drf", DRF_VERSIONS) def tests_drf(session: nox.Session, django: str, drf: str) -> None: session.install(".[test]") diff --git a/setup.cfg b/setup.cfg index e3b1c01..187afbf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,10 +17,9 @@ classifiers = Environment :: Web Environment Framework :: Django Framework :: Django :: 3.2 - Framework :: Django :: 4.0 - Framework :: Django :: 4.1 Framework :: Django :: 4.2 Framework :: Django :: 5.0 + Framework :: Django :: 5.1 Framework :: Pytest Intended Audience :: Developers License :: OSI Approved :: BSD License diff --git a/test_project/test_project/settings.py b/test_project/test_project/settings.py index 4953add..3adae1e 100644 --- a/test_project/test_project/settings.py +++ b/test_project/test_project/settings.py @@ -108,4 +108,3 @@ REST_FRAMEWORK = { 'TEST_REQUEST_DEFAULT_FORMAT': 'json', } -