Skip to content

Commit 9d7df86

Browse files
committed
Move test dependencies in extras_require
This avoid having to list them in tox.ini and allows us reusing the test dependencies in other workflows.
1 parent d2e9638 commit 9d7df86

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"requests_toolbelt",
1111
"tqdm",
1212
"stevedore>1.20.0",
13+
"setuptools",
1314
]
1415

1516
extras_require = {
@@ -18,7 +19,7 @@
1819
# There are some backward incompatible checks in typeguard 3.x
1920
"typeguard<3.0.0",
2021
],
21-
"test": ["pytest-socket"],
22+
"test": ["mock", "pytest-html", "pytest-socket", "ansi2html", "httpretty"],
2223
}
2324

2425
for p in ("darwin", "linux", "linux2", "win32"):

tox.ini

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,17 @@ envlist = py39-cov-xdist
33

44
[testenv]
55
deps =
6-
pytest
7-
pytest-html
8-
ansi2html
96
xdist: pytest-xdist[psutil]
10-
pytest-socket
117
# ??? needs to be added as a dep of e3-core
128
requests-cache
13-
mock
14-
# httpretty version 1.0.0 seems to be buggy, crash at install time
15-
httpretty != 1.0.0
16-
importlib_metadata < 5.0.0
17-
pyyaml
189
cov: pytest-cov
1910
cov: coverage
2011
codecov: codecov
2112

2213
passenv = CI,GITHUB_*,CODECOV_*
23-
extras = config
14+
extras =
15+
config
16+
test
2417

2518
# Run testsuite with coverage when '-cov' is in the env name
2619
commands=
@@ -45,6 +38,9 @@ commands=
4538
deps =
4639
bandit
4740
pip-audit
41+
setuptools >= 65.5.1
42+
wheel >= 0.38.1
43+
extras = config
4844
commands =
4945
bandit -r e3 -ll -ii -s B102,B108,B301,B303,B506
5046
pip-audit --desc on --skip-editable

0 commit comments

Comments
 (0)