mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-03 21:27:36 +03:00
extend module list to display version on start
This commit is contained in:
parent
50f5d2e5ef
commit
9b671beceb
1 changed files with 14 additions and 2 deletions
|
@ -27,7 +27,13 @@ from radicale.log import logger
|
|||
|
||||
_T_co = TypeVar("_T_co", covariant=True)
|
||||
|
||||
RADICALE_MODULES: Sequence[str] = ("radicale", "vobject", "passlib", "defusedxml")
|
||||
RADICALE_MODULES: Sequence[str] = ("radicale", "vobject", "passlib", "defusedxml",
|
||||
"dateutil",
|
||||
"bcrypt",
|
||||
"pika",
|
||||
"ldap",
|
||||
"ldap3",
|
||||
"pam")
|
||||
|
||||
|
||||
def load_plugin(internal_types: Sequence[str], module_name: str,
|
||||
|
@ -58,7 +64,13 @@ def packages_version():
|
|||
versions = []
|
||||
versions.append("python=%s.%s.%s" % (sys.version_info[0], sys.version_info[1], sys.version_info[2]))
|
||||
for pkg in RADICALE_MODULES:
|
||||
versions.append("%s=%s" % (pkg, package_version(pkg)))
|
||||
try:
|
||||
versions.append("%s=%s" % (pkg, package_version(pkg)))
|
||||
except Exception:
|
||||
try:
|
||||
versions.append("%s=%s" % (pkg, package_version("python-" + pkg)))
|
||||
except Exception:
|
||||
versions.append("%s=%s" % (pkg, "n/a"))
|
||||
return " ".join(versions)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue