Remove legacy pkg_resources usage.

Review Request #14795 — Created Jan. 31, 2026 and updated

Information

Djblets
release-6.x

Reviewers

The old pkg_resources package 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 on importlib_metadata
instead (which is what the actual extensions implementation uses).

Ran unit tests.

Summary ID
Remove legacy pkg_resources usage.
The old `pkg_resources` package 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 on `importlib_metadata` instead (which is what the actual extensions implementation uses). Testing Done: Ran unit tests.
ystrulslxmnnuvyrqkyxltzppknrkulo
Description From Last Updated

'typing.cast' imported but unused Column: 1 Error code: F401

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

david
Review request changed
Commits:
Summary ID
Remove legacy pkg_resources usage.
The old `pkg_resources` package 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 on `importlib_metadata` instead (which is what the actual extensions implementation uses). Testing Done: Ran unit tests.
ystrulslxmnnuvyrqkyxltzppknrkulo
Remove legacy pkg_resources usage.
The old `pkg_resources` package 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 on `importlib_metadata` instead (which is what the actual extensions implementation uses). Testing Done: Ran unit tests.
ystrulslxmnnuvyrqkyxltzppknrkulo

Checks run (2 succeeded)

flake8 passed.
JSHint passed.