-
Notifications
You must be signed in to change notification settings - Fork 168
Description
Summary
This application relies on pkg_resources (which is installed via setuptools):
| import pkg_resources |
However, as of Setuptools v82.0.0, pkg_resources has been removed:
pkg_resourceshas been removed from Setuptools. Most common uses ofpkg_resourceshave been superseded by the importlib.resources and importlib.metadata projects. Projects and environments relying onpkg_resourcesfor namespace packages or other behavior should depend on older versions ofsetuptools. (#3085)
This means that running this application with a setuptools version of v82.0.0 or greater will raise a ModuleNotFoundError:
ModuleNotFoundError: No module named 'pkg_resources'
Resolution
I think it would be sufficient to just limit the setuptools version in the setup.py config:
- install_requires=['coverage', 'setuptools'],
+ install_requires=['coverage', 'setuptools<82.0.0'],Alternatively, refactoring to rely on importlib.resources or importlib.metadata might be more future-proof 🤷