The new 1.8.0 release of Sphinx is breaking builds in our CI.
In order to get tox runs to pass, the requirement files need to be split
apart and Sphinx version explicitly set for coala. This is due to some
coala bear requiring a version of Sphinx <1.5, which appears to get
pulled in from the base requirements.txt file.
This patch also includes minor clean up of the tox.ini file and a
pyflake validation fix.
Change-Id: Iea9b870270d7a8954f611aaca451de653397397a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
--- /dev/null
+Sphinx~=1.7.9
+sphinx_bootstrap_theme>=0.6.2
import imp
import os.path
-import sphinx_bootstrap_theme
import yaml
+import sphinx_bootstrap_theme
+
def _merge_yaml(x, y):
"""Merge dictionary 'y' into 'x'.
pytest
pyyaml
-Sphinx
-sphinx_bootstrap_theme>=0.6.2
check-hooks,
coala,
docs,
- docs-linkcheck,
py27
[testenv]
-deps = -rrequirements.txt
+deps =
+ -rrequirements.txt
+ -rdocs/requirements.txt
commands =
pytest --basetemp={envtmpdir} {posargs}
deps =
coala
coala-bears
+ Sphinx<1.5,>=1.3
nodeenv==1.1.2
commands =
nodeenv -p
coala --non-interactive
[testenv:docs]
-deps = -rrequirements.txt
+deps = -rdocs/requirements.txt
commands =
sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"