Skip to content

Commit

Permalink
docs: Pin jinja2 to < 3.1.0
Browse files Browse the repository at this point in the history
Jinja2 3.1.0 removed deprecated code that is still used by sphinx
1.8.x, and it looks like our custom sphinx extensions are not working
with more recent versions of sphinx..

See:
- pallets/jinja#1631
- readthedocs/readthedocs.org#9037

and

- #7712

The exact error is:
```
Extension error:
Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py))
```
  • Loading branch information
rgacogne committed Mar 25, 2022
1 parent 8b03d86 commit 92ad297
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ changelog>=0.5.6,<0.6
sphinxcontrib-fulltoc
guzzle_sphinx_theme
docutils!=0.15,<0.18
jinja2<3.1.0
1 change: 1 addition & 0 deletions pdns/dnsdistdist/docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ changelog>=0.5.6,<0.6
sphinxcontrib-httpdomain
sphinxcontrib-fulltoc
docutils!=0.15,<0.18
jinja2<3.1.0
1 change: 1 addition & 0 deletions pdns/recursordist/docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ guzzle_sphinx_theme
sphinxcontrib.httpdomain
sphinxcontrib-fulltoc
docutils!=0.15,<0.18
jinja2<3.1.0

0 comments on commit 92ad297

Please sign in to comment.