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/runtime... 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