From e795a4c6f88a51a5d1b16b47d36f8e103f0a82ac Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Thu, 21 Jul 2022 04:56:46 +0200 Subject: [PATCH] Fix import metadatalib --- setup.py | 2 +- src/diffusers/dependency_versions_table.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index de367807c309..7517a2b4e571 100644 --- a/setup.py +++ b/setup.py @@ -169,7 +169,7 @@ def run(self): extras["dev"] = extras["quality"] + extras["test"] + extras["training"] install_requires = [ - deps["importlib_metadata"] + ";python_version<'3.8'", # importlib_metadata for Python versions that don't have it + deps["importlib_metadata"], deps["filelock"], deps["huggingface-hub"], deps["numpy"], diff --git a/src/diffusers/dependency_versions_table.py b/src/diffusers/dependency_versions_table.py index 7ed796a1fef0..56ee4b785fe7 100644 --- a/src/diffusers/dependency_versions_table.py +++ b/src/diffusers/dependency_versions_table.py @@ -7,6 +7,7 @@ "filelock": "filelock", "flake8": "flake8>=3.8.3", "huggingface-hub": "huggingface-hub", + "importlib_metadata": "importlib_metadata", "isort": "isort>=5.5.4", "numpy": "numpy", "pytest": "pytest",