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

refactor: remove importlib-metadata fallback #1066

Merged

Conversation

mkniewallner
Copy link
Contributor

Python 3.7 support has been removed in
#1034, so the importlib-metadata fallback, is no longer required, as it was only need for Python < 3.8.

Python 3.7 support has been removed in
PyCQA#1034, so the `importlib-metadata`
fallback, is no longer required, as it was only need for Python < 3.8.
@mkniewallner mkniewallner marked this pull request as ready for review October 1, 2023 11:52
@sigmavirus24
Copy link
Member

Given the breaking changes in the standard library between 3.9 and 3.10 (if I'm remembering my versions correctly) we should probably keep the third party backport just in case 3.12 or newer cause similar problems

@mkniewallner
Copy link
Contributor Author

Given the breaking changes in the standard library between 3.9 and 3.10 (if I'm remembering my versions correctly) we should probably keep the third party backport just in case 3.12 or newer cause similar problems

Unless I'm missing something, the only place where the fallback is used is here. Since we first try to import from importlib, which is available since Python 3.8, keeping the fallback (which is only installed if using Python < 3.8 anyway), the escape hatch to fallback to importlib_metadata is never used.

Copy link
Member

@ericwb ericwb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericwb ericwb merged commit 4dea02e into PyCQA:main Dec 8, 2023
13 checks passed
@mkniewallner mkniewallner deleted the refactor/remove-importlib-metadata-fallback branch December 21, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants