-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Replace usage of pkg_resources.iter_entry_points, update exception message #8992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It is deprecated and to be removed soon: ``` UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. ``` Use `importlib.metadata` instead.
The changes are not compatible with Python 3.9. Waiting on #8994 to update the workflows |
Not a fan of doing these but the calls are correct according to the docs https://docs.python.org/3.10/library/importlib.metadata.html#entry-points
Typing errors will be fixed when #8995 is merged |
❌ Unsupported file formatUpload processing failed due to unsupported file format. Please review the parser error message:
For more help, visit our troubleshooting guide. |
@wardi Not sure what codecov is going on about, but this is ready to go |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dev-v2.11
git worktree add -d .worktree/backport-8992-to-dev-v2.11 origin/dev-v2.11
cd .worktree/backport-8992-to-dev-v2.11
git switch --create backport-8992-to-dev-v2.11
git cherry-pick -x e17ff328c87c3967c1f2aa2be8199ce4c44c92b9 6a1a513a13e3d89b84084ddd29926d8b83b97cf6 7c0c04b2ccc10f462b4979b50c225edd930ae1b2 beb3ba6845158fa5dd82b81a1d3eddd292fd8ae1 b81cac761585ca0860ebcb3df2b60a5e852a3fba 8d037744f0a842fd0247926804ebd5cb7bd85298 |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dev-v2.10
git worktree add -d .worktree/backport-8992-to-dev-v2.10 origin/dev-v2.10
cd .worktree/backport-8992-to-dev-v2.10
git switch --create backport-8992-to-dev-v2.10
git cherry-pick -x e17ff328c87c3967c1f2aa2be8199ce4c44c92b9 6a1a513a13e3d89b84084ddd29926d8b83b97cf6 7c0c04b2ccc10f462b4979b50c225edd930ae1b2 beb3ba6845158fa5dd82b81a1d3eddd292fd8ae1 b81cac761585ca0860ebcb3df2b60a5e852a3fba 8d037744f0a842fd0247926804ebd5cb7bd85298 |
2.11 version is here: #9013. On 2.10 the plugins code was too different to apply the patches. |
pkg_resources
is deprecated and to be removed soon, replace it withimportlib.metadata
instead. :While working on that code, I never liked this exception message when trying to load an non-existent plugin:
So I updated the message: