machineconfig 3.1__py3-none-any.whl → 3.2__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/profile/create.py +1 -0
- machineconfig/scripts/python/devops.py +1 -2
- machineconfig/scripts/python/devops_devapps_install.py +1 -1
- machineconfig/scripts/python/fire_agents.py +6 -6
- machineconfig/utils/utils2.py +0 -2
- {machineconfig-3.1.dist-info → machineconfig-3.2.dist-info}/METADATA +1 -1
- {machineconfig-3.1.dist-info → machineconfig-3.2.dist-info}/RECORD +10 -10
- {machineconfig-3.1.dist-info → machineconfig-3.2.dist-info}/WHEEL +0 -0
- {machineconfig-3.1.dist-info → machineconfig-3.2.dist-info}/entry_points.txt +0 -0
- {machineconfig-3.1.dist-info → machineconfig-3.2.dist-info}/top_level.txt +0 -0
machineconfig/profile/create.py
CHANGED
|
@@ -62,8 +62,7 @@ def main(which: Optional[str] = None):
|
|
|
62
62
|
elif choice_key == Options.cli_install.value:
|
|
63
63
|
console.print(Panel("⚙️ Installing development applications...", width=BOX_WIDTH, border_style="blue"))
|
|
64
64
|
import machineconfig.scripts.python.devops_devapps_install as helper
|
|
65
|
-
|
|
66
|
-
helper.main()
|
|
65
|
+
helper.main(which=None)
|
|
67
66
|
|
|
68
67
|
elif choice_key == Options.sym_new.value:
|
|
69
68
|
console.print(Panel("🔄 Creating new symlinks...", width=BOX_WIDTH, border_style="blue"))
|
|
@@ -13,7 +13,7 @@ from typing import Any, Optional, Literal, TypeAlias, get_args
|
|
|
13
13
|
WHICH_CAT: TypeAlias = Literal["AllEssentials", "EssentialsAndOthers", "SystemInstallers", "PrecheckedCloudInstaller"]
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def main(which: Optional[WHICH_CAT | str]
|
|
16
|
+
def main(which: Optional[WHICH_CAT | str]) -> None:
|
|
17
17
|
if which is not None and which in get_args(WHICH_CAT): # install by category
|
|
18
18
|
return get_programs_by_category(program_name=which) # type: ignore
|
|
19
19
|
|
|
@@ -146,8 +146,8 @@ manager.run_monitoring_routine()
|
|
|
146
146
|
from machineconfig.cluster.sessions_managers.zellij_local_manager import ZellijLocalManager
|
|
147
147
|
|
|
148
148
|
manager = ZellijLocalManager(session_layouts=layoutfile["layouts"])
|
|
149
|
-
manager.start_all_sessions()
|
|
150
|
-
manager.run_monitoring_routine()
|
|
149
|
+
manager.start_all_sessions(poll_interval=2, poll_seconds=2)
|
|
150
|
+
manager.run_monitoring_routine(wait_ms=2000)
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
def split_too_many_tabs_to_run_in_sequential_sessions(layout_tabs: list[TabConfig], every: int):
|
|
@@ -156,16 +156,16 @@ def split_too_many_tabs_to_run_in_sequential_sessions(layout_tabs: list[TabConfi
|
|
|
156
156
|
for idx, layout_tabs_chunk in enumerate(split(layout_tabs, every=every)):
|
|
157
157
|
a_layout_file: LayoutConfig = {"layoutName": f"split_{idx}", "layoutTabs": layout_tabs_chunk}
|
|
158
158
|
manager = ZellijLocalManager(session_layouts=[a_layout_file])
|
|
159
|
-
manager.start_all_sessions()
|
|
160
|
-
manager.run_monitoring_routine()
|
|
159
|
+
manager.start_all_sessions(poll_interval=2, poll_seconds=2)
|
|
160
|
+
manager.run_monitoring_routine(wait_ms=2000)
|
|
161
161
|
manager.kill_all_sessions()
|
|
162
162
|
def split_too_many_layouts_to_run_in_sequential_sessions(layouts: list[LayoutConfig], every: int):
|
|
163
163
|
from machineconfig.utils.utils2 import split
|
|
164
164
|
from machineconfig.cluster.sessions_managers.zellij_local_manager import ZellijLocalManager
|
|
165
165
|
for _idx, layout_chunk in enumerate(split(layouts, every=every)):
|
|
166
166
|
manager = ZellijLocalManager(session_layouts=layout_chunk)
|
|
167
|
-
manager.start_all_sessions()
|
|
168
|
-
manager.run_monitoring_routine()
|
|
167
|
+
manager.start_all_sessions(poll_interval=2, poll_seconds=2)
|
|
168
|
+
manager.run_monitoring_routine(wait_ms=2000)
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
if __name__ == "__main__": # pragma: no cover
|
machineconfig/utils/utils2.py
CHANGED
|
@@ -44,12 +44,10 @@ def read_ini(path: "Path", encoding: Optional[str] = None):
|
|
|
44
44
|
|
|
45
45
|
def read_json(path: "Path", r: bool = False, **kwargs: Any) -> Any: # return could be list or dict etc
|
|
46
46
|
import json
|
|
47
|
-
|
|
48
47
|
try:
|
|
49
48
|
mydict = json.loads(Path(path).read_text(encoding="utf-8"), **kwargs)
|
|
50
49
|
except Exception:
|
|
51
50
|
import pyjson5
|
|
52
|
-
|
|
53
51
|
mydict = pyjson5.loads(Path(path).read_text(encoding="utf-8"), **kwargs) # file has C-style comments.
|
|
54
52
|
_ = r
|
|
55
53
|
return mydict
|
|
@@ -109,7 +109,7 @@ machineconfig/jobs/windows/archive/openssh-server_copy-ssh-id.ps1,sha256=-7pElYi
|
|
|
109
109
|
machineconfig/jobs/windows/msc/cli_agents.bat,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
110
110
|
machineconfig/jobs/windows/msc/cli_agents.ps1,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
111
111
|
machineconfig/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
112
|
-
machineconfig/profile/create.py,sha256=
|
|
112
|
+
machineconfig/profile/create.py,sha256=jeJT92dHjD8B14_uUkpvi7TyPkAjarbw4dJAzZqfhAo,6464
|
|
113
113
|
machineconfig/profile/shell.py,sha256=HIMJvl-HZ8za7gbZn_vLZV0R6qjwcNfRFLK2bJ8ig-4,9206
|
|
114
114
|
machineconfig/profile/records/generic/shares.toml,sha256=FduDztfyQtZcr5bfx-RSKhEEweweQSWfVXkKWnx8hCY,143
|
|
115
115
|
machineconfig/profile/records/linux/apps_summary_report.csv,sha256=pw9djvaRUPalKDLn2sl3odcbD2_Zx3aEupsQ8UPfaaY,2738
|
|
@@ -162,14 +162,14 @@ machineconfig/scripts/python/cloud_mount.py,sha256=l2vi_j3OvhACv249slXqQbYzP8df4
|
|
|
162
162
|
machineconfig/scripts/python/cloud_repo_sync.py,sha256=cNznrOoy-kuTdcxBx1T8EipMDvmT-frq4IV5EosuVmE,9941
|
|
163
163
|
machineconfig/scripts/python/cloud_sync.py,sha256=RfgrEPGg_LrIaY3hfLDHsK8blrZvyPsoN66X0Z3WeCw,3859
|
|
164
164
|
machineconfig/scripts/python/croshell.py,sha256=6i9wUuTbbp0Miu2ZKMNyVsV4XLgkJ5YNdQkLHya2ECs,9510
|
|
165
|
-
machineconfig/scripts/python/devops.py,sha256=
|
|
165
|
+
machineconfig/scripts/python/devops.py,sha256=URi2XIAWupWxQe4NoYK_Xi-bBVVjUj6vHISHOl4DNKk,6201
|
|
166
166
|
machineconfig/scripts/python/devops_add_identity.py,sha256=FmwI3MYm5_9bIP21OffwmyOhilLnCbCbjD8KzPJIR_E,4067
|
|
167
167
|
machineconfig/scripts/python/devops_add_ssh_key.py,sha256=dcU3WqyJpEJLGK6CNUUGswo4PsZamXGYyt_vTiNOCjA,6950
|
|
168
168
|
machineconfig/scripts/python/devops_backup_retrieve.py,sha256=_nSNkCrJ0a99KjWQg-2Q6eLQ3xPyaxJrUmoXpnJXzEg,5564
|
|
169
|
-
machineconfig/scripts/python/devops_devapps_install.py,sha256=
|
|
169
|
+
machineconfig/scripts/python/devops_devapps_install.py,sha256=ziZ8n-VM3BFVIWSHcYnRWZXWFTMisn5bddDdf_K2bL0,8559
|
|
170
170
|
machineconfig/scripts/python/devops_update_repos.py,sha256=XZRV0_V_eKWph3fVtExKAayXhG6-svGu9UmJOh5yF-U,8066
|
|
171
171
|
machineconfig/scripts/python/dotfile.py,sha256=miL8mQH2AqPdnHSz0Cxa7qQavaOmzTD9DAF66H2PRzA,2259
|
|
172
|
-
machineconfig/scripts/python/fire_agents.py,sha256=
|
|
172
|
+
machineconfig/scripts/python/fire_agents.py,sha256=J4CadaxCnnLjUdtjyjMT2V_yqTvavPskNt3b2GYS4FI,9034
|
|
173
173
|
machineconfig/scripts/python/fire_agents_help_launch.py,sha256=vTQWEm1TZEEtI6f_I0ZxLsfZY7YWwcdDvJs4GBgmrsE,6127
|
|
174
174
|
machineconfig/scripts/python/fire_agents_help_search.py,sha256=qIfSS_su2YJ1Gb0_lu4cbjlJlYMBw0v52NTGiSrGjk8,2991
|
|
175
175
|
machineconfig/scripts/python/fire_agents_load_balancer.py,sha256=QPiCbQq9j5REHStPdYqQcGNkz_rp5CjotqOpMY3v5TM,2099
|
|
@@ -388,7 +388,7 @@ machineconfig/utils/source_of_truth.py,sha256=GnjcVkKm11RyZFHGnPbne5YDEBYoZ5yryB
|
|
|
388
388
|
machineconfig/utils/ssh.py,sha256=1FTu1joRciyioQ-KSn_IeZYsyOt1KIGHXS81fjBPY9U,21090
|
|
389
389
|
machineconfig/utils/terminal.py,sha256=k3xoMwJPGvmaeL9CxEIwrcQjRNN6EnJItoIIxXrUY8c,12258
|
|
390
390
|
machineconfig/utils/upgrade_packages.py,sha256=H96zVJEWXJW07nh5vhjuSCrPtXGqoUb7xeJsFYYdmCI,3330
|
|
391
|
-
machineconfig/utils/utils2.py,sha256=
|
|
391
|
+
machineconfig/utils/utils2.py,sha256=6u790Np0xDmYCKnxUHrnuBGwRhvEnkqD7hkl1BjdjG8,2971
|
|
392
392
|
machineconfig/utils/utils5.py,sha256=s2NFUBcm4Jeuet8sUC7WKGSrYT4BnqTog39bsynXLik,15166
|
|
393
393
|
machineconfig/utils/ve.py,sha256=Qbpg6iu5kFI_IdVe7p_UvAw55O0MYQGs8oC4AdI0fpw,2764
|
|
394
394
|
machineconfig/utils/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -401,8 +401,8 @@ machineconfig/utils/installer_utils/installer_class.py,sha256=3jknokPmaN4LuBR5n6
|
|
|
401
401
|
machineconfig/utils/schemas/fire_agents/fire_agents_input.py,sha256=CCs5ebomW1acKWZRpv9dyDzM-W6pwvVplikcutE2D8I,2339
|
|
402
402
|
machineconfig/utils/schemas/layouts/layout_types.py,sha256=OmiOX9xtakPz4l6IobWnpFHpbn95fitEE9q0YL1WxjQ,617
|
|
403
403
|
machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
|
|
404
|
-
machineconfig-3.
|
|
405
|
-
machineconfig-3.
|
|
406
|
-
machineconfig-3.
|
|
407
|
-
machineconfig-3.
|
|
408
|
-
machineconfig-3.
|
|
404
|
+
machineconfig-3.2.dist-info/METADATA,sha256=DLVMoEHr417RCJZ47719pL_IJHoz50i2HqIivmp6nkA,7048
|
|
405
|
+
machineconfig-3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
406
|
+
machineconfig-3.2.dist-info/entry_points.txt,sha256=nBemaVdIfKeDNH11op15aSDIqP_nWxas8JSm0XFoidc,1023
|
|
407
|
+
machineconfig-3.2.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
|
|
408
|
+
machineconfig-3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|