]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard: do not use distutils.version.StrictVersion 47602/head
authorKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 14:41:17 +0000 (22:41 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 16 Aug 2022 03:00:56 +0000 (11:00 +0800)
commit759b689032ef7f9d2cfb1b27bd24a1b4b555b4d5
tree7871e55a1503088de4c4fbf17c7c8ef97796a74f
parent188622a1c072d1602216503ea0f058be2ea7e4d0
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>
(cherry picked from commit 075b31c1c763286065f13be87c6ba987529b1206)

Conflicts:
debian/ceph-mgr-dashboard.requires: add the runtime requirement
to debian/control instead.
ceph.spec.in
debian/control
src/mypy-constrains.txt
src/pybind/mgr/dashboard/cherrypy_backports.py
src/pybind/mgr/dashboard/requirements.txt
src/pybind/mgr/tox.ini