machineconfig 5.28__py3-none-any.whl → 5.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.

@@ -95,13 +95,7 @@ def display_dotfiles_instructions() -> None:
95
95
 
96
96
  def get_installation_choices() -> list[str]:
97
97
  """Get user choices for installation options."""
98
- if platform.system() == "Windows":
99
- choices = []
100
- else:
101
- choices = [
102
- Choice(value="upgrade_system", title="🔄 Upgrade System Package Manager", checked=False),
103
- ]
104
- choices += [
98
+ choices = [
105
99
  Choice(value="install_repos", title="🐍 Install machineconfig.", checked=False),
106
100
  Choice(value="ESSENTIAL_SYSTEM", title="📥 Install Essential System Packages.", checked=False),
107
101
  Choice(value="ESSENTIAL", title="⚡ Install CLI apps essentials", checked=False),
@@ -120,33 +114,18 @@ def get_installation_choices() -> list[str]:
120
114
 
121
115
 
122
116
  def execute_installations(selected_options: list[str]) -> None:
123
- if platform.system() == "Windows":
124
- from machineconfig import setup_windows as module
125
- run_shell_script(module.UV.read_text(encoding="utf-8"))
126
- else:
127
- from machineconfig import setup_linux as module
128
- run_shell_script(module.UV.read_text(encoding="utf-8"))
129
-
130
117
  for maybe_a_group in selected_options:
131
118
  if maybe_a_group in ("ESSENTIAL", "DEV", "ESSENTIAL_SYSTEM", "DEV_SYSTEM", "TerminalEyeCandy"):
132
119
  console.print(Panel("⚡ [bold bright_yellow]CLI APPLICATIONS[/bold bright_yellow]\n[italic]Command-line tools installation[/italic]", border_style="bright_yellow"))
133
120
  console.print("🔧 Installing CLI applications", style="bold cyan")
134
121
  try:
135
122
  from machineconfig.utils.installer_utils.installer import main as devops_devapps_install_main
136
- devops_devapps_install_main(group=maybe_a_group) # type: ignore
123
+ devops_devapps_install_main(group=maybe_a_group, which=None, interactive=False)
137
124
  console.print("✅ CLI applications installed successfully", style="bold green")
138
125
  except Exception as e:
139
126
  console.print(f"❌ Error installing CLI applications: {e}", style="bold red")
140
127
  run_shell_script(". $HOME/.bashrc")
141
128
 
142
- if "upgrade_system" in selected_options:
143
- if platform.system() == "Windows":
144
- console.print("❌ System upgrade is not applicable on Windows via this script.", style="bold red")
145
- elif platform.system() == "Linux":
146
- console.print(Panel("🔄 [bold magenta]SYSTEM UPDATE[/bold magenta]\n[italic]Package management[/italic]", border_style="magenta"))
147
- run_shell_script("sudo nala upgrade -y")
148
- else:
149
- console.print(f"❌ System upgrade not supported on {platform.system()}.", style="bold red")
150
129
  if "install_repos" in selected_options:
151
130
  console.print(Panel("🐍 [bold green]PYTHON ENVIRONMENT[/bold green]\n[italic]Virtual environment setup[/italic]", border_style="green"))
152
131
  if platform.system() == "Windows":
@@ -209,7 +188,7 @@ def main() -> None:
209
188
  if not proceed:
210
189
  console.print("❌ Installation cancelled.", style="bold red")
211
190
  sys.exit(0)
212
- execute_installations(selected_options)
191
+ execute_installations(selected_options=selected_options)
213
192
  display_completion_message()
214
193
 
215
194
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machineconfig
3
- Version: 5.28
3
+ Version: 5.29
4
4
  Summary: Dotfiles management package
5
5
  Author-email: Alex Al-Saffar <programmer@usa.com>
6
6
  License: Apache 2.0
@@ -150,7 +150,7 @@ machineconfig/scripts/python/dotfile.py,sha256=9W9i8Qbs6i2NfTq0knywB3StvE_sHaZYZ
150
150
  machineconfig/scripts/python/fire_jobs.py,sha256=iHcuADhRFlN2wgr7zUV1RAacfUPnnvvOGbEDzFM61gs,13476
151
151
  machineconfig/scripts/python/ftpx.py,sha256=QfQTp-6jQP6yxfbLc5sKxiMtTgAgc8sjN7d17_uLiZc,9400
152
152
  machineconfig/scripts/python/gh_models.py,sha256=3BLfW25mBRiPO5VKtVm-nMlKLv-PaZDw7mObajq6F6M,5538
153
- machineconfig/scripts/python/interactive.py,sha256=jrh_x9YYSfBz3uUAaascGEjc7uxGoMM0KCfoBqtfUpg,12767
153
+ machineconfig/scripts/python/interactive.py,sha256=ApUfnpSIQRm8pRvIKSmoUBlPPJCxr5175ghdzHEEzaw,11750
154
154
  machineconfig/scripts/python/mount_nfs.py,sha256=aECrL64j9g-9rF49sVJAjGmzaoGgcMnl3g9v17kQF4c,3239
155
155
  machineconfig/scripts/python/mount_nw_drive.py,sha256=iru6AtnTyvyuk6WxlK5R4lDkuliVpPV5_uBTVVhXtjQ,1550
156
156
  machineconfig/scripts/python/mount_ssh.py,sha256=k2fKq3f5dKq_7anrFOlqvJoI_3U4EWNHLRZ1o3Lsy6M,2268
@@ -433,8 +433,8 @@ machineconfig/utils/schemas/fire_agents/fire_agents_input.py,sha256=Xbi59rU35AzR
433
433
  machineconfig/utils/schemas/installer/installer_types.py,sha256=QClRY61QaduBPJoSpdmTIdgS9LS-RvE-QZ-D260tD3o,1214
434
434
  machineconfig/utils/schemas/layouts/layout_types.py,sha256=TcqlZdGVoH8htG5fHn1KWXhRdPueAcoyApppZsPAPto,2020
435
435
  machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
436
- machineconfig-5.28.dist-info/METADATA,sha256=lHeBGi9TCKHn9AZGejd2N2kqa8IsEBaEf3-sDdQK3to,2495
437
- machineconfig-5.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
438
- machineconfig-5.28.dist-info/entry_points.txt,sha256=8jXeXoGGihOkQtKV0VYlm6lq5ewDh2eXR_LcccRkbws,999
439
- machineconfig-5.28.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
440
- machineconfig-5.28.dist-info/RECORD,,
436
+ machineconfig-5.29.dist-info/METADATA,sha256=nrWCsYTkePEXwvVHNOuWF5uhf6v-4kO5vXKb7jzrMC8,2495
437
+ machineconfig-5.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
438
+ machineconfig-5.29.dist-info/entry_points.txt,sha256=8jXeXoGGihOkQtKV0VYlm6lq5ewDh2eXR_LcccRkbws,999
439
+ machineconfig-5.29.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
440
+ machineconfig-5.29.dist-info/RECORD,,