Skip to content

Commit ed2801b

Browse files
committed
style: remove unneded dependency
importlib-metadata not needed anymore after dropping support for Python 3.7. Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
1 parent 1752b7e commit ed2801b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

linkml_runtime/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
# use importlib.metadata to read the version provided
77
# by the package during installation. Do not hardcode
88
# the version in the code
9-
try:
10-
import importlib.metadata as importlib_metadata
11-
except ModuleNotFoundError:
12-
import importlib_metadata
9+
import importlib.metadata as importlib_metadata
1310

1411
LINKML = CurieNamespace('linkml', 'https://w3id.org/linkml/')
1512
TCCM = CurieNamespace('tccm', 'https://ontologies.r.us/tccm/')

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ pydantic = ">=1.10.2, <3.0.0"
5959

6060
[tool.poetry.dev-dependencies]
6161
coverage = "^6.2"
62-
importlib-metadata = {version = "^4.12.0", python = "<3.8"}
6362

6463
[build-system]
6564
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)