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

Function _check_version

SLiCAP/SLiCAPconfigure.py:29–44  ·  view source on GitHub ↗

Checks the version with the latest SLiCAP version from Git Returns ------- None.

()

Source from the content-addressed store, hash-verified

27TIMEOUT = 120
28
29def _check_version():
30 """
31 Checks the version with the latest SLiCAP version from Git
32
33 Returns
34 -------
35 None.
36 """
37 latest = _get_latest_version()
38 if latest == "Unknown":
39 print("You are running SLiCAP version %s. Please check github for updates."%(INSTALLVERSION))
40 elif INSTALLVERSION != latest:
41 print("A new version of SLiCAP is available, please get it from 'https://github.com/SLiCAP/SLiCAP_python.git'.")
42 else:
43 print("SLiCAP Version matches with the latest release of SLiCAP on github.")
44 return str(latest)
45
46def _get_latest_version():
47 """

Callers 2

_generate_main_configFunction · 0.85
_update_ini_filesFunction · 0.85

Calls 1

_get_latest_versionFunction · 0.85

Tested by

no test coverage detected