removing use of pkg_resources to improve command line app performance

Jeremy Stanley fungi at yuggoth.org
Mon Jul 6 19:02:46 UTC 2020


On 2020-07-06 19:54:05 +0100 (+0100), Sean Mooney wrote:
> On Mon, 2020-07-06 at 14:37 -0400, Doug Hellmann wrote:
[...]
> > Python 3.8 added a new library importlib.metadata, which also
> > has an entry points API. It is more efficient, and produces data
> > in a format that can be cached to make it even faster. I have
> > started adding support for that caching to stevedore [0], which
> > is the Oslo library for managing application plugins. For
> > version of python earlier than 3.8, the same library is
> > available on PyPI as “importlib_metadata”.
> 
> based on
> https://opendev.org/openstack/governance/src/branch/master/reference/runtimes/victoria.rst
> we still need to support 3.6 for victoria. is there a backport lib
> like mock for this on older python releases?
[...]

According to https://pypi.org/project/importlib-metadata/ the
current version (1.7.0) supports Python 3.5 and later. Won't that
work?
-- 
Jeremy Stanley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200706/94b4a0b4/attachment.sig>


More information about the openstack-discuss mailing list