Skip to content

Commit 6b130d2

Browse files
committed
Pin compatible docutils version for Sphinx <= 3.2.1.
1 parent f934924 commit 6b130d2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build_docs.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,21 @@ def __repr__(self):
9595

9696
@property
9797
def requirements(self):
98-
"""Generate the right requirements for this version, pin
99-
breaking sub-dependencies, like jinja2, as needed."""
98+
"""Generate the right requirements for this version, pinning breaking
99+
sub-dependencies as needed.
100+
"""
100101
reqs = [
101102
"blurb",
102103
"jieba",
103104
f"sphinx=={self.sphinx_version}",
104105
]
105106

106107
if version_to_tuple(self.sphinx_version) < (4, 5):
108+
# see https://github.com/python/cpython/issues/91294
107109
reqs += ["jinja2<3.1"]
110+
if version_to_tuple(self.sphinx_version) <= (3, 2, 1):
111+
# see https://github.com/python/cpython/issues/91483
112+
reqs += ["docutils<=0.17.1"]
108113
return reqs
109114

110115
@property

0 commit comments

Comments
 (0)