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
import cherrypy
import yaml
from collections import defaultdict
-from pkg_resources import packaging # type: ignore
import json
import math
import os
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
# 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.