From e3d2fc1727598bfabb3df78032b83bdccb188681 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 5 Mar 2018 20:50:10 -0400 Subject: install only the minimum required to build our docs for rtd (#4133) * install only the minimum required to build our docs for rtd We don't need to install sphinxcontrib-spelling or doc8 in rtd. * move another package --- dev-requirements.txt | 2 +- rtd-requirements.txt | 1 + setup.py | 6 ++++-- tox.ini | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 rtd-requirements.txt diff --git a/dev-requirements.txt b/dev-requirements.txt index 93d28450..58827ed4 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,5 +4,5 @@ coverage requests tox >= 2.4.1 twine >= 1.8.0 --e .[test,docstest,pep8test] +-e .[test,docs,docstest,pep8test] -e vectors diff --git a/rtd-requirements.txt b/rtd-requirements.txt new file mode 100644 index 00000000..142b6ca3 --- /dev/null +++ b/rtd-requirements.txt @@ -0,0 +1 @@ +-e .[docs] diff --git a/setup.py b/setup.py index 800e94d2..b6558163 100644 --- a/setup.py +++ b/setup.py @@ -296,12 +296,14 @@ setup( ":platform_python_implementation != 'PyPy'": ["cffi >= 1.7"], "test": test_requirements, + "docs": [ + "sphinx >= 1.6.5", + "sphinx_rtd_theme", + ], "docstest": [ "doc8", "pyenchant >= 1.6.11", "readme_renderer >= 16.0", - "sphinx >= 1.6.5", - "sphinx_rtd_theme", "sphinxcontrib-spelling >= 4.0.1", ], "pep8test": [ diff --git a/tox.ini b/tox.ini index 03c4c074..6dfe1c72 100644 --- a/tox.ini +++ b/tox.ini @@ -37,6 +37,7 @@ commands = [testenv:docs] extras = + docs docstest basepython = python2.7 commands = -- cgit v1.2.3