]> git.apps.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:34 +0000 (21:07 +1000)
commit73de6f5312da55bba000f865217337e31975327d
treea736648d7803ebd4d83e5e32468def4899311c6e
parent251cd6672f50d69e7e67981673df16bbdbf0cdaf
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