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

Commit 5029079

Browse files
author
David Robertson
committed
Narrow the importlib_metadata dependency
`pyproject.toml` already has the version guard. I struggled to work out how to reproduce this guard under setuptools in #12384. But I really should have persisted there; without this, poetry and setuptools generate different sets of requirements. That means a poetry-installed Synapse on a 3.8+ interpreter will fail the runtime dependency checks.
1 parent 6fe757d commit 5029079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/python_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"packaging>=16.1",
9292
# At the time of writing, we only use functions from the version `importlib.metadata`
9393
# which shipped in Python 3.8. This corresponds to version 1.4 of the backport.
94-
"importlib_metadata>=1.4",
94+
"importlib_metadata>=1.4 ; python_version < '3.8'",
9595
]
9696

9797
CONDITIONAL_REQUIREMENTS = {

0 commit comments

Comments
 (0)