replace pkg_resource with importlib{_,.}{metadata,resources}#945
Conversation
|
I'm all for removing pkg_resources if it doesn't break on old (but still supported) Python versions, which it currently does (see tests). I'm also fine with removing Python 3.8 from the tests and adding python versions up to 3.14 to the tests. |
I have changed the version switches, so the importlib_metadata is used instead of I have not changed the versions tested because I don't fully understand how this tox workflow works. I would appreciate retaining support for 3.8 while that is possible without breaking compatibility with newer versions because we have some setups for training that still use it. |
setuptools 82 has finally removed pkg_resources outright, so the
pkg_resourcescalls and runtime setuptools dependency needs to go now.This PR:
pkg_resourceswith theimportlib.metadataandimportlib.resourcesAPIs.importlibbackports as requirements for older Python versionsWorkaround if this PR needs more time is to pin
setuptools < 82inrequirements.txt.