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

Commit

Permalink
test-runner extra now also installs nose, et al.
Browse files Browse the repository at this point in the history
To make it easier for devs to execute individual tests.
  • Loading branch information
todofixthis committed Feb 15, 2018
1 parent 5989edd commit 5ec5dde
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
long_description = f.read()


##
# Declare test dependencies separately, so that they can be installed
# either automatically (``python setup.py test``) or manually
# (``pip install -e .[test-runner]``).
tests_require = [
'mock; python_version < "3.0"',
'nose',
]


##
# Off we go!
# noinspection SpellCheckingInspection
Expand Down Expand Up @@ -67,15 +77,12 @@
extras_require = {
'ccurl': ['pyota-ccurl'],
'docs-builder': ['sphinx', 'sphinx_rtd_theme'],
'test-runner': ['detox'],
'test-runner': ['detox'] + tests_require,
},

test_suite = 'test',
test_loader = 'nose.loader:TestLoader',
tests_require = [
'mock; python_version < "3.0"',
'nose',
],
tests_require = tests_require,

license = 'MIT',

Expand Down

0 comments on commit 5ec5dde

Please sign in to comment.