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
fix: Replace deprecated pkg_resources with importlib.metadata to clear DeprecationWarning #2392
Conversation
Should we have a changelog entry for this? |
I don't think so because it doesn't affect the end-user? |
It removes a deprecation warning that appears in their terminal |
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.
Please add a changelog entry
alr, I'll get onto it soon |
Head branch was pushed to by a user without write access
Done |
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
Head branch was pushed to by a user without write access
Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Revnoplex <62947003+Revnoplex@users.noreply.github.com>
Summary
Replaced
pkg_resources
withimportlib.metadata
as favoured here. Hence replacingget_distribution()
withversion()
.This clears the following deprecation warning:
Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.