cinder/cinder
Doug Hellmann 521057dd97
drop use of pkg_resources
Importing pkg_resources scans all of the installed modules for data
that won't be used. Switch to using importlib.metdata, which more
efficiently loads the metadata for a package.

Since the name of the module where importlib.metadata is found depends
on the version of python, mocking a function in the library is more
complicated. Provide a wrapper in the module that uses
importlib.metadata.version() so its tests can examine behavior using
different versions via mocks.

The distutils package in the standard library is deprecated. Use the
packaging library for parsing version strings into something that can
be compared.

Change-Id: I45d0851cdb5f241ff8dc774dc22123b410502cd9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-07-26 09:16:19 -04:00
..
api Merge "Don't show host_name to non-admins" 2020-07-21 21:52:00 +00:00
backup drop use of pkg_resources 2020-07-26 09:16:19 -04:00
brick Raise hacking version to 2.0.0 2020-01-02 14:42:49 -06:00
cmd Stop to use the __future__ module. 2020-06-11 15:30:09 +02:00
common Leverage hw accelerator in image compression 2019-09-18 03:01:18 +00:00
compute nova: use EndpointNotFound from keystoneauth1 2019-09-03 10:58:59 -04:00
db Merge "Fix cross-project incremental backups" 2020-07-01 19:05:29 +00:00
group Continue renaming volume_utils (core) 2019-09-09 20:48:26 -04:00
image Merge "RBD: Cleanup temporary file during exception" 2020-07-24 22:44:22 +00:00
interface Move get_volume_stats impl to the base volume driver 2020-07-01 12:41:20 +03:00
keymgr Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
locale Imported Translations from Zanata 2020-06-17 06:41:58 +00:00
message Add user messages for some volume snapshot actions 2019-04-26 17:02:05 -04:00
objects Fix cross-project incremental backups 2020-05-21 09:38:25 -03:00
policies Correct description for encryption-type policies 2020-04-16 11:20:00 -04:00
privsep Enable flake8-logging-format extension 2020-01-09 14:35:20 -06:00
scheduler Merge "Reduce deprecation warnings" 2020-05-22 02:11:40 +00:00
tests drop use of pkg_resources 2020-07-26 09:16:19 -04:00
transfer Raise hacking version to 2.0.0 2020-01-02 14:42:49 -06:00
volume drop use of pkg_resources 2020-07-26 09:16:19 -04:00
wsgi Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
zonemanager Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
__init__.py
context.py Reduce deprecation warnings 2020-04-14 15:53:27 -05:00
coordination.py Remove deprecated heartbeat options 2017-10-03 14:41:18 -05:00
exception.py Merge "Support multiple stores of Glance" 2020-01-29 00:57:33 +00:00
flow_utils.py
i18n.py Replace http with https for doc links in cinder 2017-10-17 11:14:01 +08:00
manager.py Merge "Publish backup capabilities to a scheduler" 2020-01-14 19:50:21 +00:00
opts.py Add Cinder driver for Dell EMC PowerStore 2020-07-22 22:40:09 +03:00
policy.py Resolve deprecation of encryption policy target 2020-04-16 10:59:18 -04:00
quota.py Bump hacking version to 1.1.x 2019-05-30 15:06:02 -04:00
quota_utils.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
rpc.py Replace assert to raise AssertionError 2019-06-05 18:41:21 +03:00
service.py Fix typo on service cluster change method 2020-05-06 19:36:07 -05:00
service_auth.py Add service_token for cinder-nova interaction 2017-12-15 12:04:23 +05:30
ssh_utils.py Stop a connections leak when freeing an SSHPool 2018-02-14 18:16:55 -06:00
utils.py Improve tenacity retry sleep mocking 2020-06-03 16:39:28 -05:00
version.py