Skip to content

Commit 948d3d9

Browse files
committed
Add constraints for sphinxcontrib dependencies
1 parent c642946 commit 948d3d9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

build_docs.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ def requirements(self) -> list[str]:
183183
184184
"""
185185
dependencies = [
186+
"-rrequirements.txt",
186187
"jieba", # To improve zh search.
187188
"PyStemmer~=2.2.0", # To improve performance for word stemming.
188-
"-rrequirements.txt",
189189
]
190190
if self.as_tuple() >= (3, 11):
191191
return dependencies
@@ -194,7 +194,19 @@ def requirements(self) -> list[str]:
194194
return dependencies + ["standard-imghdr"]
195195

196196
# Requirements/constraints for Python 3.7 and older, pre-requirements.txt
197-
reqs = ["jieba", "blurb<1.2", "jinja2<3.1", "docutils<0.18", "standard-imghdr"]
197+
reqs = [
198+
"blurb<1.2",
199+
"docutils<=0.17.1",
200+
"jieba",
201+
"jinja2<3.1",
202+
"sphinxcontrib-applehelp<=1.0.2",
203+
"sphinxcontrib-devhelp<=1.0.2",
204+
"sphinxcontrib-htmlhelp<=2.0",
205+
"sphinxcontrib-jsmath<=1.0.1",
206+
"sphinxcontrib-qthelp<=1.0.3",
207+
"sphinxcontrib-serializinghtml<=1.1.5",
208+
"standard-imghdr",
209+
]
198210
if self.name in {"3.7", "3.6", "2.7"}:
199211
return reqs + ["sphinx==2.3.1"]
200212
if self.name == "3.5":

0 commit comments

Comments
 (0)