containerbuildsystem / cachi2

GNU General Public License v3.0
7 stars 25 forks source link

Move off of the pkg_resources to importlib and packaging APIs #482

Open eskultety opened 5 months ago

eskultety commented 5 months ago

The pkg_resources module has been officially marked deprecated by setuptools for a while although no official date for removal has been set. That said, despite the fact that much of the backend implementation of the pkg_resources module has already been integrated with the suggested replacements:

There was a version of pip which due to an upgrade of setuptools which had already marked pkg_resources as deprecated started complaining about a deprecated vendored module: https://github.com/pypa/pip/issues/11975. The issue has been fixed since in pip, but the reality is that once a package has been marked as deprecated we should follow the official migration guides to drop such a dependency.

Other useful references: