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 with importlib #1174

Merged
merged 2 commits into from
Jan 30, 2024
Merged

replace pkg_resources with importlib #1174

merged 2 commits into from
Jan 30, 2024

Conversation

kba
Copy link
Member

@kba kba commented Jan 24, 2024

pkg_resources is part of setuptools which should not be used at runtime. For one, its usage outside build has been deprecated for a while and will be removed in future versions. But also, importing pkg_resources is quite expensive. I have replaced all pkg_resources functionality with importlib.{resources,metadata} including shims for older python versions.

Also patched/forked bagit/bagit-profiles to do the same.

@kba kba merged commit d628a96 into master Jan 30, 2024
22 checks passed
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.

1 participant