Skip to content

Commit 3f36d49

Browse files
authored
Modernize pyproject + tox (#1227)
1 parent d160718 commit 3f36d49

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ classifiers = [
4040
dependencies = [
4141
"pytest>=7.0.0",
4242
]
43-
[dependency-groups]
43+
44+
[project.optional-dependencies]
4445
docs = [
4546
"sphinx",
4647
"sphinx_rtd_theme",
@@ -68,6 +69,7 @@ linting = [
6869
"ruff==0.9.5",
6970
"zizmor==1.9.0",
7071
]
72+
7173
[project.urls]
7274
Documentation = "https://pytest-django.readthedocs.io/"
7375
Repository = "https://github.com/pytest-dev/pytest-django"

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ envlist =
88
linting
99

1010
[testenv]
11-
dependency_groups =
11+
extras =
1212
testing
1313
coverage: coverage
1414
mysql: mysql
@@ -43,7 +43,7 @@ commands =
4343
coverage: coverage xml
4444

4545
[testenv:linting]
46-
dependency_groups = linting
46+
extras = linting
4747
commands =
4848
ruff check --diff {posargs:pytest_django pytest_django_test tests}
4949
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
@@ -54,12 +54,12 @@ commands =
5454
[testenv:doc8]
5555
basepython = python3
5656
skip_install = true
57-
dependency_groups = docs
57+
extras = docs
5858
deps =
5959
doc8
6060
commands =
6161
doc8 docs/
6262

6363
[testenv:docs]
64-
dependency_groups = docs
64+
extras = docs
6565
commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html

0 commit comments

Comments
 (0)