machineconfig 5.56__py3-none-any.whl → 5.58__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/jobs/installer/linux_scripts/q.sh +1 -0
- machineconfig/utils/code.py +1 -2
- machineconfig/utils/installer_utils/installer_class.py +4 -4
- {machineconfig-5.56.dist-info → machineconfig-5.58.dist-info}/METADATA +1 -1
- {machineconfig-5.56.dist-info → machineconfig-5.58.dist-info}/RECORD +8 -8
- {machineconfig-5.56.dist-info → machineconfig-5.58.dist-info}/WHEEL +0 -0
- {machineconfig-5.56.dist-info → machineconfig-5.58.dist-info}/entry_points.txt +0 -0
- {machineconfig-5.56.dist-info → machineconfig-5.58.dist-info}/top_level.txt +0 -0
machineconfig/utils/code.py
CHANGED
|
@@ -113,9 +113,7 @@ def run_shell_script(script: str, display_script: bool = True, clean_env: bool =
|
|
|
113
113
|
if display_script:
|
|
114
114
|
from rich.syntax import Syntax
|
|
115
115
|
console.print(Panel(Syntax(code=script, lexer=lexer), title=f"📄 shell script @ {temp_script_path}", subtitle="shell script being executed"), style="bold red")
|
|
116
|
-
|
|
117
116
|
env = {} if clean_env else None
|
|
118
|
-
|
|
119
117
|
if platform.system() == "Windows":
|
|
120
118
|
import subprocess
|
|
121
119
|
proc = subprocess.run(f'powershell -ExecutionPolicy Bypass -File "{temp_script_path}"', check=True, shell=True, env=env)
|
|
@@ -133,6 +131,7 @@ def run_shell_script(script: str, display_script: bool = True, clean_env: bool =
|
|
|
133
131
|
console.print(f"⚠️ [yellow]Script executed with warnings (return code {proc.returncode}):[/yellow] [blue]{temp_script_path}[/blue]")
|
|
134
132
|
temp_script_path.unlink(missing_ok=True)
|
|
135
133
|
console.print(f"🗑️ [blue]Temporary script deleted:[/blue] [green]{temp_script_path}[/green]")
|
|
134
|
+
return proc
|
|
136
135
|
|
|
137
136
|
|
|
138
137
|
# def run_command(command: str, description: str) -> bool:
|
|
@@ -39,9 +39,7 @@ class Installer:
|
|
|
39
39
|
result_old = subprocess.run(f"{exe_name} --version", shell=True, capture_output=True, text=True)
|
|
40
40
|
old_version_cli = result_old.stdout.strip()
|
|
41
41
|
print(f"📊 Current version: {old_version_cli or 'Not installed'}")
|
|
42
|
-
|
|
43
42
|
self.install(version=version)
|
|
44
|
-
|
|
45
43
|
result_new = subprocess.run(f"{exe_name} --version", shell=True, capture_output=True, text=True)
|
|
46
44
|
new_version_cli = result_new.stdout.strip()
|
|
47
45
|
print(f"📊 New version: {new_version_cli}")
|
|
@@ -77,8 +75,10 @@ class Installer:
|
|
|
77
75
|
desc = package_manager + " installation"
|
|
78
76
|
version_to_be_installed = package_manager + "Latest"
|
|
79
77
|
print(f"🚀 Running: {installer_arch_os}")
|
|
80
|
-
result = subprocess.run(installer_arch_os, shell=True, capture_output=True, text=True)
|
|
81
|
-
|
|
78
|
+
# result = subprocess.run(installer_arch_os, shell=True, capture_output=True, text=True)
|
|
79
|
+
from machineconfig.utils.code import run_shell_script
|
|
80
|
+
result = run_shell_script(installer_arch_os)
|
|
81
|
+
success = result.returncode == 0 and result.stderr == "".encode()
|
|
82
82
|
if not success:
|
|
83
83
|
print(f"❌ {desc} failed")
|
|
84
84
|
if result.stdout:
|
|
@@ -72,7 +72,7 @@ machineconfig/jobs/installer/linux_scripts/edge.sh,sha256=f1UI2Z2s0ToZ-QGlzkS1Th
|
|
|
72
72
|
machineconfig/jobs/installer/linux_scripts/nerdfont.sh,sha256=ute9wl4BcqHUqavVHWJlnMcmugdb50LbnUVlU0cUVso,1475
|
|
73
73
|
machineconfig/jobs/installer/linux_scripts/ngrok.sh,sha256=K-t62nhnAHxhppTmqjubIJRHozkNHfBxXGbn1Oz3w-A,287
|
|
74
74
|
machineconfig/jobs/installer/linux_scripts/pgsql.sh,sha256=FbIteF6RVCcDdHl8seFFO7FuAX9siZpkwr9WVeKn5NA,1655
|
|
75
|
-
machineconfig/jobs/installer/linux_scripts/q.sh,sha256=
|
|
75
|
+
machineconfig/jobs/installer/linux_scripts/q.sh,sha256=lPSHBeZm4z6xv5K3cYPiOkK0A-LaNSNJN2ysVb1Qa9Y,261
|
|
76
76
|
machineconfig/jobs/installer/linux_scripts/redis.sh,sha256=GbElaDpkICLL6_XnkPev0UPZm4wQ8euGoOmrX2okneg,2064
|
|
77
77
|
machineconfig/jobs/installer/linux_scripts/timescaledb.sh,sha256=PTvo7KBpyxmWdpVoBK4cuPJ5slxJIPlVTfGQYnvKEQg,2508
|
|
78
78
|
machineconfig/jobs/installer/linux_scripts/vscode.sh,sha256=fI6lNCWUjlstNE319Y-rUtimvLLb9GcNh3z9t1KRaaE,4541
|
|
@@ -368,7 +368,7 @@ machineconfig/setup_windows/wt_and_pwsh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5J
|
|
|
368
368
|
machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py,sha256=ogxJnwpdcpH7N6dFJu95UCNoGYirZKQho_3X0F_hmXs,6791
|
|
369
369
|
machineconfig/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
370
370
|
machineconfig/utils/accessories.py,sha256=W_9dLzjwNTW5JQk_pe3B2ijQ1nA2-8Kdg2r7VBtzgQs,4340
|
|
371
|
-
machineconfig/utils/code.py,sha256=
|
|
371
|
+
machineconfig/utils/code.py,sha256=mbP3bk7-4p__yfzXYaNLuoJ2AjBT2RWiZxqHmzyTLhY,6503
|
|
372
372
|
machineconfig/utils/installer.py,sha256=ZnhW_gRmGlq5uXwzNvIn-x1vXuOJxkzVqjNu188f37s,10465
|
|
373
373
|
machineconfig/utils/io.py,sha256=rzEwAnq-gyT29Y4CDHHGxAA6ddIIFOCxrqZ6dn0ALa4,2255
|
|
374
374
|
machineconfig/utils/links.py,sha256=KM6vIn3hag9FYEzLSHP5MAM9tU_RStw2mCq2_OvmmZA,23672
|
|
@@ -399,13 +399,13 @@ machineconfig/utils/installer_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
|
|
|
399
399
|
machineconfig/utils/installer_utils/github_release_bulk.py,sha256=WJf_qZlF02SmIc6C7o1h4Gy4gAaJAfeAS8O9s2Itj-k,6535
|
|
400
400
|
machineconfig/utils/installer_utils/installer.py,sha256=A1lAZNUFS1_MyJbpFdomiPbKCLVBknmWbwojs0C7F7Y,9695
|
|
401
401
|
machineconfig/utils/installer_utils/installer_abc.py,sha256=ZoMtINHD9cHEu4R5SYUWgHLTAqo4F2a33pBrEOGX4zs,11693
|
|
402
|
-
machineconfig/utils/installer_utils/installer_class.py,sha256=
|
|
402
|
+
machineconfig/utils/installer_utils/installer_class.py,sha256=UU0ccaNWY16a-ErySkXnxzWnmhPesHNRhfPIVVPtzKA,18363
|
|
403
403
|
machineconfig/utils/schemas/fire_agents/fire_agents_input.py,sha256=Xbi59rU35AzR7HZZ8ZQ8aUu_FjSgijNqc8Sme0rCk2Y,2050
|
|
404
404
|
machineconfig/utils/schemas/installer/installer_types.py,sha256=QClRY61QaduBPJoSpdmTIdgS9LS-RvE-QZ-D260tD3o,1214
|
|
405
405
|
machineconfig/utils/schemas/layouts/layout_types.py,sha256=TcqlZdGVoH8htG5fHn1KWXhRdPueAcoyApppZsPAPto,2020
|
|
406
406
|
machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
|
|
407
|
-
machineconfig-5.
|
|
408
|
-
machineconfig-5.
|
|
409
|
-
machineconfig-5.
|
|
410
|
-
machineconfig-5.
|
|
411
|
-
machineconfig-5.
|
|
407
|
+
machineconfig-5.58.dist-info/METADATA,sha256=X48S6FOAqCkiyheUDfHFb8aZK41ePKejj6zv6dnqXGo,3103
|
|
408
|
+
machineconfig-5.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
409
|
+
machineconfig-5.58.dist-info/entry_points.txt,sha256=0zMBUFkDgYw5mB3ASxpONEjTFMAXAkTFHHfAr5c1SKg,423
|
|
410
|
+
machineconfig-5.58.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
|
|
411
|
+
machineconfig-5.58.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|