Remove legacy pkg_resources usage.

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

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

This is missing in the Args docstring.

maubinmaubin

This is missing a docstring

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

flake8

david
maubin
  1. 
      
  2. djblets/extensions/tests/base.py (Diff revision 2)
     
     
    Show all issues

    This is missing in the Args docstring.

  3. djblets/extensions/tests/test_extension_info.py (Diff revision 2)
     
     
     
     
     
     
     
     
     
    Show all issues

    This is missing a docstring

  4. 
      
david
maubin
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.x (0693e5d)