diff --git a/src/pdh/main.py b/src/pdh/main.py index 9ddc417..ef0b217 100644 --- a/src/pdh/main.py +++ b/src/pdh/main.py @@ -15,7 +15,7 @@ # along with this program. If not, see . # import click -import pkg_resources +import importlib.metadata import sys import re import os @@ -56,7 +56,7 @@ def config(config): @main.command(help="Print cloud tools version and exit") def version(): - click.echo(f"v{pkg_resources.get_distribution('pdh').version}") + click.echo(f"v{importlib.metadata.version('pdh')}") @main.group(help="Operater on Users")