streamflow-postgresql 0.0.11__tar.gz → 0.0.13__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.
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/PKG-INFO +3 -3
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/pyproject.toml +18 -13
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow_postgresql.egg-info/PKG-INFO +3 -3
- streamflow_postgresql-0.0.13/streamflow_postgresql.egg-info/requires.txt +2 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/tests/test_cwl_persistence.py +9 -9
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/tests/test_database.py +1 -1
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/tests/test_persistence.py +11 -12
- streamflow_postgresql-0.0.11/streamflow_postgresql.egg-info/requires.txt +0 -2
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/LICENSE +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/MANIFEST.in +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/README.md +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/setup.cfg +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow/plugins/unito/postgresql/__init__.py +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow/plugins/unito/postgresql/database.py +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow/plugins/unito/postgresql/plugin.py +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow/plugins/unito/postgresql/schemas/postgresql.json +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow/plugins/unito/postgresql/schemas/postgresql.sql +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow/plugins/unito/postgresql/version.py +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow_postgresql.egg-info/SOURCES.txt +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow_postgresql.egg-info/dependency_links.txt +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow_postgresql.egg-info/entry_points.txt +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow_postgresql.egg-info/top_level.txt +0 -0
- {streamflow_postgresql-0.0.11 → streamflow_postgresql-0.0.13}/streamflow_postgresql.egg-info/zip-safe +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streamflow-postgresql
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.13
|
|
4
4
|
Summary: StreamFlow PostgreSQL plugin
|
|
5
5
|
Author-email: Iacopo Colonnelli <iacopo.colonnelli@unito.it>
|
|
6
6
|
License: LGPL-3.0-or-later
|
|
@@ -24,8 +24,8 @@ Classifier: Topic :: System :: Distributed Computing
|
|
|
24
24
|
Requires-Python: >=3.10
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
26
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist: asyncpg==0.
|
|
28
|
-
Requires-Dist: streamflow==0.2.
|
|
27
|
+
Requires-Dist: asyncpg==0.32.0
|
|
28
|
+
Requires-Dist: streamflow==0.2.0rc3
|
|
29
29
|
Dynamic: license-file
|
|
30
30
|
|
|
31
31
|
# PostgreSQL Plugin for StreamFlow
|
|
@@ -29,10 +29,10 @@ classifiers = [
|
|
|
29
29
|
"Topic :: System :: Distributed Computing",
|
|
30
30
|
]
|
|
31
31
|
dependencies = [
|
|
32
|
-
"asyncpg==0.
|
|
33
|
-
"streamflow==0.2.
|
|
32
|
+
"asyncpg==0.32.0",
|
|
33
|
+
"streamflow==0.2.0rc3"
|
|
34
34
|
]
|
|
35
|
-
version = "0.0.
|
|
35
|
+
version = "0.0.13"
|
|
36
36
|
|
|
37
37
|
[project.urls]
|
|
38
38
|
Package = "https://pypi.org/project/streamflow-postgresql"
|
|
@@ -51,16 +51,15 @@ bandit = [
|
|
|
51
51
|
"bandit==1.9.4"
|
|
52
52
|
]
|
|
53
53
|
lint = [
|
|
54
|
-
"black==26.
|
|
55
|
-
"codespell==2.4.
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"pyupgrade==3.21.2"
|
|
54
|
+
"black==26.10.1",
|
|
55
|
+
"codespell==2.4.3",
|
|
56
|
+
"pyupgrade==3.21.2",
|
|
57
|
+
"ruff==0.17.0"
|
|
59
58
|
]
|
|
60
59
|
test = [
|
|
61
|
-
"cwltest==2.
|
|
62
|
-
"pytest==9.
|
|
63
|
-
"pytest-asyncio==1.
|
|
60
|
+
"cwltest==2.7.20260814150058",
|
|
61
|
+
"pytest==9.1.1",
|
|
62
|
+
"pytest-asyncio==1.4.0",
|
|
64
63
|
"pytest-cov==7.1.0",
|
|
65
64
|
"pytest-xdist==3.8.0"
|
|
66
65
|
]
|
|
@@ -74,5 +73,11 @@ zip-safe = true
|
|
|
74
73
|
[tool.setuptools.package-data]
|
|
75
74
|
"streamflow.plugins.unito.postgresql" = ["schemas/*.json", "schemas/*.sql"]
|
|
76
75
|
|
|
77
|
-
[tool.
|
|
78
|
-
|
|
76
|
+
[tool.ruff]
|
|
77
|
+
exclude = ["streamflow/cwl/antlr"]
|
|
78
|
+
line-length = 88
|
|
79
|
+
target-version = "py310"
|
|
80
|
+
|
|
81
|
+
[tool.ruff.lint]
|
|
82
|
+
select = ["E", "W", "F", "B", "I"]
|
|
83
|
+
ignore = ["E203", "E501", "B904"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streamflow-postgresql
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.13
|
|
4
4
|
Summary: StreamFlow PostgreSQL plugin
|
|
5
5
|
Author-email: Iacopo Colonnelli <iacopo.colonnelli@unito.it>
|
|
6
6
|
License: LGPL-3.0-or-later
|
|
@@ -24,8 +24,8 @@ Classifier: Topic :: System :: Distributed Computing
|
|
|
24
24
|
Requires-Python: >=3.10
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
26
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist: asyncpg==0.
|
|
28
|
-
Requires-Dist: streamflow==0.2.
|
|
27
|
+
Requires-Dist: asyncpg==0.32.0
|
|
28
|
+
Requires-Dist: streamflow==0.2.0rc3
|
|
29
29
|
Dynamic: license-file
|
|
30
30
|
|
|
31
31
|
# PostgreSQL Plugin for StreamFlow
|
|
@@ -213,7 +213,7 @@ async def test_cwl_command(context: StreamFlowContext, processor_t: str) -> None
|
|
|
213
213
|
context=context, name=utils.random_name(), config={}, cwl_version=CWL_VERSION
|
|
214
214
|
)
|
|
215
215
|
job_port = workflow.create_port(JobPort)
|
|
216
|
-
await workflow.save(context)
|
|
216
|
+
await workflow.save(context.database)
|
|
217
217
|
match processor_t:
|
|
218
218
|
case "none":
|
|
219
219
|
processors = None
|
|
@@ -278,7 +278,7 @@ async def test_cwl_expression_command(context: StreamFlowContext) -> None:
|
|
|
278
278
|
context=context, name=utils.random_name(), config={}, cwl_version=CWL_VERSION
|
|
279
279
|
)
|
|
280
280
|
job_port = workflow.create_port(JobPort)
|
|
281
|
-
await workflow.save(context)
|
|
281
|
+
await workflow.save(context.database)
|
|
282
282
|
step = workflow.create_step(
|
|
283
283
|
cls=ExecuteStep, name=utils.random_name(), job_port=job_port
|
|
284
284
|
)
|
|
@@ -309,7 +309,7 @@ async def test_cwl_execute_step(context: StreamFlowContext, output_type: str) ->
|
|
|
309
309
|
job_port = workflow.create_port(JobPort)
|
|
310
310
|
if output_type != "no_output":
|
|
311
311
|
port = workflow.create_port()
|
|
312
|
-
await workflow.save(context)
|
|
312
|
+
await workflow.save(context.database)
|
|
313
313
|
|
|
314
314
|
step = get_full_instantiation(
|
|
315
315
|
cls_=CWLExecuteStep,
|
|
@@ -461,7 +461,7 @@ async def test_cwl_token_transformer(
|
|
|
461
461
|
port = workflow.create_port()
|
|
462
462
|
if workflow.format_graph is None:
|
|
463
463
|
workflow.format_graph = Graph()
|
|
464
|
-
await workflow.save(context)
|
|
464
|
+
await workflow.save(context.database)
|
|
465
465
|
processor = None
|
|
466
466
|
match processor_t:
|
|
467
467
|
case "primitive":
|
|
@@ -521,7 +521,7 @@ async def test_value_from_transformer(context: StreamFlowContext) -> None:
|
|
|
521
521
|
port = workflow.create_port()
|
|
522
522
|
if workflow.format_graph is None:
|
|
523
523
|
workflow.format_graph = Graph()
|
|
524
|
-
await workflow.save(context)
|
|
524
|
+
await workflow.save(context.database)
|
|
525
525
|
|
|
526
526
|
step = get_full_instantiation(
|
|
527
527
|
cls_=ValueFromTransformer,
|
|
@@ -547,7 +547,7 @@ async def test_loop_value_from_transformer(context: StreamFlowContext) -> None:
|
|
|
547
547
|
port_name = utils.random_name()
|
|
548
548
|
if workflow.format_graph is None:
|
|
549
549
|
workflow.format_graph = Graph()
|
|
550
|
-
await workflow.save(context)
|
|
550
|
+
await workflow.save(context.database)
|
|
551
551
|
|
|
552
552
|
step = get_full_instantiation(
|
|
553
553
|
cls_=LoopValueFromTransformer,
|
|
@@ -700,7 +700,7 @@ async def test_cwl_loop_conditional_step(context: StreamFlowContext) -> None:
|
|
|
700
700
|
async def test_cwl_transfer_step(context: StreamFlowContext) -> None:
|
|
701
701
|
"""Test saving and loading CWLTransferStep from database"""
|
|
702
702
|
workflow, (job_port,) = await create_workflow(context=context, num_port=1)
|
|
703
|
-
await workflow.save(context)
|
|
703
|
+
await workflow.save(context.database)
|
|
704
704
|
step = get_full_instantiation(
|
|
705
705
|
cls_=CWLTransferStep,
|
|
706
706
|
name=posixpath.join(utils.random_name(), "__transfer__", "test"),
|
|
@@ -717,7 +717,7 @@ async def test_cwl_transfer_step(context: StreamFlowContext) -> None:
|
|
|
717
717
|
async def test_cwl_input_injector_step(context: StreamFlowContext) -> None:
|
|
718
718
|
"""Test saving and loading CWLInputInjectorStep from database"""
|
|
719
719
|
workflow, (job_port,) = await create_workflow(context=context, num_port=1)
|
|
720
|
-
await workflow.save(context)
|
|
720
|
+
await workflow.save(context.database)
|
|
721
721
|
step = get_full_instantiation(
|
|
722
722
|
cls_=CWLInputInjectorStep,
|
|
723
723
|
name=posixpath.join(utils.random_name(), "-injector"),
|
|
@@ -763,7 +763,7 @@ async def test_cwl_schedule_step(context: StreamFlowContext) -> None:
|
|
|
763
763
|
target.deployment.name: workflow.create_port(ConnectorPort)
|
|
764
764
|
for target in binding_config.targets
|
|
765
765
|
}
|
|
766
|
-
await workflow.save(context)
|
|
766
|
+
await workflow.save(context.database)
|
|
767
767
|
step = get_full_instantiation(
|
|
768
768
|
cls_=CWLScheduleStep,
|
|
769
769
|
name=posixpath.join(utils.random_name(), "__schedule__"),
|
|
@@ -22,7 +22,7 @@ async def test_get_steps_queries(context: StreamFlowContext) -> None:
|
|
|
22
22
|
step.add_output_port("out", port_b)
|
|
23
23
|
step_2.add_input_port("in2", port_b)
|
|
24
24
|
step_2.add_output_port("out2", port_c)
|
|
25
|
-
await workflow.save(context)
|
|
25
|
+
await workflow.save(context.database)
|
|
26
26
|
|
|
27
27
|
input_steps_port_a = await context.database.get_input_steps(port_a.persistent_id)
|
|
28
28
|
assert len(input_steps_port_a) == 0
|
|
@@ -13,7 +13,7 @@ from streamflow.core.deployment import (
|
|
|
13
13
|
Target,
|
|
14
14
|
WrapsConfig,
|
|
15
15
|
)
|
|
16
|
-
from streamflow.core.persistence import DatabaseLoadingContext
|
|
16
|
+
from streamflow.core.persistence import Database, DatabaseLoadingContext
|
|
17
17
|
from streamflow.core.scheduling import Hardware, HardwareRequirement
|
|
18
18
|
from streamflow.core.workflow import Job, Port, Status, Token, Workflow
|
|
19
19
|
from streamflow.workflow.port import ConnectorPort, JobPort
|
|
@@ -43,14 +43,13 @@ class DummyHardwareRequirement(HardwareRequirement):
|
|
|
43
43
|
@classmethod
|
|
44
44
|
async def _load(
|
|
45
45
|
cls,
|
|
46
|
-
context: StreamFlowContext,
|
|
47
46
|
row: MutableMapping[str, Any],
|
|
48
47
|
loading_context: DatabaseLoadingContext,
|
|
49
48
|
) -> Self:
|
|
50
49
|
return DummyHardwareRequirement()
|
|
51
50
|
|
|
52
51
|
async def _save_additional_params(
|
|
53
|
-
self,
|
|
52
|
+
self, database: Database
|
|
54
53
|
) -> MutableMapping[str, Any]:
|
|
55
54
|
return {}
|
|
56
55
|
|
|
@@ -74,7 +73,7 @@ async def test_workflow(context: StreamFlowContext) -> None:
|
|
|
74
73
|
async def test_port(context: StreamFlowContext) -> None:
|
|
75
74
|
"""Test saving and loading Port from database"""
|
|
76
75
|
workflow = Workflow(context=context, name=utils.random_name(), config={})
|
|
77
|
-
await workflow.save(context)
|
|
76
|
+
await workflow.save(context.database)
|
|
78
77
|
port = get_full_instantiation(cls_=Port, workflow=workflow, name="my_port")
|
|
79
78
|
workflow.ports[port.name] = port
|
|
80
79
|
await save_load_and_test(port, context)
|
|
@@ -84,7 +83,7 @@ async def test_port(context: StreamFlowContext) -> None:
|
|
|
84
83
|
async def test_job_port(context: StreamFlowContext) -> None:
|
|
85
84
|
"""Test saving and loading JobPort from database"""
|
|
86
85
|
workflow = Workflow(context=context, name=utils.random_name(), config={})
|
|
87
|
-
await workflow.save(context)
|
|
86
|
+
await workflow.save(context.database)
|
|
88
87
|
port = get_full_instantiation(cls_=JobPort, workflow=workflow, name="my_port")
|
|
89
88
|
workflow.ports[port.name] = port
|
|
90
89
|
await save_load_and_test(port, context)
|
|
@@ -94,7 +93,7 @@ async def test_job_port(context: StreamFlowContext) -> None:
|
|
|
94
93
|
async def test_connector_port(context: StreamFlowContext) -> None:
|
|
95
94
|
"""Test saving and loading ConnectorPort from database"""
|
|
96
95
|
workflow = Workflow(context=context, name=utils.random_name(), config={})
|
|
97
|
-
await workflow.save(context)
|
|
96
|
+
await workflow.save(context.database)
|
|
98
97
|
port = get_full_instantiation(cls_=ConnectorPort, workflow=workflow, name="my_port")
|
|
99
98
|
workflow.ports[port.name] = port
|
|
100
99
|
await save_load_and_test(port, context)
|
|
@@ -105,7 +104,7 @@ async def test_deploy_step(context: StreamFlowContext) -> None:
|
|
|
105
104
|
"""Test saving and loading DeployStep from database"""
|
|
106
105
|
workflow = Workflow(context=context, name=utils.random_name(), config={})
|
|
107
106
|
connector_port = workflow.create_port(cls=ConnectorPort)
|
|
108
|
-
await workflow.save(context)
|
|
107
|
+
await workflow.save(context.database)
|
|
109
108
|
|
|
110
109
|
deployment_config = get_docker_deployment_config()
|
|
111
110
|
step = get_full_instantiation(
|
|
@@ -145,7 +144,7 @@ async def test_schedule_step(context: StreamFlowContext) -> None:
|
|
|
145
144
|
target.deployment.name: workflow.create_port(ConnectorPort)
|
|
146
145
|
for target in binding_config.targets
|
|
147
146
|
}
|
|
148
|
-
await workflow.save(context)
|
|
147
|
+
await workflow.save(context.database)
|
|
149
148
|
|
|
150
149
|
step = get_full_instantiation(
|
|
151
150
|
cls_=ScheduleStep,
|
|
@@ -168,7 +167,7 @@ async def test_schedule_step(context: StreamFlowContext) -> None:
|
|
|
168
167
|
async def test_execute_step(context: StreamFlowContext) -> None:
|
|
169
168
|
"""Test saving and loading ExecuteStep from database"""
|
|
170
169
|
workflow, (job_port,) = await create_workflow(context, type_="default", num_port=1)
|
|
171
|
-
await workflow.save(context)
|
|
170
|
+
await workflow.save(context.database)
|
|
172
171
|
|
|
173
172
|
step = get_full_instantiation(
|
|
174
173
|
cls_=ExecuteStep,
|
|
@@ -184,7 +183,7 @@ async def test_execute_step(context: StreamFlowContext) -> None:
|
|
|
184
183
|
async def test_gather_step(context: StreamFlowContext) -> None:
|
|
185
184
|
"""Test saving and loading GatherStep from database"""
|
|
186
185
|
workflow, (port,) = await create_workflow(context, type_="default", num_port=1)
|
|
187
|
-
await workflow.save(context)
|
|
186
|
+
await workflow.save(context.database)
|
|
188
187
|
|
|
189
188
|
step = get_full_instantiation(
|
|
190
189
|
cls_=GatherStep,
|
|
@@ -201,7 +200,7 @@ async def test_gather_step(context: StreamFlowContext) -> None:
|
|
|
201
200
|
async def test_scatter_step(context: StreamFlowContext) -> None:
|
|
202
201
|
"""Test saving and loading ScatterStep from database"""
|
|
203
202
|
workflow, (port,) = await create_workflow(context, type_="default", num_port=1)
|
|
204
|
-
await workflow.save(context)
|
|
203
|
+
await workflow.save(context.database)
|
|
205
204
|
|
|
206
205
|
step = get_full_instantiation(
|
|
207
206
|
cls_=ScatterStep,
|
|
@@ -229,7 +228,7 @@ async def test_combinator_step(context: StreamFlowContext, combinator_t: str) ->
|
|
|
229
228
|
with appropriate Combinator classes from database
|
|
230
229
|
"""
|
|
231
230
|
workflow = Workflow(context=context, name=utils.random_name(), config={})
|
|
232
|
-
await workflow.save(context)
|
|
231
|
+
await workflow.save(context.database)
|
|
233
232
|
step = get_combinator_step(workflow, combinator_t, inner_combinator=True)
|
|
234
233
|
await save_load_and_test(step, context)
|
|
235
234
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|