[tox] Install "pyramid" dependencies in "doc" environment 3.25
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 22 Mar 2017 15:43:20 +0100
branch3.25
changeset 12092 09da91a5077b
parent 12091 3c9e296f0a6a
child 12093 fa341698ac9c
[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.
requirements/doc.txt
tox.ini
--- /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