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

Prefer importlib.metadata for metadata loading. #277

Merged
merged 3 commits into from
Jan 31, 2020
Merged

Prefer importlib.metadata for metadata loading. #277

merged 3 commits into from
Jan 31, 2020

Conversation

jaraco
Copy link
Contributor

@jaraco jaraco commented Jan 29, 2020

Fixes #271.

except ImportError:
import importlib_metadata as metadata
import importlib.metadata as metadata # type: ignore
except ImportError: # pragma: no cover
Copy link
Collaborator

Choose a reason for hiding this comment

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

Out of curiosity, when would this branch get hit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On Python 3.7 or earlier.

@theacodes
Copy link
Collaborator

Thanks for doing this @jaraco, I had one question before merging.

@theacodes
Copy link
Collaborator

Thanks so much for doing this

@theacodes theacodes merged commit 287ee4c into wntrblm:master Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Include setuptools as an explicit project requirement due to import pkg_resources
2 participants