summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2017-11-30 14:41:27 -0500
committerDoug Hellmann <doug@doughellmann.com>2017-11-30 17:46:59 -0500
commit3ffdb1f0ba05555686840065a4cae36b93de86b5 (patch)
tree0ddbe58ca8e7d8c284c3f0e2cced3a7b4bf2c4a3
parent6720cf7ed0b031e9e37c0f268a5a485688fe66ec (diff)
downloadstevedore-3ffdb1f0ba05555686840065a4cae36b93de86b5.tar.gz
move doc requirements to doc/requirements.txt
The documentation jobs now look for requirements in doc/requirements.txt and do not use tox for release notes. Move the dependency list from setup.cfg to the new file and update tox.ini so the developer experience is consistent with what the CI system does. Change-Id: I739c9eba21d1b9a680d6b0e9cc6a4cbaca56e543 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--doc/requirements.txt3
-rw-r--r--setup.cfg5
-rw-r--r--test-requirements.txt3
-rw-r--r--tox.ini6
4 files changed, 10 insertions, 7 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
new file mode 100644
index 0000000..ea4c643
--- /dev/null
+++ b/doc/requirements.txt
@@ -0,0 +1,3 @@
+openstackdocstheme>=1.17.0 # Apache-2.0
+reno>=2.5.0 # Apache-2.0
+sphinx>=1.6.2 # BSD
diff --git a/setup.cfg b/setup.cfg
index c9edb6f..278485f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -16,11 +16,6 @@ classifier =
Intended Audience :: Developers
Environment :: Console
-[extras]
-docs =
- openstackdocstheme>=1.17.0 # Apache-2.0
- reno>=2.5.0 # Apache-2.0
-
[global]
setup-hooks =
pbr.hooks.setup_hook
diff --git a/test-requirements.txt b/test-requirements.txt
index 2118422..699eeaf 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -2,7 +2,8 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-sphinx>=1.6.2 # BSD
mock>=2.0.0 # BSD
coverage!=4.4,>=4.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
+# sphinx is needed for testing the sphinxext module
+sphinx>=1.6.2 # BSD
diff --git a/tox.ini b/tox.ini
index bb73ac1..5b84b80 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,11 +10,13 @@ setenv =
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps =
-r{toxinidir}/test-requirements.txt
- .[docs]
distribute = False
commands = python setup.py testr --testr-args='{posargs}'
[testenv:venv]
+deps =
+ -r{toxinidir}/test-requirements.txt
+ -r{toxinidir}/doc/requirements.txt
commands = {posargs}
[testenv:pep8]
@@ -23,6 +25,7 @@ ignore = E251
commands = flake8 stevedore setup.py
[testenv:docs]
+deps = -r{toxinidir}/doc/requirements.txt
commands = python setup.py build_sphinx
[flake8]
@@ -31,4 +34,5 @@ show-source = True
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build
[testenv:releasenotes]
+deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html