Remove final use of pkg_resources
'pkg_resources' is slow, while 'importlib.metadata' is the new shiny and
is *much* faster. Recent version of 'importlib.metadata' - namely those
found in Python 3.10 or provided by the 4.4 'importlib-metadata'
backport - now provide the last bit of functionality we were missing to
remove 'pkg_resources' entirely, namely the ability to map package names
to modules. This is used for generating epilogs.
The benefits of this are huge, yielding a near 40% decrease in runtime
for the cliffdemo app (100mS after compared to 160mS) before.
Change-Id: I934d8a196d76622671781643f36bdb8a07d2f319
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
autopage>=0.4.0 # Apache 2.0 | ||
# TODO: Drop this when Python 3.10 is our minimum supported version | ||
importlib_metadata>=4.4 # Apache-2.0 | ||
cmd2>=1.0.0 # MIT | ||
PrettyTable>=0.7.2 # BSD | ||
stevedore>=2.0.1 # Apache-2.0 | ||
... | ... |
Please register or sign in to comment