]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard: do not use distutils.version.StrictVersion
authorKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 14:41:17 +0000 (22:41 +0800)
committerTim Serong <tserong@suse.com>
Tue, 23 Aug 2022 06:03:06 +0000 (16:03 +1000)
commit93c2b43a9484dd266063fe5307d622d2f270d957
tree3aba10836147790590e95983d04125e6e723ee59
parentfef79718a6b51b80198471b9d178055507f54e3b
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.
src/mypy-constrains.txt: not backported (too new for pacific)
src/pybind/mgr/dashboard/requirements.txt: trivial resolution
src/pybind/mgr/tox.ini: not backported (too new for pacific)
ceph.spec.in
debian/control
src/pybind/mgr/dashboard/cherrypy_backports.py
src/pybind/mgr/dashboard/requirements.txt