diff --git a/pyproject.toml b/pyproject.toml index 56b3cf2e..883143af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,8 +40,7 @@ classifiers = [ dependencies = [ "pytest>=7.0.0", ] - -[project.optional-dependencies] +[dependency-groups] docs = [ "sphinx", "sphinx_rtd_theme", @@ -69,7 +68,6 @@ linting = [ "ruff==0.9.5", "zizmor==1.9.0", ] - [project.urls] Documentation = "https://pytest-django.readthedocs.io/" Repository = "https://github.com/pytest-dev/pytest-django" diff --git a/tox.ini b/tox.ini index e8d739e6..1caaf78d 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ envlist = linting [testenv] -extras = +dependency_groups = testing coverage: coverage mysql: mysql @@ -43,7 +43,7 @@ commands = coverage: coverage xml [testenv:linting] -extras = linting +dependency_groups = linting commands = ruff check --diff {posargs:pytest_django pytest_django_test tests} ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests} @@ -54,12 +54,12 @@ commands = [testenv:doc8] basepython = python3 skip_install = true -extras = docs +dependency_groups = docs deps = doc8 commands = doc8 docs/ [testenv:docs] -extras = docs +dependency_groups = docs commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html