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

Commit 573cd0f

Browse files
author
David Robertson
authored
Add missing dependency on importlib_metadata (#12384)
1 parent 7ec9b06 commit 573cd0f

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

changelog.d/12384.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make missing `importlib_metadata` dependency explicit.

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ ijson = ">=3.1.4"
167167
matrix-common = "~=1.1.0"
168168
# We need packaging.requirements.Requirement, added in 16.1.
169169
packaging = ">=16.1"
170+
# At the time of writing, we only use functions from the version `importlib.metadata`
171+
# which shipped in Python 3.8. This corresponds to version 1.4 of the backport.
172+
importlib_metadata = { version = ">=1.4", python = "<3.8" }
170173

171174

172175
# Optional Dependencies

synapse/python_dependencies.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
"matrix-common~=1.1.0",
9090
# We need packaging.requirements.Requirement, added in 16.1.
9191
"packaging>=16.1",
92+
# At the time of writing, we only use functions from the version `importlib.metadata`
93+
# which shipped in Python 3.8. This corresponds to version 1.4 of the backport.
94+
"importlib_metadata>=1.4",
9295
]
9396

9497
CONDITIONAL_REQUIREMENTS = {

0 commit comments

Comments
 (0)