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_metadata #3282

Closed
jakirkham opened this issue Mar 29, 2022 · 3 comments · Fixed by #4547
Closed

Replace pkg_resources with importlib_metadata #3282

jakirkham opened this issue Mar 29, 2022 · 3 comments · Fixed by #4547
Assignees
Milestone

Comments

@jakirkham
Copy link

Currently pkg_resources is used in a few places (in particular iter_entry_points). Would be good to replace this with importlib_metadata (importlib.metadata added in Python 3.8 & stable in Python 3.10), which supersedes pkg_resources. In particular usages of iter_entry_points can be replaced by entry_points.

This also would allow setuptools to be dropped as a runtime requirement.

@jakirkham
Copy link
Author

FWIW a similar change was made in Distributed recently ( dask/distributed#5923 ). Maybe provides a better idea how this might look here

@philippjfr
Copy link
Member

Thanks @jakirkham, we do still support Python 3.7 for the time being so I'm not sure we can switch quite yet.

@jakirkham
Copy link
Author

Right the backport package supports Python 3.7

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 a pull request may close this issue.

4 participants