sumo-wrapper-python 1.1.3__py3-none-any.whl → 1.2.1__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.
@@ -432,17 +432,6 @@ def get_auth_provider(
432
432
  devicecode=False,
433
433
  case_uuid=None,
434
434
  ) -> AuthProvider:
435
- if all(
436
- os.getenv(x)
437
- for x in [
438
- "AZURE_FEDERATED_TOKEN_FILE",
439
- "AZURE_TENANT_ID",
440
- "AZURE_CLIENT_ID",
441
- "AZURE_AUTHORITY_HOST",
442
- ]
443
- ):
444
- return AuthProviderManaged(resource_id)
445
- # ELSE
446
435
  if refresh_token:
447
436
  return AuthProviderRefreshToken(
448
437
  refresh_token, client_id, authority, resource_id
@@ -464,6 +453,17 @@ def get_auth_provider(
464
453
  return auth_silent
465
454
  pass
466
455
  # ELSE
456
+ if all(
457
+ os.getenv(x)
458
+ for x in [
459
+ "AZURE_FEDERATED_TOKEN_FILE",
460
+ "AZURE_TENANT_ID",
461
+ "AZURE_CLIENT_ID",
462
+ "AZURE_AUTHORITY_HOST",
463
+ ]
464
+ ):
465
+ return AuthProviderManaged(resource_id)
466
+ # ELSE
467
467
  if interactive:
468
468
  lockfile_path = Path.home() / ".config/chromium/SingletonLock"
469
469
 
sumo/wrapper/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '1.1.3'
32
- __version_tuple__ = version_tuple = (1, 1, 3)
31
+ __version__ = version = '1.2.1'
32
+ __version_tuple__ = version_tuple = (1, 2, 1)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -113,11 +113,12 @@ class SumoClient:
113
113
  case_uuid=case_uuid,
114
114
  )
115
115
 
116
- if env == "localhost":
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sumo-wrapper-python
3
- Version: 1.1.3
3
+ Version: 1.2.1
4
4
  Summary: Python wrapper for the Sumo API
5
5
  Author: Equinor
6
6
  License: Apache License
@@ -1,17 +1,17 @@
1
1
  sumo/__init__.py,sha256=ftS-xRPSH-vU7fIHlnZQaCTWbNvs4owJivNW65kzsIM,85
2
2
  sumo/wrapper/__init__.py,sha256=JK6iMAy2Fdrc7iaIHTn60fHPdRvsgNjZwWD6DJtGUYQ,235
3
- sumo/wrapper/_auth_provider.py,sha256=fpaYyGKwYUJ6cljMCZDVfjlgiA-YYNN_nrrd-TefRp8,16472
3
+ sumo/wrapper/_auth_provider.py,sha256=du15SjkJ7eDEITbAJXdx6y1L4RALpSpsDrw9zE9E3fI,16472
4
4
  sumo/wrapper/_blob_client.py,sha256=SyfyFZ1hHVWKU4lmgUqSjl5TaK_OJNQ__0wDETrp-ag,1623
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=87v_vDfphCRXvmiytdhoHtQyIWrsYHjMp8634JpDrR4,704
8
+ sumo/wrapper/_version.py,sha256=vTBkgV8s9uBGLjgp067jeWVTh-Y6mBirMNSkXJot2J8,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=NtgfK-BPj1YQvfAJFdDc4GMsj-HnzyUBBQ4nbU9iaQc,21543
12
- sumo_wrapper_python-1.1.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
- sumo_wrapper_python-1.1.3.dist-info/METADATA,sha256=8osJ6o-86DqcTbUiTLVSqffawONNTRKJltpIIlEhIB8,14615
14
- sumo_wrapper_python-1.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- sumo_wrapper_python-1.1.3.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
16
- sumo_wrapper_python-1.1.3.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
17
- sumo_wrapper_python-1.1.3.dist-info/RECORD,,
11
+ sumo/wrapper/sumo_client.py,sha256=aZmmQjxlew7aXGmtRq9zgksvK0fEvDqE6De3ZWdJuoo,21620
12
+ sumo_wrapper_python-1.2.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
+ sumo_wrapper_python-1.2.1.dist-info/METADATA,sha256=G8BMmUeruNG7gZeAE575Ymm1JG4R0OvBO2x6V0K14YI,14615
14
+ sumo_wrapper_python-1.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ sumo_wrapper_python-1.2.1.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
16
+ sumo_wrapper_python-1.2.1.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
17
+ sumo_wrapper_python-1.2.1.dist-info/RECORD,,