fractal-task-tools 0.0.9__py3-none-any.whl → 0.0.11__py3-none-any.whl

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 fractal-task-tools might be problematic. Click here for more details.

@@ -2,4 +2,4 @@ import logging
2
2
 
3
3
  logging.basicConfig(level=logging.INFO)
4
4
 
5
- __VERSION__ = "0.0.9"
5
+ __VERSION__ = "0.0.11"
@@ -47,6 +47,19 @@ for subparser in (create_manifest_parser, check_manifest_parser):
47
47
  default="dev.task_list",
48
48
  required=False,
49
49
  )
50
+
51
+ subparser.add_argument(
52
+ "--fractal-server-2-13",
53
+ action="store_true",
54
+ help=(
55
+ "If set, produce a manifest which is compatible with "
56
+ "fractal-server<2.14 (that is, exclude tasks' `type`s from "
57
+ "manifest and forbid converter types."
58
+ ),
59
+ default=False,
60
+ required=False,
61
+ )
62
+
50
63
  check_manifest_parser.add_argument(
51
64
  "--ignore-keys-order",
52
65
  type=bool,
@@ -78,6 +91,7 @@ def main():
78
91
  manifest = create_manifest(
79
92
  raw_package_name=args.package,
80
93
  task_list_path=args.task_list_path,
94
+ fractal_server_2_13=args.fractal_server_2_13,
81
95
  )
82
96
  write_manifest_to_file(
83
97
  raw_package_name=args.package,
@@ -88,6 +102,7 @@ def main():
88
102
  manifest = create_manifest(
89
103
  raw_package_name=args.package,
90
104
  task_list_path=args.task_list_path,
105
+ fractal_server_2_13=args.fractal_server_2_13,
91
106
  )
92
107
  check_manifest(
93
108
  raw_package_name=args.package,
@@ -21,6 +21,7 @@ def create_manifest(
21
21
  *,
22
22
  raw_package_name: str,
23
23
  task_list_path: str,
24
+ fractal_server_2_13: bool = False,
24
25
  ) -> dict[str, Any]:
25
26
  """
26
27
  Create the package manifest based on a `task_list.py` module
@@ -32,6 +33,10 @@ def create_manifest(
32
33
  task_list_path:
33
34
  Relative path to the `task_list.py` module, with respect to the
34
35
  package root (example `dev.task_list`).
36
+ fractal_server_2_13:
37
+ If set, produce a manifest which is compatible with
38
+ fractal-server<2.14 (that is, exclude tasks' `type`s from manifest
39
+ and forbid converter types."
35
40
 
36
41
  Returns:
37
42
  Task-package manifest.
@@ -98,7 +103,16 @@ def create_manifest(
98
103
  },
99
104
  exclude_unset=True,
100
105
  )
101
- task_dict["type"] = task_obj.type
106
+ if fractal_server_2_13 and task_obj.type in [
107
+ "converter_compound",
108
+ "converter_non_parallel",
109
+ ]:
110
+ raise ValueError(
111
+ f"Invalid task type {task_obj.type} "
112
+ f"(with {fractal_server_2_13=})."
113
+ )
114
+ if not fractal_server_2_13:
115
+ task_dict["type"] = task_obj.type
102
116
 
103
117
  # Copy some properties from `task_obj` to `task_dict`
104
118
  if task_obj.executable_non_parallel is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fractal-task-tools
3
- Version: 0.0.9
3
+ Version: 0.0.11
4
4
  Summary: Shared tools for Fractal tasks
5
5
  Author-email: Tommaso Comparin <tommaso.comparin@exact-lab.it>
6
6
  License: BSD-3-Clause
@@ -11,19 +11,20 @@ Requires-Python: <3.13,>=3.10
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: pydantic<=2.8.2,>=2.0.0
14
- Requires-Dist: docstring-parser==0.15
14
+ Requires-Dist: docstring-parser<=0.16,>=0.15
15
15
  Provides-Extra: dev
16
16
  Requires-Dist: bumpver==2024.1130; extra == "dev"
17
17
  Requires-Dist: devtools==0.12.2; extra == "dev"
18
18
  Requires-Dist: pytest<9.0.0,>=8.3.0; extra == "dev"
19
19
  Requires-Dist: coverage<7.7.0,>=7.6.0; extra == "dev"
20
- Requires-Dist: mkdocs==1.5.2; extra == "dev"
21
- Requires-Dist: mkdocs-material==9.1.21; extra == "dev"
22
- Requires-Dist: mkdocs-literate-nav==0.5.0; extra == "dev"
23
- Requires-Dist: mkdocs-gen-files==0.4.0; extra == "dev"
24
- Requires-Dist: mkdocs-section-index==0.3.5; extra == "dev"
25
- Requires-Dist: mkdocstrings[python]==0.25.2; extra == "dev"
26
- Requires-Dist: mkdocs-include-markdown-plugin<6.0.0,>=5.0.0; extra == "dev"
20
+ Provides-Extra: docs
21
+ Requires-Dist: mkdocs<1.7.0,>=1.6.0; extra == "docs"
22
+ Requires-Dist: mkdocs-material<9.7.0,>=9.6.0; extra == "docs"
23
+ Requires-Dist: mkdocs-literate-nav<0.7.0,>=0.6.2; extra == "docs"
24
+ Requires-Dist: mkdocs-gen-files<0.6.0,>=0.5.0; extra == "docs"
25
+ Requires-Dist: mkdocs-section-index<0.4.0,>=0.3.9; extra == "docs"
26
+ Requires-Dist: mkdocstrings[python]<0.30.0,>=0.29.0; extra == "docs"
27
+ Requires-Dist: mkdocs-include-markdown-plugin<8.0.0,>=7.0.0; extra == "docs"
27
28
  Dynamic: license-file
28
29
 
29
30
  # Fractal task tools
@@ -1,8 +1,8 @@
1
- fractal_task_tools/__init__.py,sha256=sLICpL6OJuGAjnPq5Y06u4kqhfz653Ng7rRdEl3mlxk,79
1
+ fractal_task_tools/__init__.py,sha256=PcOgryhg28_2__bAMe68Hp1V7Iuaqnh-qpDVFRJOIYw,80
2
2
  fractal_task_tools/_args_schemas.py,sha256=Ka5IAAEdC7xg03ZHMl5jFbv4Sk8JR1QKbxFl7soevlQ,7829
3
- fractal_task_tools/_cli.py,sha256=2yxGcktEwHYXrRg_KxhO94xqovYkapBSQZNes94v_so,2458
3
+ fractal_task_tools/_cli.py,sha256=ARy3PWjAr92hBk0ZHnFIEAqTskipBIaLRW6COTJ4X-k,2936
4
4
  fractal_task_tools/_cli_tools.py,sha256=6G7zXvL6o5t7n4HvVAqP6an0o7qx5fEau5KjtoDXFuc,2622
5
- fractal_task_tools/_create_manifest.py,sha256=kN_WPJMYz-4vPQ8RYUcLbGW6g8kWjs24J-rtrSXU1Eo,5219
5
+ fractal_task_tools/_create_manifest.py,sha256=aPolxXH5Ug1xh_g5acuEF_GdMCYWApZnrb_N8gA3sqg,5796
6
6
  fractal_task_tools/_deepdiff.py,sha256=Or9wO0E9Icb_ki_DTjIdgJKd4JpSJrk8UL3DqqUf-5g,2241
7
7
  fractal_task_tools/_descriptions.py,sha256=qYwmpN11UYUmW-PH85ZrHJ3gB6bVjJZ52V9I9Rad3-w,7975
8
8
  fractal_task_tools/_package_name_tools.py,sha256=9CyzFwOw4akvQc5GViBm4g-vU8pCc0ULh9hs3b_7VCY,823
@@ -13,9 +13,9 @@ fractal_task_tools/_task_docs.py,sha256=aEXozSKf3a7weOwJMHyTVJTvHlCKgDr1qoU-AAO3
13
13
  fractal_task_tools/_titles.py,sha256=GLWn-06fgQD6qzOM75H59EV0MMCXc8jVpHqGanYzNbw,3000
14
14
  fractal_task_tools/task_models.py,sha256=4qBDUAoqIgdfAV-7CKkVO5--Y_2Y6CflNVMIiwJxn9g,4177
15
15
  fractal_task_tools/task_wrapper.py,sha256=dhphKgxDm4EUxZnsrAy20hJPD6bGdqx7tNg9N_QzlCo,1878
16
- fractal_task_tools-0.0.9.dist-info/licenses/LICENSE,sha256=1SGAsQ3Jm_nIU7c2TgtTZe_IOKjm9BDsrcf2r98xrdk,1584
17
- fractal_task_tools-0.0.9.dist-info/METADATA,sha256=FTnMNU5H7uqrUnTIQsjmHa_3hTFeac7z2EmoCmBnlb4,4638
18
- fractal_task_tools-0.0.9.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
19
- fractal_task_tools-0.0.9.dist-info/entry_points.txt,sha256=zE4qv7QhuiqN6DaPkmJV18X1xyYoUi0HIJ-uAg2M6TU,66
20
- fractal_task_tools-0.0.9.dist-info/top_level.txt,sha256=2VBpiMDIBMJGOEPiHHX3njYEZGLhr4L0nu8vfkcNVzw,19
21
- fractal_task_tools-0.0.9.dist-info/RECORD,,
16
+ fractal_task_tools-0.0.11.dist-info/licenses/LICENSE,sha256=1SGAsQ3Jm_nIU7c2TgtTZe_IOKjm9BDsrcf2r98xrdk,1584
17
+ fractal_task_tools-0.0.11.dist-info/METADATA,sha256=8_5ecJ8jId-B81i_4Yf3uovR9nZl56wDxxuUe6BuGGg,4716
18
+ fractal_task_tools-0.0.11.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
+ fractal_task_tools-0.0.11.dist-info/entry_points.txt,sha256=zE4qv7QhuiqN6DaPkmJV18X1xyYoUi0HIJ-uAg2M6TU,66
20
+ fractal_task_tools-0.0.11.dist-info/top_level.txt,sha256=2VBpiMDIBMJGOEPiHHX3njYEZGLhr4L0nu8vfkcNVzw,19
21
+ fractal_task_tools-0.0.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (77.0.3)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5