diff options
author | Kefu Chai <tchaikov@gmail.com> | 2022-08-08 16:41:17 +0200 |
---|---|---|
committer | Kefu Chai <tchaikov@gmail.com> | 2022-08-09 15:04:34 +0200 |
commit | 075b31c1c763286065f13be87c6ba987529b1206 (patch) | |
tree | 4d20ebffbc89161f7037ca7134bc76b2132c7554 /src/mypy-constrains.txt | |
parent | Merge pull request #47475 from Huber-ming/stale_delete (diff) | |
download | ceph-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.txt | 1 |
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 |