You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee='https://github.com/jaraco'closed_at=<Date2021-03-07.22:43:02.795>created_at=<Date2020-11-17.06:56:21.443>labels= ['type-feature', 'library', '3.10']
title='No easy way to get the distribution which provided a importlib.metadata.EntryPoint'updated_at=<Date2021-03-07.22:47:18.618>user='https://github.com/s0undt3ch'
With pkg_resources an EntryPoint has a dist attribute which allows you to get the distribution that provided that specific entry-point, however, with importlib.metafata and importlib_metadata that's not an east task.
Pedro - thanks for the detailed report. Pull requests against importlib_metadata are easier to accept because they can be tested more easily, released more rapidly, and there's a straightforward way to port them to CPython. Regardless, I see you've proposed a change to CPython, so I can work with that.
Our software uses a plug-in based approach.
Plugins are able to add/modify internal behavior, and, as part of bug submission process we have a CLI flag which provides information about the core app as well as any intervening plugins.
This is where we need to "map" an entry point to it's distribution, so we know the name and version of it to display on this report.