diff --git a/poetry.lock b/poetry.lock index d881c0c8..82a25e34 100644 --- a/poetry.lock +++ b/poetry.lock @@ -514,7 +514,6 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, diff --git a/project/pyproject.toml.jinja b/project/pyproject.toml.jinja index 6697b58f..48f37e89 100644 --- a/project/pyproject.toml.jinja +++ b/project/pyproject.toml.jinja @@ -18,6 +18,7 @@ classifiers = [ "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", {%- endif %} "Topic :: Software Development :: Libraries", ] diff --git a/project/{% if is_django_package %}tox.ini{% endif %}.jinja b/project/{% if is_django_package %}tox.ini{% endif %}.jinja index 6964e529..3afc7bdf 100644 --- a/project/{% if is_django_package %}tox.ini{% endif %}.jinja +++ b/project/{% if is_django_package %}tox.ini{% endif %}.jinja @@ -3,9 +3,9 @@ isolated_build = true requires = tox>=4.2 env_list = - py312-django{50,42} - py311-django{50,42} - py310-django{50,42} + py312-django{51,50,42} + py311-django{51,50,42} + py310-django{51,50,42} py39-django{42} py38-django{42} @@ -17,6 +17,7 @@ deps = # poetry export --without-hashes --only=dev --format=requirements.txt --output=requirements-dev.txt -r requirements-dev.txt # All supported Django versions + django51: Django>=5.1a1,<5.2 django50: Django>=5.0,<5.1 django42: Django>=4.2,<5.0 commands = diff --git a/tests/test_generate_project.py b/tests/test_generate_project.py index 479519bd..5d794c27 100644 --- a/tests/test_generate_project.py +++ b/tests/test_generate_project.py @@ -309,7 +309,12 @@ def test_django_package_yes( expected_strs=["Add the app to your `INSTALLED_APPS`:"], ) _check_file_contents( - dst_path / "tox.ini", expected_strs=["django42: Django>=4.2,<5.0"] + dst_path / "tox.ini", + expected_strs=[ + "django42: Django>=4.2,<5.0", + "django50: Django>=5.0,<5.1", + "django51: Django>=5.1a1,<5.2", + ], ) _check_file_contents( dst_path / ".gitignore", expected_strs=["requirements-dev.txt"] @@ -356,6 +361,7 @@ def test_django_package_no( unexpect_strs=[ '"Framework :: Django :: 4.2",', '"Framework :: Django :: 5.0",', + '"Framework :: Django :: 5.1",', 'django = ">=4.2"', 'pytest-django = "^4.5"', "django_find_project = false",