Checks the version with the latest SLiCAP version from Git Returns ------- None.
()
| 27 | TIMEOUT = 120 |
| 28 | |
| 29 | def _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 | |
| 46 | def _get_latest_version(): |
| 47 | """ |
no test coverage detected