DeprecationWarning: pkg_resources is deprecated as an API
ClementPinard opened this issue · 0 comments
ClementPinard commented
pkg_resources
is called from eta.core.utils
, but its use is now deprecated, since setuptools > 67.5
See the warning on most recent file here : https://github.com/pypa/setuptools/blame/main/pkg_resources/__init__.py#L121
See commit introducing the warning here : pypa/setuptools@a1aeda3
Did not know why I had tons of warnings when running tests for my own library, and found the culprit in this package. I can go back to setuptools 65 the same way pip did : pypa/pip#11975, but might as well prepare for the future.
Recommendation is to use importlib.resources
instead of pkg_resources
, see related discussion : simonw/datasette#2057 (nice demonstration of chatgpt pair programming ! 😛 )