summaryrefslogtreecommitdiffstats
path: root/src/mypy-constrains.txt
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2022-08-08 16:41:17 +0200
committerKefu Chai <tchaikov@gmail.com>2022-08-09 15:04:34 +0200
commit075b31c1c763286065f13be87c6ba987529b1206 (patch)
tree4d20ebffbc89161f7037ca7134bc76b2132c7554 /src/mypy-constrains.txt
parentMerge pull request #47475 from Huber-ming/stale_delete (diff)
downloadceph-075b31c1c763286065f13be87c6ba987529b1206.tar.xz
ceph-075b31c1c763286065f13be87c6ba987529b1206.zip
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>
Diffstat (limited to 'src/mypy-constrains.txt')
-rw-r--r--src/mypy-constrains.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mypy-constrains.txt b/src/mypy-constrains.txt
index 8851ed501b1..9eb774c189a 100644
--- a/src/mypy-constrains.txt
+++ b/src/mypy-constrains.txt
@@ -12,6 +12,7 @@ types-PyYAML==5.4.0
# src/pybind
types-backports==0.1.2
+types-pkg_resources==0.1.3
# qa/
types-boto==0.1.0