Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@jaraco With commit 0c81964 the behavior of Entrypoints gets a bit disorienting.
Being unfamiliar with the EntryPoints API I fired up ipython and inspected the result of selecting some entry-point I am interested in.
The representation is that of a regular tuple:
(EntryPoint(name='py.test', value='pytest:console_main', group='console_scripts'),
EntryPoint(name='pytest', value='pytest:console_main', group='console_scripts'),
EntryPoint(name='humanfriendly', value='humanfriendly.cli:main', group='console_scripts'))
My expectation was that the collection should act like a tuple which can be indexed by integers. Would you be open to accept the custom
__repr__
in this PR ?I gather that Entrypoints at this point is essentially an immutable OrderedDict with some convenience selectors/filters. Is this correct?
Alternatively you could consider vendoring frozenordereddict (I haven't tried it myself).