sumo-wrapper-python 1.1.1__tar.gz → 1.1.2__tar.gz

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.

Potentially problematic release.


This version of sumo-wrapper-python might be problematic. Click here for more details.

Files changed (47) hide show
  1. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/.github/workflows/build_docs.yaml +2 -0
  2. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/.github/workflows/linting.yml +2 -0
  3. sumo_wrapper_python-1.1.2/.readthedocs.yaml +16 -0
  4. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/PKG-INFO +1 -1
  5. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/_version.py +2 -2
  6. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo_wrapper_python.egg-info/PKG-INFO +1 -1
  7. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/tests/test_sumo_thin_client.py +1 -19
  8. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/tests/testdata/case.yml +2 -2
  9. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/tests/testdata/surface.yml +2 -2
  10. sumo_wrapper_python-1.1.1/.readthedocs.yaml +0 -16
  11. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/.github/workflows/publish_release.yml +0 -0
  12. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/.github/workflows/pytest.yml +0 -0
  13. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/.gitignore +0 -0
  14. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/.pre-commit-config.yaml +0 -0
  15. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/CONTRIBUTING.md +0 -0
  16. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/LICENSE +0 -0
  17. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/README.md +0 -0
  18. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/SECURITY.md +0 -0
  19. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/Makefile +0 -0
  20. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/_static/equinor-logo.png +0 -0
  21. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/_static/equinor-logo2.jpg +0 -0
  22. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/_static/equinor_logo.jpg +0 -0
  23. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/_static/equinor_logo_only.jpg +0 -0
  24. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/_templates/layout.html +0 -0
  25. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/api.rst +0 -0
  26. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/conf.py +0 -0
  27. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/index.rst +0 -0
  28. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/make.bat +0 -0
  29. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/docs/sumo-wrapper-python.rst +0 -0
  30. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/pyproject.toml +0 -0
  31. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/setup.cfg +0 -0
  32. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/__init__.py +0 -0
  33. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/__init__.py +0 -0
  34. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/_auth_provider.py +0 -0
  35. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/_blob_client.py +0 -0
  36. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/_decorators.py +0 -0
  37. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/_logging.py +0 -0
  38. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/_retry_strategy.py +0 -0
  39. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/config.py +0 -0
  40. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/login.py +0 -0
  41. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo/wrapper/sumo_client.py +0 -0
  42. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo_wrapper_python.egg-info/SOURCES.txt +0 -0
  43. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo_wrapper_python.egg-info/dependency_links.txt +0 -0
  44. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo_wrapper_python.egg-info/entry_points.txt +0 -0
  45. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo_wrapper_python.egg-info/requires.txt +0 -0
  46. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/src/sumo_wrapper_python.egg-info/top_level.txt +0 -0
  47. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.2}/tests/conftest.py +0 -0
@@ -12,6 +12,8 @@ on:
12
12
  jobs:
13
13
  build_pywheels:
14
14
  name: Build docs with Python ${{ matrix.python-version }} on ${{ matrix.os }}
15
+ permissions:
16
+ contents: read
15
17
  runs-on: ${{ matrix.os }}
16
18
  strategy:
17
19
  matrix:
@@ -7,6 +7,8 @@ on:
7
7
  jobs:
8
8
  ruff-check:
9
9
  name: Run ruff lint and format checks
10
+ permissions:
11
+ contents: read
10
12
  runs-on: ubuntu-latest
11
13
 
12
14
  steps:
@@ -0,0 +1,16 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: ubuntu-22.04
5
+ tools:
6
+ python: "3.12"
7
+
8
+ python:
9
+ install:
10
+ - method: pip
11
+ path: .
12
+ extra_requirements:
13
+ - docs
14
+
15
+ sphinx:
16
+ configuration: docs/conf.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sumo-wrapper-python
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: Python wrapper for the Sumo API
5
5
  Author: Equinor
6
6
  License: Apache License
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '1.1.1'
21
- __version_tuple__ = version_tuple = (1, 1, 1)
20
+ __version__ = version = '1.1.2'
21
+ __version_tuple__ = version_tuple = (1, 1, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sumo-wrapper-python
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: Python wrapper for the Sumo API
5
5
  Author: Equinor
6
6
  License: Apache License
@@ -33,18 +33,6 @@ def _upload_blob(conn, blob, url=None, object_id=None):
33
33
  return response
34
34
 
35
35
 
36
- def _get_blob_uri(conn, object_id):
37
- response = conn.get(f"/objects('{object_id}')/blob/authuri")
38
-
39
- print("Blob save " + str(response.status_code), flush=True)
40
- if not 200 <= response.status_code < 202:
41
- raise Exception(
42
- f"get blob uri for {object_id}"
43
- f" returned {response.text} {response.status_code}"
44
- )
45
- return response
46
-
47
-
48
36
  def _download_object(conn, object_id):
49
37
  json = conn.get(f"/objects('{object_id}')").json()
50
38
 
@@ -67,12 +55,6 @@ def _delete_object(conn, object_id):
67
55
  return response
68
56
 
69
57
 
70
- class ValueKeeper:
71
- """Class for keeping/passing values between tests"""
72
-
73
- pass
74
-
75
-
76
58
  """ TESTS """
77
59
 
78
60
 
@@ -234,7 +216,7 @@ def test_upload_duplicate_ensemble(token):
234
216
  # time-to-live of 60 seconds. If there are multiple replicas
235
217
  # running, we might get the situation where we have just deleted
236
218
  # the case via one replica, then ask for the object from another
237
- # replica which still has it ins cache. Thus, the magic value 61,
219
+ # replica which still has it in cache. Thus, the magic value 61,
238
220
  # below.
239
221
  sleep(61)
240
222
 
@@ -54,11 +54,11 @@ masterdata:
54
54
  uuid: 12345678-1234-1234-1234-123456789012
55
55
 
56
56
  tracklog:
57
- - datetime: '2020-10-28T14:28:02'
57
+ - datetime: '2020-10-28T14:28:02Z'
58
58
  user:
59
59
  id: testuser
60
60
  event: created
61
- - datetime: '2020-10-28T14:46:14'
61
+ - datetime: '2020-10-28T14:46:14Z'
62
62
  user:
63
63
  id: testuser
64
64
  event: updated
@@ -3,11 +3,11 @@ version: "0.12.0" # including for REP and others to build logic on.
3
3
  source: fmu # always included, and always this value if FMU made it. For quick identification for external consumers.
4
4
 
5
5
  tracklog:
6
- - datetime: '2020-10-28T14:28:02'
6
+ - datetime: '2020-10-28T14:28:02Z'
7
7
  user:
8
8
  id: testuser
9
9
  event: created
10
- - datetime: '2020-10-28T14:46:14'
10
+ - datetime: '2020-10-28T14:46:14Z'
11
11
  user:
12
12
  id: testuser
13
13
  event: updated
@@ -1,16 +0,0 @@
1
- version: 2
2
-
3
- build:
4
- os: ubuntu-22.04
5
- tools:
6
- python: "3.10"
7
-
8
- python:
9
- install:
10
- - method: pip
11
- path: .
12
- extra_requirements:
13
- - docs
14
-
15
- sphinx:
16
- configuration: docs/conf.py