We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d534f48 commit fe26f05Copy full SHA for fe26f05
1 file changed
wavefront_cli/__init__.py
@@ -1,11 +1,11 @@
1
"""Initialize wavefront cli version."""
2
3
-import pkg_resources
+import importlib.metadata
4
5
__version__ = None
6
7
try:
8
- __version__ = pkg_resources.get_distribution('wavefront-cli').version
9
-except pkg_resources.DistributionNotFound:
+ __version__ = importlib.metadata.version('wavefront-cli')
+except importlib.metadata.PackageNotFoundError:
10
# __version__ is only available when the distribution is installed.
11
pass
0 commit comments