sumo-wrapper-python 1.1.1__tar.gz → 1.1.3__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.
Files changed (47) hide show
  1. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/.github/workflows/build_docs.yaml +2 -0
  2. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/.github/workflows/linting.yml +2 -0
  3. sumo_wrapper_python-1.1.3/.readthedocs.yaml +16 -0
  4. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/PKG-INFO +1 -1
  5. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/_version.py +16 -3
  6. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo_wrapper_python.egg-info/PKG-INFO +1 -1
  7. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/tests/test_sumo_thin_client.py +2 -20
  8. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/tests/testdata/case.yml +2 -2
  9. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/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.3}/.github/workflows/publish_release.yml +0 -0
  12. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/.github/workflows/pytest.yml +0 -0
  13. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/.gitignore +0 -0
  14. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/.pre-commit-config.yaml +0 -0
  15. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/CONTRIBUTING.md +0 -0
  16. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/LICENSE +0 -0
  17. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/README.md +0 -0
  18. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/SECURITY.md +0 -0
  19. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/Makefile +0 -0
  20. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/_static/equinor-logo.png +0 -0
  21. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/_static/equinor-logo2.jpg +0 -0
  22. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/_static/equinor_logo.jpg +0 -0
  23. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/_static/equinor_logo_only.jpg +0 -0
  24. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/_templates/layout.html +0 -0
  25. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/api.rst +0 -0
  26. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/conf.py +0 -0
  27. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/index.rst +0 -0
  28. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/make.bat +0 -0
  29. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/docs/sumo-wrapper-python.rst +0 -0
  30. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/pyproject.toml +0 -0
  31. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/setup.cfg +0 -0
  32. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/__init__.py +0 -0
  33. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/__init__.py +0 -0
  34. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/_auth_provider.py +0 -0
  35. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/_blob_client.py +0 -0
  36. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/_decorators.py +0 -0
  37. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/_logging.py +0 -0
  38. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/_retry_strategy.py +0 -0
  39. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/config.py +0 -0
  40. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/login.py +0 -0
  41. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo/wrapper/sumo_client.py +0 -0
  42. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo_wrapper_python.egg-info/SOURCES.txt +0 -0
  43. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo_wrapper_python.egg-info/dependency_links.txt +0 -0
  44. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo_wrapper_python.egg-info/entry_points.txt +0 -0
  45. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo_wrapper_python.egg-info/requires.txt +0 -0
  46. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/src/sumo_wrapper_python.egg-info/top_level.txt +0 -0
  47. {sumo_wrapper_python-1.1.1 → sumo_wrapper_python-1.1.3}/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.3
4
4
  Summary: Python wrapper for the Sumo API
5
5
  Author: Equinor
6
6
  License: Apache License
@@ -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__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
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.1.1'
21
- __version_tuple__ = version_tuple = (1, 1, 1)
31
+ __version__ = version = '1.1.3'
32
+ __version_tuple__ = version_tuple = (1, 1, 3)
33
+
34
+ __commit_id__ = commit_id = 'g3c9dd7bd1'
@@ -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.3
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
 
@@ -249,4 +231,4 @@ def test_poll(token):
249
231
  res2 = conn.poll(res)
250
232
  assert res2.status_code == 200
251
233
  indexorphans = res2.json()
252
- assert isinstance(indexorphans, list)
234
+ assert isinstance(indexorphans["result"], list)
@@ -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