Skip to content

Commit c287b10

Browse files
committed
Add and use extra requirements for docs and tests
1 parent e8e7316 commit c287b10

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ classifiers = [
3232
pg = [
3333
"PyGreSQL>=5",
3434
]
35-
testing = [
35+
docs = [
36+
"docutils",
37+
]
38+
tests = [
3639
"pytest>=7",
3740
"ruff",
3841
]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist = py3{7,8,9,10,11}, ruff, manifest, docs, spell
44
[testenv]
55
setenv =
66
PYTHONPATH = {toxinidir}
7-
deps = pytest>=7
7+
extras = tests
88
commands =
99
pytest {posargs}
1010

@@ -28,7 +28,7 @@ commands =
2828

2929
[testenv:docs]
3030
basepython = python3.10
31-
deps = docutils
31+
extras = docs
3232
changedir = docs
3333
commands =
3434
python make.py

0 commit comments

Comments
 (0)