Skip to content
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 usage #279

Closed
miketheman opened this issue May 31, 2023 · 0 comments · Fixed by #281
Closed

Replace pkg_resources usage #279

miketheman opened this issue May 31, 2023 · 0 comments · Fixed by #281

Comments

@miketheman
Copy link
Member

miketheman commented May 31, 2023

Using pkg_resources.get_distribution with Python 3.11 raises a warning:

DeprecationWarning: pkg_resources is deprecated as an API

Triggering from here:

distribution = get_distribution(args.input)

Ref: https://setuptools.pypa.io/en/latest/pkg_resources.html

Action: Refactor code to take advantage of importlib.resources. Ensure backwards compat support is added for older Python versions with backport packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant