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.metadata instead of pkg_resources. #748

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

manthey
Copy link
Member

@manthey manthey commented Dec 21, 2021

Resolves #452.

@manthey manthey merged commit 181624f into master Dec 21, 2021
@manthey manthey deleted the importlib-pkg_resources branch December 21, 2021 17:09
Comment on lines +52 to +55
try:
from importlib.metadata import entry_points
except ImportError:
from importlib_metadata import entry_points
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is now a hard dependency and importlib.metadata is a part of stdlib >=3.8, then, in my opinion, this should be with the rest of the imports at the top of the file

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay. I'll shift it up.

@@ -77,6 +77,7 @@ def prerelease_local_scheme(version):
'Pillow!=8.3.0,!=8.3.1',
'psutil>=4.2.0', # technically optional
'numpy>=1.10.4',
'importlib-metadata ; python_version < "3.8"',
Copy link
Contributor

Choose a reason for hiding this comment

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

@manthey, on the next release, I need to make sure this is captured in the conda recipe for py3.7

Copy link
Contributor

Choose a reason for hiding this comment

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

Mostly a reminder for myself, and hoping you'll remind me if I forget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants