diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-05 00:28:37 -0700 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-05 00:28:37 -0700 |
commit | 274cc113e3f36f6c083c5ed7bb8cb6dca58a9dc4 (patch) | |
tree | 6ac69656b9b2ead08ed5e2f60e169d550f3d2739 /setup.py | |
parent | 085f5093c705c9cd6a3a802bf2ce86e98bcc84f1 (diff) | |
download | cmd2-git-274cc113e3f36f6c083c5ed7bb8cb6dca58a9dc4.tar.gz |
Reduce redundant definition of dependencies
Modified setup.py to include a definition of the extra dependencies required for running unit tests.
This allowed a significant simplification of tox.ini
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -70,13 +70,14 @@ EXTRAS_REQUIRE = { ":sys_platform!='win32'": ['wcwidth'], # Python 3.4 and earlier require contextlib2 for temporarily redirecting stderr and stdout ":python_version<'3.5'": ['contextlib2', 'typing'], - # development only dependencies - # install with 'pip install -e .[dev]' - 'dev': [ - # for python 3.5 and earlier we need the third party mock module - "mock ; python_version<'3.6'", - 'pytest', 'codecov', 'pytest-cov', 'pytest-mock', 'tox', 'pylint', - 'sphinx', 'sphinx-rtd-theme', 'sphinx-autobuild', 'invoke', 'twine>=1.11', + # Extra dependencies for running unit tests + 'test': ["argcomplete ; sys_platform!='win32", # include argcomplete tests where available + "mock ; python_version<'3.6'", # for python 3.5 and earlier we need the third party mock module + 'codecov', 'pytest', 'pytest-cov', 'pytest-mock'], + # development only dependencies: install with 'pip install -e .[dev]' + 'dev': ["mock ; python_version<'3.6'", # for python 3.5 and earlier we need the third party mock module + 'pytest', 'codecov', 'pytest-cov', 'pytest-mock', 'tox', 'pylint', + 'sphinx', 'sphinx-rtd-theme', 'sphinx-autobuild', 'invoke', 'twine>=1.11', ] } |