ocean-runner 0.2.11__tar.gz → 0.2.12__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocean-runner
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: A fluent API for OceanProtocol algorithms
5
5
  Project-URL: Homepage, https://github.com/AgrospAI/ocean-runner
6
6
  Project-URL: Issues, https://github.com/AgrospAI/ocean-runner/issues
@@ -17,7 +17,7 @@ Classifier: License :: OSI Approved :: MIT License
17
17
  Classifier: Operating System :: OS Independent
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Requires-Python: >=3.10
20
- Requires-Dist: oceanprotocol-job-details==0.2.6
20
+ Requires-Dist: oceanprotocol-job-details>=0.2.7
21
21
  Requires-Dist: pytest>=8.4.2
22
22
  Description-Content-Type: text/markdown
23
23
 
@@ -6,6 +6,8 @@ from typing import Callable, Iterable, TypeVar
6
6
 
7
7
  T = TypeVar("T")
8
8
 
9
+ DEFAULT = "DEFAULT"
10
+
9
11
 
10
12
  @dataclass
11
13
  class Environment:
@@ -17,17 +19,17 @@ class Environment:
17
19
  """Base data directory, defaults to '/data'"""
18
20
 
19
21
  dids: str = field(
20
- default_factory=lambda: os.environ.get("DIDS"),
22
+ default_factory=lambda: os.environ.get("DIDS", None),
21
23
  )
22
24
  """Datasets DID's, format: '["XXXX"]'"""
23
25
 
24
26
  transformation_did: str = field(
25
- default_factory=lambda: os.environ.get("TRANSFORMATION_DID"),
27
+ default_factory=lambda: os.environ.get("TRANSFORMATION_DID", DEFAULT),
26
28
  )
27
29
  """Transformation (algorithm) DID"""
28
30
 
29
31
  secret: str = field(
30
- default_factory=lambda: os.environ.get("SECRET"),
32
+ default_factory=lambda: os.environ.get("SECRET", DEFAULT),
31
33
  )
32
34
  """Super secret secret"""
33
35
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ocean-runner"
3
- version = "0.2.11"
3
+ version = "0.2.12"
4
4
  description = "A fluent API for OceanProtocol algorithms"
5
5
  authors = [
6
6
  { name = "AgrospAI", email = "agrospai@udl.cat" },
@@ -15,7 +15,7 @@ classifiers = [
15
15
  "License :: OSI Approved :: MIT License",
16
16
  ]
17
17
  dependencies = [
18
- "oceanprotocol-job-details==0.2.6",
18
+ "oceanprotocol-job-details>=0.2.7",
19
19
  "pytest>=8.4.2",
20
20
  ]
21
21
 
File without changes
File without changes
File without changes