Skip to content

Commit

Permalink
Nox: add Sphinx < 5 dependency constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed Jul 12, 2024
1 parent 0204fb5 commit 22de5fc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,15 @@ def _install(session, docutils=None, sphinx=None, dist='wheel',
major, _ = sphinx.split('.', maxsplit=1)
if int(major) < 4:
# https://github.com/sphinx-doc/sphinx/issues/10291
session.run("pip", "install", f"jinja2<3.1")
session.run("pip", "install", "jinja2<3.1")
if int(major) < 5:
# https://github.com/sphinx-doc/sphinx/issues/11890
session.run("pip", "install", "alabaster==0.7.13")
session.run("pip", "install", "sphinxcontrib-applehelp==1.0.4")
session.run("pip", "install", "sphinxcontrib-devhelp==1.0.2")
session.run("pip", "install", "sphinxcontrib-htmlhelp==2.0.1")
session.run("pip", "install", "sphinxcontrib-serializinghtml==1.1.5")
session.run("pip", "install", "sphinxcontrib-qthelp==1.0.3")


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

0 comments on commit 22de5fc

Please sign in to comment.