MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _get_latest_version

Function _get_latest_version

SLiCAP/SLiCAPconfigure.py:46–60  ·  view source on GitHub ↗

Gets the SLiCAP version from Github Returns ------- String Version.

()

Source from the content-addressed store, hash-verified

44 return str(latest)
45
46def _get_latest_version():
47 """
48 Gets the SLiCAP version from Github
49
50 Returns
51 -------
52 String Version.
53 """
54 try:
55 response = requests.get("https://api.github.com/repos/SLiCAP/SLiCAP_python/releases/latest")
56 version = response.json()["tag_name"]
57 except BaseException:
58 print("Could not determine the latest available version of SLiCAP on github.")
59 version = "Unknown"
60 return version
61
62def _find_installed_windows_software():
63 """

Callers 1

_check_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected