We actually depend on lfdocs-conf to ship Sphinx to downstream
consumers removing it from requirements.txt was a bad idea.
Move it back and use skip_install=True in coala to have it skip
installing requirements.txt in the coala testenv.
Change-Id: Ia0739405a4b68dcdb1ca509701745b6dc9828588
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
PyImportSortBear
files = docs_conf/**.py
known_first_party_imports = lftools
-known_third_party_imports = pytest, six
+known_third_party_imports = pytest, six, sphinx_bootstrap_theme
pydocstyle_ignore = D203, D213, D301
max_line_length = 120
+++ /dev/null
-Sphinx~=1.7.9
-sphinx_bootstrap_theme>=0.6.2
import imp
import os.path
-import yaml
-
import sphinx_bootstrap_theme
+import yaml
def _merge_yaml(x, y):
pytest
pyyaml
+Sphinx~=1.7.9
+sphinx_bootstrap_theme>=0.6.2
[tox]
-minversion = 1.6
+minversion = 1.9
envlist =
check-hooks,
coala,
[testenv]
deps =
- -rrequirements.txt
- -rdocs/requirements.txt
+ -rrequirements.txt
commands =
pytest --basetemp={envtmpdir} {posargs}
deps =
coala
coala-bears
- Sphinx<1.5,>=1.3
nodeenv==1.1.2
commands =
nodeenv -p
npm install --global write-good
+ # Workaround for systems that do not have `skip_install` (tox>=1.9)
+ pip install Sphinx~=1.4.9
coala --non-interactive
+skip_install=True
[testenv:docs]
-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"