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

Update entry_points to new select-based API - [closed] #1004

Closed
asottile opened this issue Apr 3, 2021 · 3 comments
Closed

Update entry_points to new select-based API - [closed] #1004

asottile opened this issue Apr 3, 2021 · 3 comments

Comments

@asottile
Copy link
Member

asottile commented Apr 3, 2021

In GitLab by @jaraco on Mar 1, 2021, 11:29

Merges feature/importlib-metadata-entrypoints-select -> master

In python/importlib_metadata#278, the importlib_metadata project implemented a new, simpler API for selecting and iterating on EntryPoints. This proposal adopts that change in flake8, illustrating the preferred usage and limiting the potential for deprecation warnings in the future.

These changes have been adopted in keyring and twine.

The proposal includes two commits. The latter removing the 'compat' shim is optional. Omit that commit if you wish to keep the compatibility shim for a future in which Python 3.10+ includes this behavior (actual version not yet determined).

@asottile
Copy link
Member Author

asottile commented Apr 3, 2021

In GitLab by @jaraco on Mar 1, 2021, 11:30

Oh look. I didn't realize this project ran on Python 2. I'll withdraw the proposal for now.

@asottile
Copy link
Member Author

asottile commented Apr 3, 2021

In GitLab by @asottile on Mar 1, 2021, 12:02

Commented on src/flake8/_compat.py line 9

reintroducing the backport is a non-starter

@asottile
Copy link
Member Author

asottile commented Apr 3, 2021

In GitLab by @jaraco on Mar 30, 2021, 14:24

mentioned in merge request !472

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

No branches or pull requests

1 participant