Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Pin Jinja to <3.1.0 (#12297)
Browse files Browse the repository at this point in the history
as 3.1.0 removed the deprecated jinja2.Markup class which we still rely on.
  • Loading branch information
anoadragon453 authored Mar 24, 2022
1 parent 0004260 commit 84eb14c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/12297.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pin Jinja to <3.1.0, as Synapse fails to start with Jinja 3.1.0.
3 changes: 2 additions & 1 deletion synapse/python_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
# Note: 21.1.0 broke `/sync`, see #9936
"attrs>=19.2.0,!=21.1.0",
"netaddr>=0.7.18",
"Jinja2>=2.9",
# Jinja2 3.1.0 removes the deprecated jinja2.Markup class, which we rely on.
"Jinja2<3.1.0",
"bleach>=1.4.3",
# We use `ParamSpec`, which was added in `typing-extensions` 3.10.0.0.
"typing-extensions>=3.10.0",
Expand Down

0 comments on commit 84eb14c

Please sign in to comment.