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

@@ -16,10 +16,20 @@ def copy_assets_to_machine(which: Literal["scripts", "settings"]):
16
16
  case "scripts":
17
17
  source = LIBRARY_ROOT.joinpath("scripts", system)
18
18
  target = CONFIG_ROOT.joinpath("scripts", system)
19
+
19
20
  case "settings":
20
21
  source = LIBRARY_ROOT.joinpath("settings")
21
22
  target = CONFIG_ROOT.joinpath("settings")
22
23
  from machineconfig.utils.path_extended import PathExtended
23
24
  PathExtended(source).copy(folder=target.parent, overwrite=True)
25
+ import platform
26
+ system = platform.system().lower()
27
+ if system == "linux" and which == "scripts":
28
+ import subprocess
29
+ from rich.console import Console
30
+ console = Console()
31
+ console.print("\n[bold]📜 Setting executable permissions for scripts...[/bold]")
32
+ subprocess.run(f"chmod +x {CONFIG_ROOT.joinpath(f'scripts/{system.lower()}')} -R", shell=True, capture_output=True, text=True)
33
+ console.print("[green]✅ Script permissions updated[/green]")
24
34
 
25
35
 
@@ -213,11 +213,6 @@ def apply_mapper(mapper_data: dict[str, list[ConfigMapper]],
213
213
  ERROR_LIST.append(e)
214
214
  console.print(f"❌ [red]Error setting SSH permissions[/red]: {e}")
215
215
 
216
- if system == "Linux":
217
- console.print("\n[bold]📜 Setting executable permissions for scripts...[/bold]")
218
- subprocess.run(f"chmod +x {CONFIG_ROOT.joinpath(f'scripts/{system.lower()}')} -R", shell=True, capture_output=True, text=True)
219
- console.print("[green]✅ Script permissions updated[/green]")
220
-
221
216
  # Display operation summary table
222
217
  if operation_records:
223
218
  table = Table(title="🔗 Symlink Operations Summary", show_header=True, header_style="bold magenta")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machineconfig
3
- Version: 5.47
3
+ Version: 5.48
4
4
  Summary: Dotfiles management package
5
5
  Author-email: Alex Al-Saffar <programmer@usa.com>
6
6
  License: Apache 2.0
@@ -94,8 +94,8 @@ machineconfig/jobs/windows/msc/cli_agents.ps1,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
94
94
  machineconfig/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
95
95
  machineconfig/profile/backup.toml,sha256=Hb25sIdKVvLqOF62NgiOpGZxd45I6IhsNHu623RtfQQ,766
96
96
  machineconfig/profile/bash_shell_profiles.md,sha256=mio0xkMTwO-F3fikWIfgcdQaPCmQrmkxJMNtZsTe9TI,514
97
- machineconfig/profile/create_helper.py,sha256=IKUspFNg4LDeQO4t3elt9rI9Hhi8b37ZHqBkyBNU6Qk,1018
98
- machineconfig/profile/create_links.py,sha256=yBqfcujukllbHI1P8M5XDbLXMZ_gb38ZvQK901EPbaA,13962
97
+ machineconfig/profile/create_helper.py,sha256=_iNeuwmcEGTx6sf_f40JKHfOCuJRZQRpyE8Fo_3Q6bI,1519
98
+ machineconfig/profile/create_links.py,sha256=_Tr9Kl8OodU8c45a7f-f8qQecrJZClfZJl7ZoRat_60,13638
99
99
  machineconfig/profile/create_links_export.py,sha256=OEmuJE-F7FZX5xvOl1rqJzHg_BWtPKCiWdrq4RPOobs,3173
100
100
  machineconfig/profile/create_shell_profile.py,sha256=ifsEAK90ovvY7ftyxuY5-Xh8f2JuQYX7IMYUXp6x2Sw,9538
101
101
  machineconfig/profile/mapper.toml,sha256=oXWCWF8yyVHC8FncFqTPiRGgdHAhgGbpS4tYAjKlw3I,12886
@@ -403,8 +403,8 @@ machineconfig/utils/schemas/fire_agents/fire_agents_input.py,sha256=Xbi59rU35AzR
403
403
  machineconfig/utils/schemas/installer/installer_types.py,sha256=QClRY61QaduBPJoSpdmTIdgS9LS-RvE-QZ-D260tD3o,1214
404
404
  machineconfig/utils/schemas/layouts/layout_types.py,sha256=TcqlZdGVoH8htG5fHn1KWXhRdPueAcoyApppZsPAPto,2020
405
405
  machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
406
- machineconfig-5.47.dist-info/METADATA,sha256=qQlk_75QfjpJwXdd1X07K2Lxsthyie6TtawEv1i3m04,3111
407
- machineconfig-5.47.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
408
- machineconfig-5.47.dist-info/entry_points.txt,sha256=z7b9guivf0GSKUG6b8ALgbDoRg2LuPfkGP_p-PxgX9g,469
409
- machineconfig-5.47.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
410
- machineconfig-5.47.dist-info/RECORD,,
406
+ machineconfig-5.48.dist-info/METADATA,sha256=qZhpHqE4_yJoY8G2pSshCCLUE4nI1YZmTuZeg9NjEBQ,3111
407
+ machineconfig-5.48.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
408
+ machineconfig-5.48.dist-info/entry_points.txt,sha256=z7b9guivf0GSKUG6b8ALgbDoRg2LuPfkGP_p-PxgX9g,469
409
+ machineconfig-5.48.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
410
+ machineconfig-5.48.dist-info/RECORD,,