Gets the SLiCAP version from Github Returns ------- String Version.
()
| 44 | return str(latest) |
| 45 | |
| 46 | def _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 | |
| 62 | def _find_installed_windows_software(): |
| 63 | """ |