Skip to content

Commit d2a5027

Browse files
committed
build(deps): drop spurious importlib-metadata dependency
importlib-metadata was declared as a direct dependency (^6.6) solely as a fallback for the stdlib importlib.metadata import in connect/client/version.py. Since the project requires Python >=3.9 and importlib.metadata has been in the standard library since 3.8, the except branch never executed and the <7 ceiling imposed by the caret was entirely artificial. Remove the dependency from pyproject.toml and the try/except fallback in version.py (now importing directly from importlib.metadata). importlib-metadata remains in the lock at 6.11.0 as a transitive dependency of mkdocs (python<3.10), so requirements/docs.txt is unaffected. LITE-34447
1 parent dbbb038 commit d2a5027

3 files changed

Lines changed: 108 additions & 29 deletions

File tree

connect/client/version.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
#
66
# Copyright (c) 2023 Ingram Micro. All Rights Reserved.
77
#
8-
try:
9-
from importlib.metadata import version
10-
except Exception:
11-
from importlib_metadata import version
8+
from importlib.metadata import version
129

1310

1411
def get_version():

0 commit comments

Comments
 (0)