]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: use importlib from stdlib on Python 3.8 and up
authorKefu Chai <tchaikov@gmail.com>
Thu, 23 May 2024 04:47:26 +0000 (12:47 +0800)
committerZac Dover <zac.dover@proton.me>
Thu, 13 Jun 2024 11:07:41 +0000 (21:07 +1000)
commit112a825f55b89886cfd351f58a67e48ebde0bbd8
tree58475a8471f189468843e6f95c1c8667c66e77c5
parent296b94f31805b13f169a9221a78e5c5d2902e4d0
ceph-volume: use importlib from stdlib on Python 3.8 and up

since packaging was apparently removed from pkg_resources, let's use
importlib.metadata when it is available and pkg_resources on older
Python versions.

Refs https://tracker.ceph.com/issues/66201
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 24f8e5c61b19deab7397b0237f8376c6c03a5dcb)
src/ceph-volume/ceph_volume/main.py