Skip to content

Commit

Permalink
Merge pull request ceph#57700 from tchaikov/wip-mgr-prometheus-packaging
Browse files Browse the repository at this point in the history
mgr/prometheus: s/pkg_resources.packaging/packaging/

Reviewed-by: Redouane Kachach <[email protected]>
  • Loading branch information
tchaikov authored May 28, 2024
2 parents 0cd602b + 844b66d commit 700916c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ BuildArch: noarch
Group: System/Filesystems
%endif
Requires: python%{python3_pkgversion}-bcrypt
Requires: python%{python3_pkgversion}-packaging
Requires: python%{python3_pkgversion}-pecan
Requires: python%{python3_pkgversion}-pyOpenSSL
Requires: python%{python3_pkgversion}-requests
Expand Down
1 change: 1 addition & 0 deletions debian/ceph-mgr-modules-core.requires
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
natsort
CherryPy
packaging
pecan
werkzeug
requests
Expand Down
4 changes: 2 additions & 2 deletions src/pybind/mgr/prometheus/module.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import cherrypy
import yaml
from collections import defaultdict
from pkg_resources import packaging # type: ignore
import json
import math
import os
import re
import threading
import time
import enum
from packaging import version # type: ignore
from collections import namedtuple

from mgr_module import CLIReadCommand, MgrModule, MgrStandbyModule, PG_STATES, Option, ServiceInfoT, HandleCommandResult, CLIWriteCommand
Expand All @@ -34,7 +34,7 @@
# ipv6 isn't yet configured / supported and CherryPy throws an uncaught
# exception.
if cherrypy is not None:
Version = packaging.version.Version
Version = version.Version
v = Version(cherrypy.__version__)
# the issue was fixed in 3.2.3. it's present in 3.2.2 (current version on
# centos:7) and back to at least 3.0.0.
Expand Down

0 comments on commit 700916c

Please sign in to comment.