aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dev-requirements.txt8
-rw-r--r--setup.py13
-rw-r--r--tox.ini15
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
diff --git a/setup.py b/setup.py
index 7faac7c7..098a6bbb 100644
--- a/setup.py
+++ b/setup.py
@@ -309,6 +309,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
diff --git a/tox.ini b/tox.ini
index 1c502d6b..424dc5bb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,12 +19,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
@@ -52,18 +47,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 .