]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard: do not use distutils.version.StrictVersion 47500/head
authorKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 14:41:17 +0000 (22:41 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 9 Aug 2022 13:04:34 +0000 (21:04 +0800)
commit075b31c1c763286065f13be87c6ba987529b1206
tree4d20ebffbc89161f7037ca7134bc76b2132c7554
parent97d9de3340864c6ae55ba59cd7c8ea31f2a5cda0
pybind/mgr/dashboard: do not use distutils.version.StrictVersion

replace `distutils.version.StrictVersion` with
`pkg_resources.parse_version()`

as the former is deprecated, see https://peps.python.org/pep-0632/.
let's use `pkg_resources` instead. this change also addresses
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010894.
we have this issue when testing with an ubuntu jammy test node.
see https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1967139

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
ceph.spec.in
debian/ceph-mgr-dashboard.requires
src/mypy-constrains.txt
src/pybind/mgr/dashboard/cherrypy_backports.py
src/pybind/mgr/dashboard/requirements.txt
src/pybind/mgr/tox.ini