]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/prometheus: avoid using distutils
authorKefu Chai <tchaikov@gmail.com>
Sun, 18 Dec 2022 12:15:06 +0000 (20:15 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 18 Dec 2022 12:23:46 +0000 (20:23 +0800)
commit9f0ee9798563efe4ce9759f5d8c0ca6aa47a6838
tree4800e77454a243c4c50bff81f3c6821fe8cd0845
parenta2bed043235bba82ee3ca121759a3406bda61787
pybind/mgr/prometheus: avoid using distutils

to silence warnings like:

4: prometheus/module.py:35
4:   /var/ssd/ceph/src/pybind/mgr/prometheus/module.py:35: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
4:     v = StrictVersion(cherrypy.__version__)

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/pybind/mgr/prometheus/module.py