diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-12 14:40:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 14:40:22 -0400 |
commit | 49236d98a770d9604e65eb1728d2f8d68e35d493 (patch) | |
tree | 69b72d38c3e1f9a7db5caff58af829ba77ed9a5c | |
parent | 4904e4a15e47b484b44eec9dce3c706c7423dcbe (diff) | |
parent | 5579f781e2c1e481708650e7a991992eec6f3f8b (diff) | |
download | cmd2-git-49236d98a770d9604e65eb1728d2f8d68e35d493.tar.gz |
Merge pull request #511 from python-cmd2/redundant_dependencies
Reduce redundant definition of dependencies
-rwxr-xr-x | setup.py | 15 | ||||
-rw-r--r-- | tox.ini | 82 |
2 files changed, 13 insertions, 84 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', ] } @@ -6,8 +6,11 @@ testpaths = tests [testenv] passenv = CI TRAVIS TRAVIS_* APPVEYOR* -setenv = - PYTHONPATH={toxinidir} +setenv = PYTHONPATH={toxinidir} +extras = test +commands = + py.test {posargs} --cov + codecov [testenv:docs] basepython = python3.5 @@ -16,78 +19,3 @@ deps = sphinx-rtd-theme changedir = docs commands = sphinx-build -a -W -T -b html -d {envtmpdir}/doctrees . {envtmpdir}/html - -[testenv:py34] -deps = - codecov - pyperclip - pytest - pytest-cov - pytest-mock - argcomplete - wcwidth -commands = - py.test {posargs} --cov - codecov - -[testenv:py35] -deps = - mock - pyperclip - pytest - pytest-mock - argcomplete - wcwidth -commands = py.test -v - -[testenv:py35-win] -deps = - mock - pyperclip - pyreadline - pytest -commands = py.test -v - -[testenv:py36] -deps = - codecov - pyperclip - pytest - pytest-cov - pytest-mock - argcomplete - wcwidth -commands = - py.test {posargs} --cov - codecov - -[testenv:py36-win] -deps = - codecov - pyperclip - pyreadline - pytest - pytest-cov -commands = - py.test {posargs} --cov - codecov - -[testenv:py37] -deps = - pyperclip - pytest - pytest-mock - argcomplete - wcwidth -commands = py.test -v - -[testenv:py37-win] -deps = - codecov - pyperclip - pyreadline - pytest - pytest-cov -commands = - py.test {posargs} --cov - codecov |