Skip to content

Commit

Permalink
Remove usage of deprecated pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovo committed Jun 4, 2024
1 parent 7317d5d commit b2a79e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdh/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import click
import pkg_resources
import importlib.metadata
import sys
import re
import os
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit b2a79e5

Please sign in to comment.