flowgraph 0.1.7__tar.gz → 0.1.8__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 (132) hide show
  1. {flowgraph-0.1.7/src/flowgraph.egg-info → flowgraph-0.1.8}/PKG-INFO +21 -18
  2. {flowgraph-0.1.7 → flowgraph-0.1.8}/README.md +12 -9
  3. {flowgraph-0.1.7 → flowgraph-0.1.8}/pyproject.toml +8 -21
  4. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/ColorCardboard.jpg +0 -0
  5. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/version.py +1 -1
  6. {flowgraph-0.1.7 → flowgraph-0.1.8/src/flowgraph.egg-info}/PKG-INFO +21 -18
  7. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph.egg-info/SOURCES.txt +1 -0
  8. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph.egg-info/requires.txt +8 -8
  9. flowgraph-0.1.8/tests/test_audit_requirements.py +112 -0
  10. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_image_tools.py +16 -0
  11. flowgraph-0.1.8/tests/test_packaging.py +403 -0
  12. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_release.py +174 -5
  13. flowgraph-0.1.7/tests/test_packaging.py +0 -180
  14. {flowgraph-0.1.7 → flowgraph-0.1.8}/LICENSE +0 -0
  15. {flowgraph-0.1.7 → flowgraph-0.1.8}/setup.cfg +0 -0
  16. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/__init__.py +0 -0
  17. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/__main__.py +0 -0
  18. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/__init__.py +0 -0
  19. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/calculator.py +0 -0
  20. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/controls.py +0 -0
  21. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/cosapp.py +0 -0
  22. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/data_types.py +0 -0
  23. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/documentation.py +0 -0
  24. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/field_gradient.py +0 -0
  25. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/field_ops.py +0 -0
  26. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/file_conversion.py +0 -0
  27. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/files.py +0 -0
  28. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/filters.py +0 -0
  29. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/image_tools.py +0 -0
  30. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/imagej.py +0 -0
  31. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/mesh_analysis.py +0 -0
  32. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/mesh_composition.py +0 -0
  33. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/mesh_creation_tools.py +0 -0
  34. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/mesh_generations.py +0 -0
  35. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/mesh_ops.py +0 -0
  36. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/paraview.py +0 -0
  37. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/plaid_bridge.py +0 -0
  38. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/readers.py +0 -0
  39. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/remote_files.py +0 -0
  40. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/simple_sources.py +0 -0
  41. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/sinks.py +0 -0
  42. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/table_tools.py +0 -0
  43. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/user_code.py +0 -0
  44. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/vector_tools.py +0 -0
  45. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/workflow.py +0 -0
  46. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/workflow_interfaces.py +0 -0
  47. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/writers.py +0 -0
  48. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/adapters/zones.py +0 -0
  49. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/__init__.py +0 -0
  50. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/file_dependencies.py +0 -0
  51. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/node_registry.py +0 -0
  52. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/port_conversions.py +0 -0
  53. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_cli.py +0 -0
  54. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_core.py +0 -0
  55. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_defaults.py +0 -0
  56. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_execution.py +0 -0
  57. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_history.py +0 -0
  58. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_io.py +0 -0
  59. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_layout.py +0 -0
  60. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_session.py +0 -0
  61. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflow_web_catalog.py +0 -0
  62. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/application/workflows.py +0 -0
  63. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/core_cli.py +0 -0
  64. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/domain/__init__.py +0 -0
  65. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/domain/filepath.py +0 -0
  66. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/domain/mesh_document.py +0 -0
  67. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/examples/AllFilters.py +0 -0
  68. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/examples/convert_format.py +0 -0
  69. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/paraview_gateway.py +0 -0
  70. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/resources.py +0 -0
  71. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/server/__init__.py +0 -0
  72. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/server/http.py +0 -0
  73. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/server/jobs.py +0 -0
  74. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/server/worker.py +0 -0
  75. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/server/workspace.py +0 -0
  76. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/AllFilters.json +0 -0
  77. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/FlowGraph.h5 +0 -0
  78. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/FlowGraph.stl +0 -0
  79. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/FlowGraph.xdmf +0 -0
  80. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/SimpleReadMesh.json +0 -0
  81. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/SpherePoints.csv +0 -0
  82. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph/testdata/muscat-muscat-mesh-conversion.json +0 -0
  83. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph.egg-info/dependency_links.txt +0 -0
  84. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph.egg-info/entry_points.txt +0 -0
  85. {flowgraph-0.1.7 → flowgraph-0.1.8}/src/flowgraph.egg-info/top_level.txt +0 -0
  86. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_array_nodes.py +0 -0
  87. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_array_types.py +0 -0
  88. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_cache_policy.py +0 -0
  89. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_calculator.py +0 -0
  90. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_conditional_workflow.py +0 -0
  91. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_controls.py +0 -0
  92. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_core_gui_boundary.py +0 -0
  93. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_cosapp.py +0 -0
  94. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_directory_dependencies.py +0 -0
  95. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_extract_field.py +0 -0
  96. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_extract_vector_value.py +0 -0
  97. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_field_gradient.py +0 -0
  98. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_file_conversion.py +0 -0
  99. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_filepath.py +0 -0
  100. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_fluency_optimization.py +0 -0
  101. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_headless_boundary.py +0 -0
  102. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_imagej.py +0 -0
  103. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_local_server.py +0 -0
  104. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_mesh_analysis.py +0 -0
  105. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_mesh_composition.py +0 -0
  106. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_mesh_creation_tools.py +0 -0
  107. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_mesh_ops.py +0 -0
  108. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_muscat_vtk.py +0 -0
  109. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_node_selector.py +0 -0
  110. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_paraview.py +0 -0
  111. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_plaid_bridge.py +0 -0
  112. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_readers.py +0 -0
  113. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_remote_files.py +0 -0
  114. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_remove_lonely_nodes.py +0 -0
  115. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_scalars_to_array_1d.py +0 -0
  116. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_simple_sources.py +0 -0
  117. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_sinks.py +0 -0
  118. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_table_tools.py +0 -0
  119. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_transfer_fields.py +0 -0
  120. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_user_code_mesh.py +0 -0
  121. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_vector_field_gradient.py +0 -0
  122. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_vector_tools.py +0 -0
  123. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workflow_cli.py +0 -0
  124. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workflow_core.py +0 -0
  125. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workflow_execution.py +0 -0
  126. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workflow_history.py +0 -0
  127. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workflow_io.py +0 -0
  128. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workflow_session.py +0 -0
  129. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workflow_web_catalog.py +0 -0
  130. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_workspace_directories.py +0 -0
  131. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_writers.py +0 -0
  132. {flowgraph-0.1.7 → flowgraph-0.1.8}/tests/test_zones.py +0 -0
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flowgraph
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Headless typed workflow engine and execution runtime
5
5
  Author: Felipe Bordeu
6
6
  Maintainer: Felipe Bordeu
7
7
  License-Expression: BSD-3-Clause
8
8
  Project-URL: Homepage, https://github.com/FBW-Engineering-Solutions/FlowGraph
9
+ Project-URL: Documentation, https://flowgraph.readthedocs.io/en/latest/
9
10
  Project-URL: Repository, https://github.com/FBW-Engineering-Solutions/FlowGraph.git
10
11
  Project-URL: Issues, https://github.com/FBW-Engineering-Solutions/FlowGraph/issues
11
12
  Keywords: workflow,graph,mesh,scientific-computing,automation
@@ -25,14 +26,13 @@ Description-Content-Type: text/markdown
25
26
  License-File: LICENSE
26
27
  Requires-Dist: vtk>=9.2
27
28
  Requires-Dist: muscat>=2.5.2
28
- Requires-Dist: meshio>=5.3
29
- Requires-Dist: meshlane>=5.5.0
30
- Requires-Dist: scipy>=1.10
31
- Requires-Dist: pandas
32
- Requires-Dist: h5py
33
- Requires-Dist: pillow>=10.0
34
- Requires-Dist: numpy>=1.24
35
- Requires-Dist: openpyxl>=3.1.5
29
+ Provides-Extra: io
30
+ Requires-Dist: meshio>=5.3; extra == "io"
31
+ Requires-Dist: meshlane>=5.5.0; extra == "io"
32
+ Requires-Dist: pandas; extra == "io"
33
+ Requires-Dist: h5py; extra == "io"
34
+ Requires-Dist: pillow>=10.0; extra == "io"
35
+ Requires-Dist: openpyxl>=3.1.5; extra == "io"
36
36
  Provides-Extra: imagej
37
37
  Requires-Dist: pyimagej; extra == "imagej"
38
38
  Requires-Dist: scyjava; extra == "imagej"
@@ -71,7 +71,7 @@ API, node safety contracts, transport options and resource limits.
71
71
  ## Development setup
72
72
 
73
73
  ```bash
74
- uv sync --extra dev
74
+ uv sync --extra dev --extra io
75
75
  uv run pytest
76
76
  uv run ruff check .
77
77
  ```
@@ -171,14 +171,7 @@ uv build --out-dir dist/
171
171
  The resulting wheel is compatible with all supported Python platforms. See
172
172
  `packaging/README.md` for release details.
173
173
 
174
- The repository also includes a Conda recipe under `packaging/conda/`. FlowGraph
175
- is distributed through the [`flowgraph` Anaconda channel](https://anaconda.org/channels/flowgraph):
176
-
177
- ```bash
178
- conda install -c flowgraph flowgraph
179
- ```
180
-
181
- Docker, operating-system package managers, and third-party mirrors are not
174
+ Conda, Docker, operating-system package managers, and third-party mirrors are not
182
175
  supported release channels at this time. See
183
176
  [`Release Channels`](docs/policies/release-channels.md) for the release policy.
184
177
 
@@ -220,6 +213,16 @@ behavior.
220
213
 
221
214
  ## Optional integrations
222
215
 
216
+ The `io` extra supplies meshio, Meshlane, pandas, h5py, Pillow, and openpyxl
217
+ for mesh, table, and image I/O and image processing. Install it when your
218
+ workflows use these libraries:
219
+
220
+ ```bash
221
+ uv pip install 'flowgraph[io]'
222
+ # From a source checkout:
223
+ uv sync --extra io
224
+ ```
225
+
223
226
  The `ml` extra enables the PyPlaid adapter and the `cosapp` extra enables the
224
227
  CoSApp adapter. Neither extra is part of the minimum core support guarantee.
225
228
  Install an extra only when its upstream dependency, license terms, platform
@@ -19,7 +19,7 @@ API, node safety contracts, transport options and resource limits.
19
19
  ## Development setup
20
20
 
21
21
  ```bash
22
- uv sync --extra dev
22
+ uv sync --extra dev --extra io
23
23
  uv run pytest
24
24
  uv run ruff check .
25
25
  ```
@@ -119,14 +119,7 @@ uv build --out-dir dist/
119
119
  The resulting wheel is compatible with all supported Python platforms. See
120
120
  `packaging/README.md` for release details.
121
121
 
122
- The repository also includes a Conda recipe under `packaging/conda/`. FlowGraph
123
- is distributed through the [`flowgraph` Anaconda channel](https://anaconda.org/channels/flowgraph):
124
-
125
- ```bash
126
- conda install -c flowgraph flowgraph
127
- ```
128
-
129
- Docker, operating-system package managers, and third-party mirrors are not
122
+ Conda, Docker, operating-system package managers, and third-party mirrors are not
130
123
  supported release channels at this time. See
131
124
  [`Release Channels`](docs/policies/release-channels.md) for the release policy.
132
125
 
@@ -168,6 +161,16 @@ behavior.
168
161
 
169
162
  ## Optional integrations
170
163
 
164
+ The `io` extra supplies meshio, Meshlane, pandas, h5py, Pillow, and openpyxl
165
+ for mesh, table, and image I/O and image processing. Install it when your
166
+ workflows use these libraries:
167
+
168
+ ```bash
169
+ uv pip install 'flowgraph[io]'
170
+ # From a source checkout:
171
+ uv sync --extra io
172
+ ```
173
+
171
174
  The `ml` extra enables the PyPlaid adapter and the `cosapp` extra enables the
172
175
  CoSApp adapter. Neither extra is part of the minimum core support guarantee.
173
176
  Install an extra only when its upstream dependency, license terms, platform
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["setuptools>=68"]
2
+ requires = ["setuptools>=84.1.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "flowgraph"
7
- version = "0.1.7"
7
+ version = "0.1.8"
8
8
  description = "Headless typed workflow engine and execution runtime"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -29,17 +29,17 @@ classifiers = [
29
29
  dependencies = [
30
30
  "vtk>=9.2",
31
31
  "muscat>=2.5.2",
32
+ ]
33
+
34
+ [project.optional-dependencies]
35
+ io = [
32
36
  "meshio>=5.3",
33
37
  "meshlane>=5.5.0",
34
- "scipy>=1.10",
35
38
  "pandas",
36
39
  "h5py",
37
40
  "pillow>=10.0",
38
- "numpy>=1.24",
39
41
  "openpyxl>=3.1.5",
40
42
  ]
41
-
42
- [project.optional-dependencies]
43
43
  imagej = [
44
44
  "pyimagej",
45
45
  "scyjava",
@@ -63,6 +63,7 @@ ci = [
63
63
 
64
64
  [project.urls]
65
65
  Homepage = "https://github.com/FBW-Engineering-Solutions/FlowGraph"
66
+ Documentation = "https://flowgraph.readthedocs.io/en/latest/"
66
67
  Repository = "https://github.com/FBW-Engineering-Solutions/FlowGraph.git"
67
68
  Issues = "https://github.com/FBW-Engineering-Solutions/FlowGraph/issues"
68
69
 
@@ -86,18 +87,4 @@ pythonpath = [".", "src"]
86
87
 
87
88
  [tool.ruff]
88
89
  target-version = "py311"
89
- line-length = 100
90
-
91
- #[tool.uv.sources]
92
- #muscat = { git = "https://gitlab.com/drti/muscat.git", rev = "ParMmg" }
93
- ##micromamba install -n uv_muscat_build_packages scotch mmgsuite=*=h* kokkos=*=h*
94
- ## uv pip install ipywidgets
95
- ## uv pip install jupyterlab
96
- ##export OMP_PROC_BIND=spread
97
- ##export OMP_PLACES=threads
98
- ##LD_LIBRARY_PATH=/home/fbw/.local/share/mamba/envs/uv_muscat_build_packages/lib/ uv run jupyter lab
99
-
100
- #[tool.uv]
101
- #config-settings-package = {muscat = {"cmake.args" = ["-DCMAKE_PREFIX_PATH=/home/fbw/.local/share/mamba/envs/uv_muscat_build_packages/lib/cmake/",
102
- #"-DSCOTCH_ROOT=/home/fbw/.local/share/mamba/envs/uv_muscat_build_packages/"
103
- #]}}
90
+ line-length = 100
@@ -1,3 +1,3 @@
1
1
  """Version information for FlowGraph."""
2
2
 
3
- __version__ = "0.1.7"
3
+ __version__ = "0.1.8"
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flowgraph
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Headless typed workflow engine and execution runtime
5
5
  Author: Felipe Bordeu
6
6
  Maintainer: Felipe Bordeu
7
7
  License-Expression: BSD-3-Clause
8
8
  Project-URL: Homepage, https://github.com/FBW-Engineering-Solutions/FlowGraph
9
+ Project-URL: Documentation, https://flowgraph.readthedocs.io/en/latest/
9
10
  Project-URL: Repository, https://github.com/FBW-Engineering-Solutions/FlowGraph.git
10
11
  Project-URL: Issues, https://github.com/FBW-Engineering-Solutions/FlowGraph/issues
11
12
  Keywords: workflow,graph,mesh,scientific-computing,automation
@@ -25,14 +26,13 @@ Description-Content-Type: text/markdown
25
26
  License-File: LICENSE
26
27
  Requires-Dist: vtk>=9.2
27
28
  Requires-Dist: muscat>=2.5.2
28
- Requires-Dist: meshio>=5.3
29
- Requires-Dist: meshlane>=5.5.0
30
- Requires-Dist: scipy>=1.10
31
- Requires-Dist: pandas
32
- Requires-Dist: h5py
33
- Requires-Dist: pillow>=10.0
34
- Requires-Dist: numpy>=1.24
35
- Requires-Dist: openpyxl>=3.1.5
29
+ Provides-Extra: io
30
+ Requires-Dist: meshio>=5.3; extra == "io"
31
+ Requires-Dist: meshlane>=5.5.0; extra == "io"
32
+ Requires-Dist: pandas; extra == "io"
33
+ Requires-Dist: h5py; extra == "io"
34
+ Requires-Dist: pillow>=10.0; extra == "io"
35
+ Requires-Dist: openpyxl>=3.1.5; extra == "io"
36
36
  Provides-Extra: imagej
37
37
  Requires-Dist: pyimagej; extra == "imagej"
38
38
  Requires-Dist: scyjava; extra == "imagej"
@@ -71,7 +71,7 @@ API, node safety contracts, transport options and resource limits.
71
71
  ## Development setup
72
72
 
73
73
  ```bash
74
- uv sync --extra dev
74
+ uv sync --extra dev --extra io
75
75
  uv run pytest
76
76
  uv run ruff check .
77
77
  ```
@@ -171,14 +171,7 @@ uv build --out-dir dist/
171
171
  The resulting wheel is compatible with all supported Python platforms. See
172
172
  `packaging/README.md` for release details.
173
173
 
174
- The repository also includes a Conda recipe under `packaging/conda/`. FlowGraph
175
- is distributed through the [`flowgraph` Anaconda channel](https://anaconda.org/channels/flowgraph):
176
-
177
- ```bash
178
- conda install -c flowgraph flowgraph
179
- ```
180
-
181
- Docker, operating-system package managers, and third-party mirrors are not
174
+ Conda, Docker, operating-system package managers, and third-party mirrors are not
182
175
  supported release channels at this time. See
183
176
  [`Release Channels`](docs/policies/release-channels.md) for the release policy.
184
177
 
@@ -220,6 +213,16 @@ behavior.
220
213
 
221
214
  ## Optional integrations
222
215
 
216
+ The `io` extra supplies meshio, Meshlane, pandas, h5py, Pillow, and openpyxl
217
+ for mesh, table, and image I/O and image processing. Install it when your
218
+ workflows use these libraries:
219
+
220
+ ```bash
221
+ uv pip install 'flowgraph[io]'
222
+ # From a source checkout:
223
+ uv sync --extra io
224
+ ```
225
+
223
226
  The `ml` extra enables the PyPlaid adapter and the `cosapp` extra enables the
224
227
  CoSApp adapter. Neither extra is part of the minimum core support guarantee.
225
228
  Install an extra only when its upstream dependency, license terms, platform
@@ -78,6 +78,7 @@ src/flowgraph/testdata/SpherePoints.csv
78
78
  src/flowgraph/testdata/muscat-muscat-mesh-conversion.json
79
79
  tests/test_array_nodes.py
80
80
  tests/test_array_types.py
81
+ tests/test_audit_requirements.py
81
82
  tests/test_cache_policy.py
82
83
  tests/test_calculator.py
83
84
  tests/test_conditional_workflow.py
@@ -1,13 +1,5 @@
1
1
  vtk>=9.2
2
2
  muscat>=2.5.2
3
- meshio>=5.3
4
- meshlane>=5.5.0
5
- scipy>=1.10
6
- pandas
7
- h5py
8
- pillow>=10.0
9
- numpy>=1.24
10
- openpyxl>=3.1.5
11
3
 
12
4
  [ci]
13
5
  cosapp>=1.6.1
@@ -26,5 +18,13 @@ build
26
18
  pyimagej
27
19
  scyjava
28
20
 
21
+ [io]
22
+ meshio>=5.3
23
+ meshlane>=5.5.0
24
+ pandas
25
+ h5py
26
+ pillow>=10.0
27
+ openpyxl>=3.1.5
28
+
29
29
  [ml]
30
30
  pyplaid
@@ -0,0 +1,112 @@
1
+ """Offline coverage for the CI dependency inventory and its explicit audit target."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import importlib.util
6
+ import subprocess
7
+ import sys
8
+ from pathlib import Path
9
+ from types import SimpleNamespace
10
+
11
+ import pytest
12
+
13
+ ROOT = Path(__file__).resolve().parents[1]
14
+ SPEC = importlib.util.spec_from_file_location(
15
+ "audit_requirements", ROOT / "packaging/audit_requirements.py"
16
+ )
17
+ assert SPEC is not None and SPEC.loader is not None
18
+ AUDIT = importlib.util.module_from_spec(SPEC)
19
+ SPEC.loader.exec_module(AUDIT)
20
+
21
+
22
+ def distribution(name: str, version: str) -> SimpleNamespace:
23
+ return SimpleNamespace(metadata={"Name": name}, version=version)
24
+
25
+
26
+ def test_snapshot_normalizes_sorts_and_excludes_only_flowgraph() -> None:
27
+ installed = [
28
+ distribution("Zeta_pkg", "1.0+local"),
29
+ distribution("FlowGraph", "0.1.8"),
30
+ distribution("pip-audit", "2.9.0"),
31
+ distribution("Alpha.Pkg", "2.0rc1"),
32
+ distribution("zeta-pkg", "1.0+local"),
33
+ ]
34
+ expected = (["alpha-pkg==2.0rc1", "pip-audit==2.9.0", "zeta-pkg==1.0+local"], "0.1.8")
35
+ assert AUDIT.snapshot(installed) == expected
36
+ assert AUDIT.snapshot(reversed(installed)) == expected
37
+
38
+
39
+ @pytest.mark.parametrize(
40
+ "installed, message",
41
+ [
42
+ ([], "FlowGraph is not installed"),
43
+ ([distribution("flowgraph", "0.1.8")], "No installed dependencies"),
44
+ ([distribution("bad\nname", "1")], "Invalid installed distribution name"),
45
+ ([distribution("valid", "1\nother==2")], "Invalid installed version"),
46
+ ([distribution("valid", "")], "Invalid installed version"),
47
+ ([distribution("dup_pkg", "1"), distribution("dup-pkg", "2")], "Conflicting"),
48
+ ],
49
+ )
50
+ def test_snapshot_rejects_incomplete_or_unsafe_inventory(installed, message: str) -> None:
51
+ with pytest.raises(ValueError, match=message):
52
+ AUDIT.snapshot(installed)
53
+
54
+
55
+ def test_snapshot_cli_writes_and_logs_inventory(tmp_path: Path, monkeypatch, capsys) -> None:
56
+ output = tmp_path / "nested/requirements.txt"
57
+ monkeypatch.setattr(sys, "argv", ["audit_requirements.py", "--output", str(output)])
58
+ monkeypatch.setattr(
59
+ AUDIT,
60
+ "distributions",
61
+ lambda: [
62
+ distribution("flowgraph", "0.1.8"),
63
+ distribution("pytest", "8.0"),
64
+ ],
65
+ )
66
+ assert AUDIT.main() == 0
67
+ assert output.read_text() == "pytest==8.0\n"
68
+ log = capsys.readouterr().out
69
+ assert sys.executable in log
70
+ assert "Excluded local project: flowgraph==0.1.8" in log
71
+ assert "all 1 other installed distributions" in log
72
+ assert "pytest==8.0" in log
73
+
74
+
75
+ def test_snapshot_cli_fails_closed(tmp_path: Path, monkeypatch, capsys) -> None:
76
+ output = tmp_path / "requirements.txt"
77
+ monkeypatch.setattr(sys, "argv", ["audit_requirements.py", "--output", str(output)])
78
+ monkeypatch.setattr(AUDIT, "distributions", list)
79
+ assert AUDIT.main() == 1
80
+ assert not output.exists()
81
+ assert "Audit snapshot failed" in capsys.readouterr().err
82
+
83
+
84
+ def test_real_snapshot_matches_installed_environment(tmp_path: Path) -> None:
85
+ from importlib.metadata import distributions
86
+
87
+ output = tmp_path / "requirements.txt"
88
+ result = subprocess.run(
89
+ [sys.executable, str(ROOT / "packaging/audit_requirements.py"), "--output", str(output)],
90
+ capture_output=True,
91
+ text=True,
92
+ check=True,
93
+ )
94
+ pins, version = AUDIT.snapshot(distributions())
95
+ assert output.read_text().splitlines() == pins
96
+ assert f"Excluded local project: flowgraph=={version}" in result.stdout
97
+ assert any(pin.startswith("muscat==") for pin in pins)
98
+ assert any(pin.startswith("vtk==") for pin in pins)
99
+
100
+
101
+ def test_workflow_audits_explicit_project_snapshot_without_suppression() -> None:
102
+ workflow = (ROOT / ".github/workflows/build-packages.yml").read_text()
103
+ test_job = workflow.split("\n test:\n", 1)[1].split("\n build:\n", 1)[0]
104
+ snapshot = "uv run --no-sync python packaging/audit_requirements.py --output .validation-dist/audit-requirements.txt"
105
+ audit = "uvx --from pip-audit pip-audit --requirement .validation-dist/audit-requirements.txt --no-deps --disable-pip --strict"
106
+ assert snapshot in test_job
107
+ assert audit in test_job
108
+ assert test_job.index("uv sync --locked") < test_job.index(snapshot) < test_job.index(audit)
109
+ for bypass in ("continue-on-error", "--ignore-vuln", "|| true", "--fix"):
110
+ assert bypass not in test_job
111
+ guide = (ROOT / "packaging/README.md").read_text()
112
+ assert snapshot in guide and audit in guide
@@ -1,3 +1,4 @@
1
+ import hashlib
1
2
  import json
2
3
  from pathlib import Path
3
4
 
@@ -38,6 +39,21 @@ from flowgraph.application.workflow_execution import clear_execution_session, ex
38
39
  from flowgraph.application.workflow_io import workflow_to_dict
39
40
 
40
41
 
42
+ def test_color_cardboard_fixture_has_no_location_metadata() -> None:
43
+ path = Path(__file__).parents[1] / "src/flowgraph/testdata/ColorCardboard.jpg"
44
+ # Pin sanitized file bytes, not decoded pixels: JPEG decoders may differ by platform.
45
+ assert hashlib.sha256(path.read_bytes()).hexdigest() == (
46
+ "66dc88879b355a2d666288f74d56b27572ae2625848026cdb540f0c5b358a7f5"
47
+ )
48
+ with PillowImage.open(path) as image:
49
+ assert image.size == (2850, 2484)
50
+ assert image.mode == "RGB"
51
+ assert not image.getexif()
52
+ assert "exif" not in image.info
53
+ assert "xmp" not in image.info
54
+ assert "XML:com.adobe.xmp" not in image.info
55
+
56
+
41
57
  def test_image_data_type_accepts_pillow_images() -> None:
42
58
  assert IMAGE.accepts(PillowImage.new("RGB", (1, 1)))
43
59
  assert not IMAGE.accepts("not an image")