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.
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 thepkg_resources
module has already been integrated with the suggested replacements:importlib.resources
importlib.metadata
packaging
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: