Skip to content

Commit 22de5fc

Browse files
committed
Nox: add Sphinx < 5 dependency constraints
sphinx-doc/sphinx#11890
1 parent 0204fb5 commit 22de5fc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

noxfile.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,15 @@ def _install(session, docutils=None, sphinx=None, dist='wheel',
124124
major, _ = sphinx.split('.', maxsplit=1)
125125
if int(major) < 4:
126126
# https://github.com/sphinx-doc/sphinx/issues/10291
127-
session.run("pip", "install", f"jinja2<3.1")
127+
session.run("pip", "install", "jinja2<3.1")
128+
if int(major) < 5:
129+
# https://github.com/sphinx-doc/sphinx/issues/11890
130+
session.run("pip", "install", "alabaster==0.7.13")
131+
session.run("pip", "install", "sphinxcontrib-applehelp==1.0.4")
132+
session.run("pip", "install", "sphinxcontrib-devhelp==1.0.2")
133+
session.run("pip", "install", "sphinxcontrib-htmlhelp==2.0.1")
134+
session.run("pip", "install", "sphinxcontrib-serializinghtml==1.1.5")
135+
session.run("pip", "install", "sphinxcontrib-qthelp==1.0.3")
128136

129137

130138
def _unit(session, docutils=None, sphinx=None, dist='wheel',

0 commit comments

Comments
 (0)