]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH...
authorNed Deily <nad@python.org>
Wed, 27 Oct 2021 15:04:38 +0000 (11:04 -0400)
committerGitHub <noreply@github.com>
Wed, 27 Oct 2021 15:04:38 +0000 (11:04 -0400)
Co-authored-by: Maciej Olko <maciej.olko@yougov.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
.azure-pipelines/docs-steps.yml
Doc/requirements.txt

index eaf4ad01927aebae1ca46c2b5a95107b4d2b91db..647daff7a033a8e228f46837b1b7b4552ac27c6c 100644 (file)
@@ -12,11 +12,12 @@ steps:
   inputs:
     versionSpec: '>=3.6'
 
-- script: python -m pip install sphinx==2.2.0 blurb python-docs-theme
+- script: python -m pip install -r requirements.txt
+  workingDirectory: '$(build.sourcesDirectory)/Doc'
   displayName: 'Install build dependencies'
 
 - ${{ if ne(parameters.latex, 'true') }}:
-  - script: make check suspicious html PYTHON=python
+  - script: make check html PYTHON=python
     workingDirectory: '$(build.sourcesDirectory)/Doc'
     displayName: 'Build documentation'
 
@@ -31,7 +32,7 @@ steps:
 - ${{ if eq(parameters.upload, 'true') }}:
   - task: PublishBuildArtifacts@1
     displayName: 'Publish docs'
-  
+
     inputs:
       PathToPublish: '$(build.sourcesDirectory)/Doc/build'
       ArtifactName: docs
index 47b78eeac817e010c759698cdafac7b1654fade7..cb21ed20397b2fe6124ca5b0b4feb65c5e7e5706 100644 (file)
@@ -4,6 +4,10 @@
 # won't suddenly cause build failures. Updating the version is fine as long
 # as no warnings are raised by doing so.
 sphinx==2.4.4
+# Docutils version is pinned to a version compatible with Sphinx
+# version 2.4.4. It can be removed after bumping Sphinx version to at
+# least 3.5.4.
+docutils==0.17.1
 
 blurb