Skip to content

Commit 1f4e8f1

Browse files
committed
Move all testing dependencies into setup.py
1 parent 5d36848 commit 1f4e8f1

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@
2626
],
2727
extras_require={
2828
"testing": [
29-
'asynctest; python_version < "3.8.0"',
29+
# XXX: The order of these deps seems to matter
3030
"pytest>=5.4.5",
3131
"pytest-asyncio>=0.12.0",
32+
"pytest-timeout",
3233
"pytest-mock",
34+
"pytest-cov",
35+
"coveralls",
36+
'asynctest; python_version < "3.8.0"',
3337
]
3438
},
3539
)

tox.ini

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,8 @@ skip_missing_interpreters = True
99

1010
[testenv]
1111
setenv = PYTHONPATH = {toxinidir}
12-
install_command = pip install {opts} {packages}
12+
extras = testing
1313
commands = py.test --cov --cov-report=html
14-
deps =
15-
coveralls
16-
pytest==5.3.5
17-
pytest-cov
18-
pytest-asyncio==0.10.0
19-
pytest-timeout
20-
pytest-mock
21-
asyncmock
22-
asynctest
2314

2415
[testenv:lint]
2516
basepython = python3

0 commit comments

Comments
 (0)