From f82f6fd2b7628e53c8e4016033d54fa6cd608a5f Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Fri, 19 Jul 2024 11:40:55 +0100 Subject: [PATCH] Downgrade minimum version of Sphinx for Python 3.8 compatibility In 5a8c33f34a36a038ab8cdaedddf19fe4d5750cf5 the minimum version was set to 7.3 to allow use of the long-form `--fail-on-warning` option, but this is not compatible with Python 3.8. Revert this to the original `-W` option and set 7.0 as the minimum version. --- docs/Makefile | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 26cd257237a6..3d6fe3503ab4 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,7 +2,7 @@ # # You can set these variables from the command line. -SPHINXOPTS = --fail-on-warning -n -jauto +SPHINXOPTS = -W -n -jauto SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build diff --git a/setup.py b/setup.py index 7ca3fee4eb02..8ead614ecf2d 100755 --- a/setup.py +++ b/setup.py @@ -71,7 +71,7 @@ documentation_extras = [ "pyenchant>=3.1.1,<4", "sphinxcontrib-spelling>=7,<8", - "Sphinx>=7.3", + "Sphinx>=7.0", "sphinx-autobuild>=0.6.0", "sphinx-wagtail-theme==6.3.0", "myst_parser==2.0.0",