sumo-wrapper-python 1.1.0__py3-none-any.whl → 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sumo/wrapper/_version.py +16 -3
- sumo/wrapper/sumo_client.py +13 -2
- {sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/METADATA +1 -1
- {sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/RECORD +8 -8
- {sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/WHEEL +1 -1
- {sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/entry_points.txt +0 -0
- {sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/licenses/LICENSE +0 -0
- {sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/top_level.txt +0 -0
sumo/wrapper/_version.py
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '1.
|
|
21
|
-
__version_tuple__ = version_tuple = (1,
|
|
31
|
+
__version__ = version = '1.2.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 2, 0)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
sumo/wrapper/sumo_client.py
CHANGED
|
@@ -113,11 +113,12 @@ class SumoClient:
|
|
|
113
113
|
case_uuid=case_uuid,
|
|
114
114
|
)
|
|
115
115
|
|
|
116
|
-
if env == "
|
|
116
|
+
if env == "prod":
|
|
117
|
+
self.base_url = "https://api.sumo.equinor.com/api/v1"
|
|
118
|
+
elif env == "localhost":
|
|
117
119
|
self.base_url = "http://localhost:8084/api/v1"
|
|
118
120
|
else:
|
|
119
121
|
self.base_url = f"https://main-sumo-{env}.radix.equinor.com/api/v1"
|
|
120
|
-
pass
|
|
121
122
|
return
|
|
122
123
|
|
|
123
124
|
def __enter__(self):
|
|
@@ -227,6 +228,11 @@ class SumoClient:
|
|
|
227
228
|
path,
|
|
228
229
|
)
|
|
229
230
|
is not None
|
|
231
|
+
or re.match(
|
|
232
|
+
r"^/tasks\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/result$", # noqa: E501
|
|
233
|
+
path,
|
|
234
|
+
)
|
|
235
|
+
is not None
|
|
230
236
|
):
|
|
231
237
|
follow_redirects = True
|
|
232
238
|
|
|
@@ -542,6 +548,11 @@ class SumoClient:
|
|
|
542
548
|
path,
|
|
543
549
|
)
|
|
544
550
|
is not None
|
|
551
|
+
or re.match(
|
|
552
|
+
r"^/tasks\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/result$", # noqa: E501
|
|
553
|
+
path,
|
|
554
|
+
)
|
|
555
|
+
is not None
|
|
545
556
|
):
|
|
546
557
|
follow_redirects = True
|
|
547
558
|
|
|
@@ -5,13 +5,13 @@ sumo/wrapper/_blob_client.py,sha256=SyfyFZ1hHVWKU4lmgUqSjl5TaK_OJNQ__0wDETrp-ag,
|
|
|
5
5
|
sumo/wrapper/_decorators.py,sha256=3IEi6GXVkkDACHoo8dOeDoBtZh5TlJ6Tw0qlpOVHqLQ,806
|
|
6
6
|
sumo/wrapper/_logging.py,sha256=WAGrjPmK2_JC9w1IxT5onq1iEAreEsyzmm95pXBe0dA,1074
|
|
7
7
|
sumo/wrapper/_retry_strategy.py,sha256=JSXy-ki5vWI_N4D52LpK9EoAmPrnT3H6OG0aBLsJRMk,2525
|
|
8
|
-
sumo/wrapper/_version.py,sha256
|
|
8
|
+
sumo/wrapper/_version.py,sha256=-uLONazCO1SzFfcY-K6A1keL--LIVfTYccGX6ciADac,704
|
|
9
9
|
sumo/wrapper/config.py,sha256=6t7qqjrrmd11m4VMlRryiMYw2JDU_R51305woAP1TAs,865
|
|
10
10
|
sumo/wrapper/login.py,sha256=Bp5IgSrsgjWcgOQIQIQ5aJrCBWdK3khS-CnTmB63Rjk,1951
|
|
11
|
-
sumo/wrapper/sumo_client.py,sha256=
|
|
12
|
-
sumo_wrapper_python-1.
|
|
13
|
-
sumo_wrapper_python-1.
|
|
14
|
-
sumo_wrapper_python-1.
|
|
15
|
-
sumo_wrapper_python-1.
|
|
16
|
-
sumo_wrapper_python-1.
|
|
17
|
-
sumo_wrapper_python-1.
|
|
11
|
+
sumo/wrapper/sumo_client.py,sha256=aZmmQjxlew7aXGmtRq9zgksvK0fEvDqE6De3ZWdJuoo,21620
|
|
12
|
+
sumo_wrapper_python-1.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
13
|
+
sumo_wrapper_python-1.2.0.dist-info/METADATA,sha256=dGoJt7tjzJbZ3lR-LaMFZwnoayy3muA005SCj1bWanc,14615
|
|
14
|
+
sumo_wrapper_python-1.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
sumo_wrapper_python-1.2.0.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
|
|
16
|
+
sumo_wrapper_python-1.2.0.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
|
|
17
|
+
sumo_wrapper_python-1.2.0.dist-info/RECORD,,
|
{sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{sumo_wrapper_python-1.1.0.dist-info → sumo_wrapper_python-1.2.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|