diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-01-17 23:28:05 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-01-17 23:28:05 -0500 |
commit | 9417608c11482a422a26b8fb4edf3872497e36f1 (patch) | |
tree | fbac775022c937b0de2600f7a4d785f362522db0 | |
parent | 191717ae354f0860b6c66850280faf93e3cb5401 (diff) | |
download | cryptography-9417608c11482a422a26b8fb4edf3872497e36f1.tar.gz cryptography-9417608c11482a422a26b8fb4edf3872497e36f1.tar.bz2 cryptography-9417608c11482a422a26b8fb4edf3872497e36f1.zip |
Centralize declaration of docs and pep8 deps in setup.py
-rw-r--r-- | dev-requirements.txt | 8 | ||||
-rw-r--r-- | setup.py | 13 | ||||
-rw-r--r-- | tox.ini | 15 |
3 files changed, 17 insertions, 19 deletions
diff --git a/dev-requirements.txt b/dev-requirements.txt index 0ad5f927..8c4a188a 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,14 +1,8 @@ clint coverage -flake8 -flake8-import-order invoke -pep8-naming requests -sphinx -sphinx_rtd_theme -sphinxcontrib-spelling tox twine --e .[test] +-e .[test,docs-test,pep8-test] -e vectors @@ -310,6 +310,19 @@ setup( tests_require=test_requirements, extras_require={ "test": test_requirements, + "docs-test": [ + "doc8", + "pyenchant", + "readme_renderer", + "sphinx", + "sphinx_rtd_theme", + "sphinxcontrib-spelling", + ], + "pep8-test": [ + "flake8", + "flake8-import-order", + "pep8-naming", + ], }, # for cffi @@ -24,12 +24,7 @@ commands = [testenv:docs] deps = - doc8 - pyenchant - readme_renderer - sphinx - sphinx_rtd_theme - sphinxcontrib-spelling + .[docs-test] basepython = python2.7 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html @@ -57,18 +52,14 @@ commands = [testenv:pep8] deps = - flake8 - flake8-import-order - pep8-naming + .[pep8-test] commands = flake8 . [testenv:py3pep8] basepython = python3 deps = - flake8 - flake8-import-order - pep8-naming + .[pep8-test] commands = flake8 . |