Add missing dependency on importlib_metadata (#12384)

code_spécifique_watcha
David Robertson 3 years ago committed by GitHub
parent 7ec9b06303
commit 573cd0f92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/12384.misc
  2. 2
      poetry.lock
  3. 3
      pyproject.toml
  4. 3
      synapse/python_dependencies.py

@ -0,0 +1 @@
Make missing `importlib_metadata` dependency explicit.

2
poetry.lock generated

@ -1593,7 +1593,7 @@ url_preview = ["lxml"]
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.7" python-versions = "^3.7"
content-hash = "92465e65bef59c43c6112f332e5cf987740899801dbd34c19245db15b5c6362d" content-hash = "7ff6d982a9d6675cb595b216b23549ef1942d0e39cb91c97494ff6ed95a9e8d2"
[metadata.files] [metadata.files]
appdirs = [ appdirs = [

@ -167,6 +167,9 @@ ijson = ">=3.1.4"
matrix-common = "~=1.1.0" matrix-common = "~=1.1.0"
# We need packaging.requirements.Requirement, added in 16.1. # We need packaging.requirements.Requirement, added in 16.1.
packaging = ">=16.1" 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 = { version = ">=1.4", python = "<3.8" }
# Optional Dependencies # Optional Dependencies

@ -89,6 +89,9 @@ REQUIREMENTS = [
"matrix-common~=1.1.0", "matrix-common~=1.1.0",
# We need packaging.requirements.Requirement, added in 16.1. # We need packaging.requirements.Requirement, added in 16.1.
"packaging>=16.1", "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",
] ]
CONDITIONAL_REQUIREMENTS = { CONDITIONAL_REQUIREMENTS = {

Loading…
Cancel
Save