Skip to content

Commit e9f0d42

Browse files
committed
Merge tag 'v1.55.2' into beeper-master
Synapse 1.55.2 (2022-03-24) =========================== This patch version reverts the earlier fixes from Synapse 1.55.1, which could cause problems in certain deployments, and instead adds a cap to the version of Jinja to be installed. Again, this is to fix an incompatibility with version 3.1.0 of the [Jinja](https://pypi.org/project/Jinja2/) library, and again, deployments of Synapse using the `matrixdotorg/synapse` Docker image or Debian packages from packages.matrix.org are not affected. Internal Changes ---------------- - Pin Jinja to <3.1.0, as Synapse fails to start with Jinja 3.1.0. ([\matrix-org#12297](matrix-org#12297)) - Revert changes from 1.55.1 as they caused problems with older versions of Jinja ([\matrix-org#12296](matrix-org#12296))
2 parents ef3fdad + 9925f9b commit e9f0d42

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

CHANGES.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
Synapse 1.55.2 (2022-03-24)
2+
===========================
3+
4+
This patch version reverts the earlier fixes from Synapse 1.55.1, which could cause problems in certain deployments, and instead adds a cap to the version of Jinja to be installed. Again, this is to fix an incompatibility with version 3.1.0 of the [Jinja](https://pypi.org/project/Jinja2/) library, and again, deployments of Synapse using the `matrixdotorg/synapse` Docker image or Debian packages from packages.matrix.org are not affected.
5+
6+
Internal Changes
7+
----------------
8+
9+
- Pin Jinja to <3.1.0, as Synapse fails to start with Jinja 3.1.0. ([\#12297](https://github.com/matrix-org/synapse/issues/12297))
10+
- Revert changes from 1.55.1 as they caused problems with older versions of Jinja ([\#12296](https://github.com/matrix-org/synapse/issues/12296))
11+
12+
13+
Synapse 1.55.1 (2022-03-24)
14+
===========================
15+
16+
This is a patch release that fixes an incompatibility with version 3.1.0 of the [Jinja](https://pypi.org/project/Jinja2/) library, released on March 24th, 2022. Deployments of Synapse using the `matrixdotorg/synapse` Docker image or Debian packages from packages.matrix.org are not affected.
17+
18+
Internal Changes
19+
----------------
20+
21+
- Remove uses of the long-deprecated `jinja2.Markup` which would prevent Synapse from starting with Jinja 3.1.0 or above installed. ([\#12289](https://github.com/matrix-org/synapse/issues/12289))
22+
23+
124
Synapse 1.55.0 (2022-03-22)
225
===========================
326

debian/changelog

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
matrix-synapse-py3 (1.55.2) stable; urgency=medium
2+
3+
* New synapse release 1.55.2.
4+
5+
-- Synapse Packaging team <packages@matrix.org> Thu, 24 Mar 2022 19:07:11 +0000
6+
7+
matrix-synapse-py3 (1.55.1) stable; urgency=medium
8+
9+
* New synapse release 1.55.1.
10+
11+
-- Synapse Packaging team <packages@matrix.org> Thu, 24 Mar 2022 17:44:23 +0000
12+
113
matrix-synapse-py3 (1.55.0) stable; urgency=medium
214

315
* New synapse release 1.55.0.

synapse/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
except ImportError:
6969
pass
7070

71-
__version__ = "1.55.0"
71+
__version__ = "1.55.2"
7272

7373
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
7474
# We import here so that we don't have to install a bunch of deps when

synapse/python_dependencies.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
# Note: 21.1.0 broke `/sync`, see #9936
7575
"attrs>=19.2.0,!=21.1.0",
7676
"netaddr>=0.7.18",
77-
"Jinja2>=2.9",
77+
# Jinja2 3.1.0 removes the deprecated jinja2.Markup class, which we rely on.
78+
"Jinja2<3.1.0",
7879
"bleach>=1.4.3",
7980
# We use `ParamSpec`, which was added in `typing-extensions` 3.10.0.0.
8081
"typing-extensions>=3.10.0",

0 commit comments

Comments
 (0)