mirror of https://github.com/ceph/ceph-ansible.git
tests: pin sphinx version to 1.7.9
using sphinx 1.8.0 breaks our doc test CI job.
Typical error:
```
Exception occurred:
File
"/home/jenkins-build/build/workspace/ceph-ansible-docs-pull-requests/docs/.tox/docs/lib/python2.7/site-packages/sphinx/highlighting.py", line 26, in <module>
from sphinx.ext import doctest
SyntaxError: unqualified exec is not allowed in function 'run' it contains a nested function with free variables (doctest.py, line 97)
```
See: https://github.com/sphinx-doc/sphinx/issues/5417
Pinning to 1.7.9 to fix our CI.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8f2c660d25
)
pull/3126/head
parent
8d6ba6f15c
commit
44fa0863fc
|
@ -5,6 +5,6 @@ skipsdist = True
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython=python
|
basepython=python
|
||||||
changedir=source
|
changedir=source
|
||||||
deps=sphinx
|
deps=sphinx==1.7.9
|
||||||
commands=
|
commands=
|
||||||
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
||||||
|
|
Loading…
Reference in New Issue