Skip to content

Commit 79aff1b

Browse files
committed
build: Use tox "constraints" and "deps" configuration options rather than assembling a custom install_command.
1 parent 764d890 commit 79aff1b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

tox.ini

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ passenv =
77

88
[testenv]
99
extras = testing
10-
install_command = python -m pip install \
11-
--requirement dependencies/default/requirements.txt \
12-
--constraint dependencies/default/constraints.txt \
13-
{opts} {packages}
10+
constraints = dependencies/default/constraints.txt
11+
deps = -r dependencies/default/requirements.txt
1412
commands = make test
1513
allowlist_externals =
1614
make
1715

1816
[testenv:pytest-min]
1917
extras = testing
20-
install_command = python -m pip install \
21-
--requirement dependencies/pytest-min/requirements.txt \
22-
--constraint dependencies/pytest-min/constraints.txt \
23-
{opts} {packages}
18+
constraints = dependencies/pytest-min/constraints.txt
19+
deps = -r dependencies/pytest-min/requirements.txt
2420
commands = make test
2521
allowlist_externals =
2622
make
@@ -29,9 +25,7 @@ allowlist_externals =
2925
allowlist_externals =
3026
git
3127
extras = docs
32-
deps =
33-
--requirement dependencies/default/requirements-docs.txt
34-
--constraint dependencies/default/constraints.txt
28+
deps = -r dependencies/default/requirements-docs.txt
3529
change_dir = docs
3630
description = Build The Docs with {basepython}
3731
commands =

0 commit comments

Comments
 (0)