machineconfig 6.27__py3-none-any.whl → 6.28__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.

@@ -29,26 +29,18 @@ def get_fire_command_and_artifact_files_v2(func: FunctionType):
29
29
  return tab_config
30
30
 
31
31
 
32
- def make_layout_from_functions(functions: list[FunctionType | TabConfig], layout_name: str, method: Literal["script", "fire"]="fire") -> LayoutConfig:
33
- tabs2artifacts: dict[TabConfig, list[Path]] = {}
32
+ def make_layout_from_functions(functions: list[FunctionType], tab_configs: list[TabConfig], layout_name: str, method: Literal["script", "fire"]="fire") -> LayoutConfig:
33
+ tabs2artifacts: list[tuple[TabConfig, list[Path]]] = []
34
34
  for a_func in functions:
35
35
  match method:
36
36
  case "script":
37
- if isinstance(a_func, dict):
38
- tab_config = a_func
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]
37
+ tab_config, artifact_files_1 = get_fire_command_and_artifact_files(a_func)
38
+ artifact_files = [artifact_files_1]
43
39
  case "fire":
44
- if isinstance(a_func, dict):
45
- tab_config = a_func
46
- artifact_files = []
47
- else:
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())
40
+ tab_config = get_fire_command_and_artifact_files_v2(a_func)
41
+ artifact_files = []
42
+ tabs2artifacts.append((tab_config, artifact_files))
43
+ list_of_tabs = [tab for tab, _ in tabs2artifacts] + tab_configs
52
44
  layout_config: LayoutConfig = {
53
45
  "layoutName": layout_name,
54
46
  "layoutTabs": list_of_tabs,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machineconfig
3
- Version: 6.27
3
+ Version: 6.28
4
4
  Summary: Dotfiles management package
5
5
  Author-email: Alex Al-Saffar <programmer@usa.com>
6
6
  License: Apache 2.0
@@ -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=ipdYD9FRfJNlTwLfUMk5FIHG6rAyYoySe9REfliKpjk,2293
28
+ machineconfig/cluster/sessions_managers/utils/maker.py,sha256=3NMX0uTxdJ_ZVp5APIuwaO1gwEWMwV1EMjm1D0P10Zk,2037
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.27.dist-info/METADATA,sha256=wbly5SP3vnMGNmDtdGSAp2VRh4lCzf2U1N4v2R_5tHE,3012
426
- machineconfig-6.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
427
- machineconfig-6.27.dist-info/entry_points.txt,sha256=M0jwN_brZdXWhmNVeXLvdKxfkv8WhhXFZYcuKBA9qnk,418
428
- machineconfig-6.27.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
429
- machineconfig-6.27.dist-info/RECORD,,
425
+ machineconfig-6.28.dist-info/METADATA,sha256=Zb73uNmI8s8vLmWHBQhFnYl2ZwF2W8Fhk7eceiiIM0Y,3012
426
+ machineconfig-6.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
427
+ machineconfig-6.28.dist-info/entry_points.txt,sha256=M0jwN_brZdXWhmNVeXLvdKxfkv8WhhXFZYcuKBA9qnk,418
428
+ machineconfig-6.28.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
429
+ machineconfig-6.28.dist-info/RECORD,,