]> git.ipfire.org Git - thirdparty/pdns.git/commit
docs: Pin jinja2 to < 3.1.0 11708/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 25 Mar 2022 08:45:55 +0000 (09:45 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 20 Jun 2022 10:52:02 +0000 (12:52 +0200)
commit0105e6da8a6a3905957b6931368d1f712b9c6110
treee2f601d9b0e5c8b8af3163a26529325119c098c6
parent0adb4d0edc628ee193a87c406e624a7fd5f6d92b
docs: Pin jinja2 to < 3.1.0

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:
- https://github.com/pallets/jinja/issues/1631
- https://github.com/readthedocs/readthedocs.org/issues/9037

and

- https://github.com/PowerDNS/pdns/pull/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))
```

(cherry picked from commit 92ad29702011ac7cbd0d7d118ba612e7e07cedbe)
docs/requirements.txt
pdns/dnsdistdist/docs/requirements.txt
pdns/recursordist/docs/requirements.txt