diff options
author | Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua> | 2024-09-13 19:39:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 19:39:14 +0200 |
commit | e68370f2aa2dc0fb435de39835beb0edc1c55225 (patch) | |
tree | 6a3b7fa8675ae5bf4eda61d2890edf44246ff84e /awxkit | |
parent | 🧪 Upload the `devel` branch coverage to Codecov (#15507) (diff) | |
download | awx-e68370f2aa2dc0fb435de39835beb0edc1c55225.tar.xz awx-e68370f2aa2dc0fb435de39835beb0edc1c55225.zip |
Replace `pkg_resources` with `importlib.metadata` (#15441)
Diffstat (limited to 'awxkit')
-rwxr-xr-x | awxkit/awxkit/cli/client.py | 4 |
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): |