-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace pkg_resources
with importlib.metadata
#15441
Replace pkg_resources
with importlib.metadata
#15441
Conversation
e12ba1a
to
82af425
Compare
Quality Gate passedIssues Measures |
@chrismeyersfsu @TheRealHaoLiu looks like I can't request reviews in this repo, but perhaps you could merge it already? |
import pkg_resources | ||
|
||
__version__ = pkg_resources.get_distribution('awx').version | ||
except pkg_resources.DistributionNotFound: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL, this line errors out with a NameError
because it never exists prior to the import.
82af425
to
b2e6cd8
Compare
It's been deprecated for quite a while. Additionally, it's coming from an undeclared runtime dependency of `setuptools`.
Head branch was pushed to by a user without write access
b2e6cd8
to
2d16514
Compare
Quality Gate passedIssues Measures |
It's been deprecated for quite a while. Additionally, it's coming from an undeclared runtime dependency of
setuptools
.