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

Use importlib.resources.files and importlib.metadata if available #943

Merged

Conversation

mdickinson
Copy link
Member

This PR:

  • updates the core code to use importlib.resources.files in preference to importlib_resources.files
  • updates the setup.py requirements so that importlib_resources and importlib_metadata aren't installed if they're not needed

Closes #942.

Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM.

I tested this locally on Python 3.7 and 3.9 and everything looked good.

@rahulporuri rahulporuri merged commit f89fcfb into master Jun 14, 2021
@rahulporuri rahulporuri deleted the fix/dont-require-3rd-party-importlib-subpackages branch June 14, 2021 13: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.

Don't require importlib_metadata on Python 3.8 and later
2 participants