Skip to content

Commit c224f7a

Browse files
remove deprecated pkg_resources and replace with importlib
1 parent 08d29d9 commit c224f7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyremo/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pkg_resources
1+
from importlib.metadata import version as _get_version
22

33
from . import codes, data, physics, remo_ds, tutorial
44
from .cal import parse_absolute_time, parse_dates
@@ -8,7 +8,7 @@
88
from .tables import domains, vc
99

1010
try:
11-
__version__ = pkg_resources.get_distribution("pyremo").version
11+
__version__ = _get_version("pyremo")
1212
except Exception:
1313
# Local copy or not installed with setuptools.
1414
# Disable minimum version checks on downstream libraries.

0 commit comments

Comments
 (0)