Remove legacy pkg_resources usage.
Review Request #14795 — Created Jan. 31, 2026 and updated — Latest diff uploaded
The old
pkg_resourcespackage is deprecated and will be removed soon.
We've mostly removed it from our code, but we still had some usage of it
in the entrypoint mocking used for extensions testing. This change
replaces that with an implementation based onimportlib_metadata
instead (which is what the actual extensions implementation uses).
Ran unit tests.