Switch from pkg_resources to importlib/packaging.
Review Request #13067 — Created May 25, 2023 and submitted
pkg_resourcesis deprecated, and not long for this world. To modernize
our code, we now use
importlib_resourcescompatibility modules) and
These aren't one-to-one replacements for
pkg_resources, but porting
was pretty minimal. For the purposes of RBTools, the new APIs give us
everything we need to look up entrypoints, fetch resource files, and
Tested running built-in RBTools commands, aliases, entrypoint-based
third-party commands, and commands in the search path starting with
Tested generating command line completion scripts.
Tested version parsing for all our flavors of version identifiers
provided throughout Review Board history (old-school
'typing.Iterable' imported but unused Column: 1 Error code: F401
Removed an unused import.
Revision 2 (+226 -82)
Checks run (2 succeeded)