Browse code

Add doc/requirements.txt file with doc requirements

The sphinx jobs need to find doc requirements in either
test-requiremnts.txt or doc/requirements.txt. Putting them directly in
to tox.ini, not so much.

Change-Id: I98a43b511a6949fa4f00c26eec224d24d6fa6588

Monty Taylor authored on 2017/12/19 02:11:03
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,10 @@
0
+pbr>=2.0.0,!=2.1.0
1
+
2
+Pygments
3
+docutils
4
+sphinx>=1.6.2
5
+openstackdocstheme>=1.11.0
6
+nwdiag
7
+blockdiag
8
+sphinxcontrib-blockdiag
9
+sphinxcontrib-nwdiag
... ...
@@ -34,16 +34,7 @@ commands = bash -c "find {toxinidir}             \
34 34
          -print0 | xargs -0 bashate -v -iE006 -eE005,E042"
35 35
 
36 36
 [testenv:docs]
37
-deps =
38
-   Pygments
39
-   docutils
40
-   sphinx>=1.6.2
41
-   pbr>=2.0.0,!=2.1.0
42
-   openstackdocstheme>=1.11.0
43
-   nwdiag
44
-   blockdiag
45
-   sphinxcontrib-blockdiag
46
-   sphinxcontrib-nwdiag
37
+deps = -r{toxinidir}/doc/requirements.txt
47 38
 whitelist_externals = bash
48 39
 setenv =
49 40
   TOP_DIR={toxinidir}
... ...
@@ -51,11 +42,5 @@ commands =
51 51
   python setup.py build_sphinx
52 52
 
53 53
 [testenv:venv]
54
-deps =
55
-   pbr>=2.0.0,!=2.1.0
56
-   sphinx>=1.6.2
57
-   openstackdocstheme>=1.11.0
58
-   blockdiag
59
-   sphinxcontrib-blockdiag
60
-   sphinxcontrib-nwdiag
54
+deps = -r{toxinidir}/doc/requirements.txt
61 55
 commands = {posargs}