summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorSviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>2024-09-13 19:39:14 +0200
committerGitHub <noreply@github.com>2024-09-13 19:39:14 +0200
commite68370f2aa2dc0fb435de39835beb0edc1c55225 (patch)
tree6a3b7fa8675ae5bf4eda61d2890edf44246ff84e /awxkit
parent🧪 Upload the `devel` branch coverage to Codecov (#15507) (diff)
downloadawx-e68370f2aa2dc0fb435de39835beb0edc1c55225.tar.xz
awx-e68370f2aa2dc0fb435de39835beb0edc1c55225.zip
Replace `pkg_resources` with `importlib.metadata` (#15441)
Diffstat (limited to 'awxkit')
-rwxr-xr-xawxkit/awxkit/cli/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/awxkit/awxkit/cli/client.py b/awxkit/awxkit/cli/client.py
index 46dc4fa333..de790e184e 100755
--- a/awxkit/awxkit/cli/client.py
+++ b/awxkit/awxkit/cli/client.py
@@ -2,8 +2,8 @@ from __future__ import print_function
import logging
import os
-import pkg_resources
import sys
+from importlib.metadata import version as _get_version
from requests.exceptions import RequestException
@@ -16,7 +16,7 @@ from awxkit.cli.utils import HelpfulArgumentParser, cprint, disable_color, color
from awxkit.awx.utils import uses_sessions # noqa
-__version__ = pkg_resources.get_distribution('awxkit').version
+__version__ = _get_version('awxkit')
class CLI(object):