machineconfig 6.27__py3-none-any.whl → 6.29__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 machineconfig might be problematic. Click here for more details.
- machineconfig/cluster/sessions_managers/utils/maker.py +10 -17
- {machineconfig-6.27.dist-info → machineconfig-6.29.dist-info}/METADATA +1 -1
- {machineconfig-6.27.dist-info → machineconfig-6.29.dist-info}/RECORD +6 -6
- {machineconfig-6.27.dist-info → machineconfig-6.29.dist-info}/WHEEL +0 -0
- {machineconfig-6.27.dist-info → machineconfig-6.29.dist-info}/entry_points.txt +0 -0
- {machineconfig-6.27.dist-info → machineconfig-6.29.dist-info}/top_level.txt +0 -0
|
@@ -20,7 +20,8 @@ def get_fire_command_and_artifact_files(func: FunctionType):
|
|
|
20
20
|
}
|
|
21
21
|
return tab_config, py_script_path
|
|
22
22
|
def get_fire_command_and_artifact_files_v2(func: FunctionType):
|
|
23
|
-
|
|
23
|
+
import os
|
|
24
|
+
command_to_run = f"""$HOME/.local/bin/fire {func.__module__.replace(".", os.sep)} {func.__name__} """
|
|
24
25
|
tab_config: TabConfig = {
|
|
25
26
|
"command": command_to_run,
|
|
26
27
|
"startDir": str(Path(func.__module__).parent),
|
|
@@ -29,26 +30,18 @@ def get_fire_command_and_artifact_files_v2(func: FunctionType):
|
|
|
29
30
|
return tab_config
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
def make_layout_from_functions(functions: list[FunctionType
|
|
33
|
-
tabs2artifacts:
|
|
33
|
+
def make_layout_from_functions(functions: list[FunctionType], tab_configs: list[TabConfig], layout_name: str, method: Literal["script", "fire"]="fire") -> LayoutConfig:
|
|
34
|
+
tabs2artifacts: list[tuple[TabConfig, list[Path]]] = []
|
|
34
35
|
for a_func in functions:
|
|
35
36
|
match method:
|
|
36
37
|
case "script":
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
artifact_files = []
|
|
40
|
-
else:
|
|
41
|
-
tab_config, artifact_files_1 = get_fire_command_and_artifact_files(a_func)
|
|
42
|
-
artifact_files = [artifact_files_1]
|
|
38
|
+
tab_config, artifact_files_1 = get_fire_command_and_artifact_files(a_func)
|
|
39
|
+
artifact_files = [artifact_files_1]
|
|
43
40
|
case "fire":
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
tab_config = get_fire_command_and_artifact_files_v2(a_func)
|
|
49
|
-
artifact_files = []
|
|
50
|
-
tabs2artifacts[tab_config] = artifact_files
|
|
51
|
-
list_of_tabs = list(tabs2artifacts.keys())
|
|
41
|
+
tab_config = get_fire_command_and_artifact_files_v2(a_func)
|
|
42
|
+
artifact_files = []
|
|
43
|
+
tabs2artifacts.append((tab_config, artifact_files))
|
|
44
|
+
list_of_tabs = [tab for tab, _ in tabs2artifacts] + tab_configs
|
|
52
45
|
layout_config: LayoutConfig = {
|
|
53
46
|
"layoutName": layout_name,
|
|
54
47
|
"layoutTabs": list_of_tabs,
|
|
@@ -25,7 +25,7 @@ machineconfig/cluster/sessions_managers/zellij_remote_manager.py,sha256=xzih0y8_
|
|
|
25
25
|
machineconfig/cluster/sessions_managers/helpers/enhanced_command_runner.py,sha256=3vcQVg-HHa_WTxBGPtKMAdoSqJVa2EO5KAtrY8a6I3c,5264
|
|
26
26
|
machineconfig/cluster/sessions_managers/helpers/load_balancer_helper.py,sha256=i5TRittC1IWTgMZNyG8AR5qq-3WrGp3xgIx2m5ktT7g,7526
|
|
27
27
|
machineconfig/cluster/sessions_managers/utils/load_balancer.py,sha256=Y4RQmhROY6o7JXSJXRrBTkoAuEmu1gvmvN_7JKPw5sc,3178
|
|
28
|
-
machineconfig/cluster/sessions_managers/utils/maker.py,sha256=
|
|
28
|
+
machineconfig/cluster/sessions_managers/utils/maker.py,sha256=5_1uD-kcZC_SNEB-uryobVk81GULGhhpSXeDZt3UZfU,2094
|
|
29
29
|
machineconfig/cluster/sessions_managers/wt_utils/layout_generator.py,sha256=OA50j16uUS9ZTjL38TLuR3jufIOln_EszMZpbWyejTo,6972
|
|
30
30
|
machineconfig/cluster/sessions_managers/wt_utils/process_monitor.py,sha256=Mitm7mKiKl5lT0OiEUHAqVg2Q21RjsKO1-hpJTHJ5lM,15196
|
|
31
31
|
machineconfig/cluster/sessions_managers/wt_utils/remote_executor.py,sha256=lApUy67_WhfaBXqt0meZSx_QvwiXjN0YLdyE3c7kP_s,6744
|
|
@@ -422,8 +422,8 @@ machineconfig/utils/schemas/installer/installer_types.py,sha256=QClRY61QaduBPJoS
|
|
|
422
422
|
machineconfig/utils/schemas/layouts/layout_types.py,sha256=TcqlZdGVoH8htG5fHn1KWXhRdPueAcoyApppZsPAPto,2020
|
|
423
423
|
machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
|
|
424
424
|
machineconfig/utils/ssh_utils/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
425
|
-
machineconfig-6.
|
|
426
|
-
machineconfig-6.
|
|
427
|
-
machineconfig-6.
|
|
428
|
-
machineconfig-6.
|
|
429
|
-
machineconfig-6.
|
|
425
|
+
machineconfig-6.29.dist-info/METADATA,sha256=z2p2bK9wcSiMkD-Z2YLRh7AtQlEZcTz7tnf90bM9l6s,3012
|
|
426
|
+
machineconfig-6.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
427
|
+
machineconfig-6.29.dist-info/entry_points.txt,sha256=M0jwN_brZdXWhmNVeXLvdKxfkv8WhhXFZYcuKBA9qnk,418
|
|
428
|
+
machineconfig-6.29.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
|
|
429
|
+
machineconfig-6.29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|