PyCQA / flake8-import-order

Flake8 plugin that checks import order against various Python Style Guides
GNU Lesser General Public License v3.0
278 stars 72 forks source link

Replace pkg_resources with importlib.metadata. #203

Open clalancette opened 9 months ago

clalancette commented 9 months ago

As of setuptools 68.0.0, the entire pkg_resources library is deprecated. Switch away from pkg_resources.iter_entry_points and instead use importlib.metadata.entry_points(), which provides the same information in a slightly different format.

This should fix #201

clalancette commented 8 months ago

Friendly ping on this one. This should get rid of warnings when using this flake8 plugin with newer Python.