tcloud
Advanced tools
+12
-2
@@ -1,4 +0,4 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: tcloud | ||
| Version: 2.9.7 | ||
| Version: 2.10.0 | ||
| Author: TobikoData Inc. | ||
@@ -23,2 +23,12 @@ Author-email: engineering@tobikodata.com | ||
| Requires-Dist: ruamel.yaml | ||
| Requires-Dist: tenacity | ||
| Dynamic: author | ||
| Dynamic: author-email | ||
| Dynamic: classifier | ||
| Dynamic: description | ||
| Dynamic: description-content-type | ||
| Dynamic: license | ||
| Dynamic: license-file | ||
| Dynamic: requires-dist | ||
| Dynamic: requires-python | ||
@@ -25,0 +35,0 @@ # Tobiko Cloud CLI |
+2
-1
@@ -31,2 +31,3 @@ | ||
| 'ruamel.yaml', | ||
| 'tenacity', | ||
| ), | ||
@@ -235,3 +236,3 @@ 'license': 'Apache License 2.0', | ||
| 'readme': 'README.md', | ||
| 'version': '2.9.7', | ||
| 'version': '2.10.0', | ||
| }) |
@@ -1,4 +0,4 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: tcloud | ||
| Version: 2.9.7 | ||
| Version: 2.10.0 | ||
| Author: TobikoData Inc. | ||
@@ -23,2 +23,12 @@ Author-email: engineering@tobikodata.com | ||
| Requires-Dist: ruamel.yaml | ||
| Requires-Dist: tenacity | ||
| Dynamic: author | ||
| Dynamic: author-email | ||
| Dynamic: classifier | ||
| Dynamic: description | ||
| Dynamic: description-content-type | ||
| Dynamic: license | ||
| Dynamic: license-file | ||
| Dynamic: requires-dist | ||
| Dynamic: requires-python | ||
@@ -25,0 +35,0 @@ # Tobiko Cloud CLI |
@@ -8,1 +8,2 @@ Authlib | ||
| ruamel.yaml | ||
| tenacity |
@@ -1,1 +0,1 @@ | ||
| __version__ = version = '2.9.7' | ||
| __version__ = version = '2.10.0' |
@@ -15,2 +15,3 @@ from __future__ import annotations | ||
| import httpx | ||
| from tenacity import retry, retry_if_exception, stop_after_attempt, wait_exponential | ||
@@ -213,2 +214,22 @@ import tobikodata.tcloud.constants as c | ||
| def retry_on_httpx_exception(exception: BaseException) -> bool: | ||
| if isinstance(exception, httpx.TimeoutException): | ||
| return True | ||
| if ( | ||
| isinstance(exception, httpx.HTTPStatusError) | ||
| and exception.response | ||
| and exception.response.status_code >= 500 | ||
| ): | ||
| return True | ||
| if isinstance(exception, httpx.NetworkError): | ||
| return True | ||
| return False | ||
| @retry( | ||
| retry=retry_if_exception(retry_on_httpx_exception), | ||
| stop=stop_after_attempt(5), | ||
| wait=wait_exponential(min=1, max=10), | ||
| reraise=True, | ||
| ) | ||
| def _get_enterprise_version_upgrade( | ||
@@ -215,0 +236,0 @@ project: TCloudProject, current_version: t.Optional[str] |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
103353
1.1%1687
1.2%