Skip to content

Commit fe26f05

Browse files
committed
fix jenkins job
1 parent d534f48 commit fe26f05

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wavefront_cli/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Initialize wavefront cli version."""
22

3-
import pkg_resources
3+
import importlib.metadata
44

55
__version__ = None
66

77
try:
8-
__version__ = pkg_resources.get_distribution('wavefront-cli').version
9-
except pkg_resources.DistributionNotFound:
8+
__version__ = importlib.metadata.version('wavefront-cli')
9+
except importlib.metadata.PackageNotFoundError:
1010
# __version__ is only available when the distribution is installed.
1111
pass

0 commit comments

Comments
 (0)