Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
importlib_metadata dependency (#534)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Guschin <1aguschin@gmail.com>
  • Loading branch information
mike0sv and aguschin authored Dec 20, 2022
1 parent 3d9f885 commit 66ad871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mlem/utils/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ def get_package_name(mod: Union[ModuleType, str]) -> str:
fix_suggestion,
)
return mod
if len(packages) > 1:
if len(packages[mod]) > 1:
logger.warning(
"Found multiple packages for '%s' module, using '%s'. %s",
"Found multiple packages for '%s' module: %s. Using first one. %s",
mod,
packages[mod][0],
packages[mod],
fix_suggestion,
)
return packages[mod][0]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"flatdict",
"iterative-telemetry>=0.0.6",
"python-multipart",
"importlib-metadata",
]

tests = [
Expand Down Expand Up @@ -52,7 +53,6 @@
"pyarrow",
"skl2onnx",
"dvc[s3]",
"importlib_metadata",
"httpx",
]

Expand Down

0 comments on commit 66ad871

Please sign in to comment.