]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: use importlib from stdlib on Python 3.8 and up 57650/head
authorKefu Chai <tchaikov@gmail.com>
Thu, 23 May 2024 04:47:26 +0000 (12:47 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 26 May 2024 03:02:51 +0000 (11:02 +0800)
commit24f8e5c61b19deab7397b0237f8376c6c03a5dcb
treeac9f048ac2410387ed6a9d09a39aa5c22e31dbf9
parent2815aea2c5f6b74da0182e80bd942547014c0799
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>
src/ceph-volume/ceph_volume/main.py