summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2020-07-05 13:55:10 -0400
committerDouglas Mendizábal <dmendiza@redhat.com>2022-04-22 15:48:44 +0000
commit6940b4ff0a2823228fab834bfaca6b851c60d8d3 (patch)
tree3dbc0837169d6f75e97dcb1a237c1a59a58c4849 /requirements.txt
parentea1308ad0e66f115eef4aa1cf2896256f69eab24 (diff)
downloadpython-keystoneclient-6940b4ff0a2823228fab834bfaca6b851c60d8d3.tar.gz
use importlib.metadata to get keyring version
Importing pkg_resources has a side-effect of scanning the metadata of all of the installed python modules to build an in-memory cache. That cache isn't used anywhere in keystoneclient, and it can be expensive to build. The importlib.metadata module in the 3.8 standard library (and the importlib_metadata library for earlier versions) provides the same version lookup service using a more efficient scanning implementation. Switching from pkg_resources to importlib.metadata will help application startup time, which is especially important for command line programs such as python-openstackclient. Change-Id: Ia89044ff1876eeb2793cd08ed9095ce2ffe89e09 Depends-On: Ic6db7af34c87a636bfe55bacae03c42154f4b9c7 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
index 65e83de..d60afab 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -13,3 +13,5 @@ oslo.utils>=3.33.0 # Apache-2.0
requests>=2.14.2 # Apache-2.0
six>=1.10.0 # MIT
stevedore>=1.20.0 # Apache-2.0
+importlib_metadata>=1.7.0;python_version<'3.8' # Apache-2.0
+packaging>=20.4 # BSD