From 2cf74cf2fcde0e00dd583ae626c24ac15e8911bf Mon Sep 17 00:00:00 2001 From: David Robertson Date: Wed, 6 Apr 2022 17:37:56 +0100 Subject: [PATCH] Narrow the `importlib_metadata` dependency (#12400) --- changelog.d/12400.misc | 1 + synapse/python_dependencies.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/12400.misc diff --git a/changelog.d/12400.misc b/changelog.d/12400.misc new file mode 100644 index 000000000000..8a60f328764d --- /dev/null +++ b/changelog.d/12400.misc @@ -0,0 +1 @@ +Make missing `importlib_metadata` dependency explicit. \ No newline at end of file diff --git a/synapse/python_dependencies.py b/synapse/python_dependencies.py index cd68aa362e83..8bd91d5f727e 100644 --- a/synapse/python_dependencies.py +++ b/synapse/python_dependencies.py @@ -91,7 +91,7 @@ "packaging>=16.1", # At the time of writing, we only use functions from the version `importlib.metadata` # which shipped in Python 3.8. This corresponds to version 1.4 of the backport. - "importlib_metadata>=1.4", + "importlib_metadata>=1.4 ; python_version < '3.8'", ] CONDITIONAL_REQUIREMENTS = {