update version docstring, add torba_version

This commit is contained in:
Jack Robison 2019-06-05 20:33:21 -04:00
parent a60ab97552
commit d0ddaa5518
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 8 additions and 8 deletions

View file

@ -807,16 +807,14 @@ class Daemon(metaclass=JSONRPCServerType):
Returns: Returns:
(dict) Dictionary of lbry version information (dict) Dictionary of lbry version information
{ {
'build': (str) build type (e.g. "dev", "rc", "release"),
'ip': (str) remote ip, if available,
'lbrynet_version': (str) lbrynet_version,
'lbryum_version': (str) lbryum_version,
'lbryschema_version': (str) lbryschema_version,
'os_release': (str) os release string
'os_system': (str) os name
'platform': (str) platform string
'processor': (str) processor type, 'processor': (str) processor type,
'python_version': (str) python version, 'python_version': (str) python version,
'platform': (str) platform string,
'os_release': (str) os release string,
'os_system': (str) os name,
'lbrynet_version': (str) lbrynet version,
'torba_version': (str) torba version,
'build': (str) "dev" | "qa" | "rc" | "release",
} }
""" """
platform_info = system_info.get_platform() platform_info = system_info.get_platform()

View file

@ -3,6 +3,7 @@ import os
import logging.handlers import logging.handlers
from lbrynet import build_type, __version__ as lbrynet_version from lbrynet import build_type, __version__ as lbrynet_version
from torba import __version__ as torba_version
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
@ -18,6 +19,7 @@ def get_platform() -> dict:
"os_release": platform.release(), "os_release": platform.release(),
"os_system": os_system, "os_system": os_system,
"lbrynet_version": lbrynet_version, "lbrynet_version": lbrynet_version,
"torba_version": torba_version,
"build": build_type.BUILD, # CI server sets this during build step "build": build_type.BUILD, # CI server sets this during build step
} }
if p["os_system"] == "Linux": if p["os_system"] == "Linux":