bpo-30380: Pin the version of Sphinx used to build the documentation (GH-1612)
authorMariatta <Mariatta@users.noreply.github.com>
Tue, 16 May 2017 20:48:25 +0000 (13:48 -0700)
committerBrett Cannon <brettcannon@users.noreply.github.com>
Tue, 16 May 2017 20:48:25 +0000 (13:48 -0700)
.travis.yml

index 2062e81bea9e9dd051c6d481cd5cf77089ce0520..c4a21499749829c9182b2ac50c128af817ad2805 100644 (file)
@@ -38,9 +38,11 @@ matrix:
         - TESTING=docs
       before_script:
         - cd Doc
-        - make venv
+        # Sphinx is pinned so that new versions that introduce new warnings won't suddenly cause build failures.
+        # (Updating the version is fine as long as no warnings are raised by doing so.)
+        - python -m pip install sphinx~=1.6.1
       script:
-        - make check suspicious html PYTHON="./venv/bin/python" SPHINXBUILD="./venv/bin/python -m sphinx" SPHINXOPTS="-q -W"
+        - make check suspicious html SPHINXOPTS="-q -W"
     - os: linux
       language: c
       compiler: gcc