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 deprecated pkg_resources #3119

Merged
merged 1 commit into from
Oct 28, 2023
Merged

Replace deprecated pkg_resources #3119

merged 1 commit into from
Oct 28, 2023

Conversation

justinmayer
Copy link
Member

@justinmayer justinmayer commented Apr 16, 2023

importlib.metadata.version() appears to be the anointed replacement. Not sure if what I've done here is appropriate or the best solution, so feedback is most welcome.

See also: Single-sourcing the package version

@avaris
Copy link
Member

avaris commented Apr 19, 2023

I think this is OK but importlib-metadata will be a requirement for python-3.7. Alternatively, we can drop support for 3.7 which is EOL in a few months (June 2023) anyway.

@justinmayer
Copy link
Member Author

Thanks for having a look. My primary motivation was to address deprecation warnings when running tests, which obviously is not a high priority. I think we can leave this PR open until after Python 3.7 is officially EOL, at which point we can merge it.

importlib.metadata.version() appears to be the anointed replacement.
@justinmayer justinmayer merged commit 6a623ba into master Oct 28, 2023
20 checks passed
@justinmayer justinmayer deleted the remove-pkg_resources branch October 28, 2023 09:34
@justinmayer justinmayer self-assigned this Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants