pkg_resources
has long been deprecated, but until recently has
remained consistent in behavior. The replacements can be found in
importlib.resources
, importlib.metadata
, and packaging
modules.
Over time, pkg_resources
began to wrap newer versions of some of these
modules, breaking backwards-compatibility. While not ideal, it's
incentive to move toward the modern packaging support in Python.
This change updates djblets.extensions
to (almost) fully move to these
new packages. In some cases, the updates are fairly straight-forward,
but in others there's some rewriting that needs to take place: