summary refs log tree commit diff
path: root/synapse/__init__.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-04-20 17:33:20 +0100
committerGitHub <noreply@github.com>2022-04-20 17:33:20 +0100
commite5a76ec00b443c6e15ac8de2838a5c60a47a67ec (patch)
tree91978252df6c4d27438b21945015f311ace42c2f /synapse/__init__.py
parentFix Jinja templating error when generating thumbnail URLs. (#12510) (diff)
downloadsynapse-e5a76ec00b443c6e15ac8de2838a5c60a47a67ec.tar.xz
Dump setuptools; correct pyproject version number (#12478)
Diffstat (limited to 'synapse/__init__.py')
-rw-r--r--synapse/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/__init__.py b/synapse/__init__.py
index bf88f1d93d..1613941759 100644
--- a/synapse/__init__.py
+++ b/synapse/__init__.py
@@ -20,6 +20,8 @@ import json
 import os
 import sys
 
+from matrix_common.versionstring import get_distribution_version_string
+
 # Check that we're not running on an unsupported Python version.
 if sys.version_info < (3, 7):
     print("Synapse requires Python 3.7 or above.")
@@ -68,7 +70,7 @@ try:
 except ImportError:
     pass
 
-__version__ = "1.57.0"
+__version__ = get_distribution_version_string("matrix-synapse")
 
 if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
     # We import here so that we don't have to install a bunch of deps when