-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Port iter_matching_entrypoints
to importlib.metadata
#513
Comments
i consider this low prio as the issue can't affect setuptools_scm in the intended usage scsenario as of now additionally this poses a issue as i don't really want to add the extra dependency for old pythons so i may decide to just leave it be until the pythons that don't have importlib_metadata no longer need to be supported |
Can you please elaborate on why that isn’t the intended usage scenario? Your readme says:
We do exactly that, and the setuptools maintainers explicitly ask you to no longer use If you want to keep it, in order to avoid hard-to-debug breakage, please create a new
why is that? |
In the use case for setuptools_scm a stale workingset is typically not a issue, in particular with more modern tools around, That Being said, if a pr is submitted to use importlib on pythons that support it, im happy to merge and release |
Thanks Ronny. I support this initiative. Even though |
Entirely possible! Are you actually importing anything from setuptools apart from |
@RonnyPfannschmidt what’s the plan? |
given that setup_requires usage is now deprecated, lets add it for the next feature release |
When calling
_version_from_entrypoints
→iter_matching_entrypoints
, we should useimportlib.metadata
instead ofpkg_resources
, aspkg_resources
isn’t the standard way to do this, and is also buggy in this context (see pypa/setuptools#2531)The changes required would be pretty minimal:
requirements:
code:
The text was updated successfully, but these errors were encountered: