bpo-30380: Pin the version of Sphinx used to build the docs (GH-1612)… · python/cpython@5e2016d (original) (raw)

Original file line number Diff line number Diff line change
@@ -37,9 +37,11 @@ matrix:
37 37 - TESTING=docs
38 38 before_script:
39 39 - cd Doc
40 - - make venv
40 +# Sphinx is pinned so that new versions that introduce new warnings won't suddenly cause build failures.
41 +# (Updating the version is fine as long as no warnings are raised by doing so.)
42 + - python -m pip install sphinx~=1.6.1
41 43 script:
42 - - make check suspicious html PYTHON="./venv/bin/python" SPHINXBUILD="./venv/bin/python -m sphinx" SPHINXOPTS="-q -W"
44 + - make check suspicious html SPHINXOPTS="-q -W"
43 45 - os: linux
44 46 language: c
45 47 compiler: gcc