Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 5ec5dde

Browse files
committed
test-runner extra now also installs nose, et al.
To make it easier for devs to execute individual tests.
1 parent 5989edd commit 5ec5dde

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

setup.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
long_description = f.read()
2727

2828

29+
##
30+
# Declare test dependencies separately, so that they can be installed
31+
# either automatically (``python setup.py test``) or manually
32+
# (``pip install -e .[test-runner]``).
33+
tests_require = [
34+
'mock; python_version < "3.0"',
35+
'nose',
36+
]
37+
38+
2939
##
3040
# Off we go!
3141
# noinspection SpellCheckingInspection
@@ -67,15 +77,12 @@
6777
extras_require = {
6878
'ccurl': ['pyota-ccurl'],
6979
'docs-builder': ['sphinx', 'sphinx_rtd_theme'],
70-
'test-runner': ['detox'],
80+
'test-runner': ['detox'] + tests_require,
7181
},
7282

7383
test_suite = 'test',
7484
test_loader = 'nose.loader:TestLoader',
75-
tests_require = [
76-
'mock; python_version < "3.0"',
77-
'nose',
78-
],
85+
tests_require = tests_require,
7986

8087
license = 'MIT',
8188

0 commit comments

Comments
 (0)