[tox] Install "pyramid" dependencies in "doc" environment
Otherwise most of the cubicweb.pyramid API doc fails to build. For this we
skip installation in the "doc" environment and source the new
requirements/doc.txt which will install cubicweb[pyramid], thus pulling
cubicweb plus pyramid's dependencies.
Furthermore this requirements/doc.txt would be useful to build to
documentation on readthedocs.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/requirements/doc.txt Wed Mar 22 15:43:20 2017 +0100
@@ -0,0 +1,1 @@
+.[pyramid]
--- a/tox.ini Tue Mar 07 13:13:23 2017 +0100
+++ b/tox.ini Wed Mar 22 15:43:20 2017 +0100
@@ -26,9 +26,11 @@
commands = /bin/sh -c "flake8 `xargs -a {toxinidir}/flake8-ok-files.txt`"
[testenv:doc]
+skip_install = true
changedir = doc
deps =
sphinx
+ -r{toxinidir}/requirements/doc.txt
commands =
{envpython} -c 'import sphinx; sphinx.main()' -b html -d {envtmpdir}/doctrees . {envtmpdir}/html