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

@@ -59,16 +59,12 @@ def capture(directory: DirectoryArgument = None, cloud: CloudOption = None) -> N
59
59
  def clone(directory: DirectoryArgument = None, cloud: CloudOption = None) -> None:
60
60
  """📥 Clone repositories described by a repos.json specification."""
61
61
  from machineconfig.scripts.python.repos_helpers.entrypoint import clone_from_specs
62
-
63
-
64
62
  clone_from_specs(directory, cloud, checkout_branch_flag=False, checkout_commit_flag=False)
65
63
 
66
64
 
67
65
  def checkout_command(directory: DirectoryArgument = None, cloud: CloudOption = None) -> None:
68
66
  """🔀 Check out specific commits listed in the specification."""
69
- from machineconfig.scripts.python.repos_helpers.entrypoint import clone_from_specs
70
-
71
-
67
+ from machineconfig.scripts.python.repos_helpers.entrypoint import clone_from_specs
72
68
  clone_from_specs(directory, cloud, checkout_branch_flag=False, checkout_commit_flag=True)
73
69
 
74
70
 
@@ -82,7 +78,6 @@ def analyze(directory: DirectoryArgument = None) -> None:
82
78
  """📊 Analyze repository development over time."""
83
79
  repo_path = directory if directory is not None else "."
84
80
  from machineconfig.scripts.python.repos_helpers.count_lines_frontend import analyze_repo_development
85
-
86
81
  analyze_repo_development(repo_path=repo_path)
87
82
 
88
83
 
@@ -23,11 +23,10 @@ def update(copy_assets: Annotated[bool, typer.Option(..., "--copy-assets", "-c",
23
23
  import platform
24
24
  if platform.system() == "Windows":
25
25
  from machineconfig.utils.code import run_shell_script_after_exit
26
- if copy_assets:
27
- code += """
28
- devops self copy-assets both
29
- """
30
26
  run_shell_script_after_exit(code)
27
+ from machineconfig.profile.create_helper import copy_assets_to_machine
28
+ copy_assets_to_machine(which="scripts")
29
+ copy_assets_to_machine(which="settings")
31
30
  else:
32
31
  from machineconfig.utils.code import run_shell_script
33
32
  run_shell_script(code)
@@ -8,7 +8,7 @@ from git.exc import GitCommandError
8
8
  from rich import print as pprint
9
9
  from rich.progress import BarColumn, MofNCompleteColumn, Progress, SpinnerColumn, TextColumn, TimeElapsedColumn
10
10
 
11
- from machineconfig.utils.schemas.repos.repos_types import RepoRecordDict, RepoRemote
11
+ from machineconfig.utils.schemas.repos.repos_types import RepoRecordDict, RepoRecordFile, RepoRemote
12
12
  from machineconfig.utils.io import read_json
13
13
 
14
14
 
@@ -95,7 +95,8 @@ def clone_single_repo(repo_spec: RepoRecordDict, preferred_remote: Optional[str]
95
95
 
96
96
 
97
97
  def clone_repos(spec_path: Path, preferred_remote: Optional[str], checkout_branch_flag: bool, checkout_commit_flag: bool) -> list[tuple[CloneStatus, str]]:
98
- repos = cast(list[RepoRecordDict], read_json(path=spec_path))
98
+ spec_file = cast(RepoRecordFile, read_json(path=spec_path))
99
+ repos = spec_file["repos"]
99
100
  results: list[tuple[CloneStatus, str]] = []
100
101
  with Progress(SpinnerColumn(), TextColumn("[progress.description]{task.description}"), BarColumn(), MofNCompleteColumn(), TimeElapsedColumn()) as progress:
101
102
  task_id = progress.add_task("Processing repositories...", total=len(repos))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machineconfig
3
- Version: 6.21
3
+ Version: 6.23
4
4
  Summary: Dotfiles management package
5
5
  Author-email: Alex Al-Saffar <programmer@usa.com>
6
6
  License: Apache 2.0
@@ -177,8 +177,8 @@ machineconfig/scripts/python/devops_helpers/cli_config.py,sha256=yyzfxOKC1k6YRWE
177
177
  machineconfig/scripts/python/devops_helpers/cli_config_dotfile.py,sha256=rjTys4FNf9_feP9flWM7Zvq17dxWmetSiGaHPxp25nk,2737
178
178
  machineconfig/scripts/python/devops_helpers/cli_data.py,sha256=kvJ7g2CccjjXIhCwdu_Vlif8JHC0qUoLjuGcTSqT-IU,514
179
179
  machineconfig/scripts/python/devops_helpers/cli_nw.py,sha256=nI_zmcmUvijVeXIWT2dN5onoy3ou-lub1cL-SJImmDA,4125
180
- machineconfig/scripts/python/devops_helpers/cli_repos.py,sha256=GEsW0ykgu8mtoiXurOSjOlbY_Xrngy_aeBq4eRZY8ts,12335
181
- machineconfig/scripts/python/devops_helpers/cli_self.py,sha256=oBci1GDFyA43ZHu04VpjuBq6MnfCIOKpp5dK7-NxRdw,5638
180
+ machineconfig/scripts/python/devops_helpers/cli_repos.py,sha256=pQHG3hc7_39IqNEx9pknyLNVLsoDHcMpUniCqCmafO4,12326
181
+ machineconfig/scripts/python/devops_helpers/cli_self.py,sha256=PCTAOX5K4WBFWQ_ZRcLKyyHpsPH93Ou4RY56Cp1Xu_U,5733
182
182
  machineconfig/scripts/python/devops_helpers/cli_share_server.py,sha256=q9pFJ6AxPuygMr3onMNOKEuuQHbVE_6Qoyo7xRT5FX0,4196
183
183
  machineconfig/scripts/python/devops_helpers/cli_terminal.py,sha256=k_PzXaiGyE0vXr0Ii1XcJz2A7UvyPJrR31TRWt4RKRI,6019
184
184
  machineconfig/scripts/python/devops_helpers/devops_backup_retrieve.py,sha256=nK47Rc7gQuDCnkk6_sW1y82gBnDJ9TdHU8XwMPFBK9c,5591
@@ -238,7 +238,7 @@ machineconfig/scripts/python/nw/ssh_debug_windows.py,sha256=2prJs3PMsoAUu5LlZhHI
238
238
  machineconfig/scripts/python/nw/wifi_conn.py,sha256=4GdLhgma9GRmZ6OFg3oxOX-qY3sr45njPckozlpM_A0,15566
239
239
  machineconfig/scripts/python/nw/wsl_windows_transfer.py,sha256=1ab9l-8MtAxofW5nGH9G2-BjlszaiLETu6WBECcNNhA,3546
240
240
  machineconfig/scripts/python/repos_helpers/action.py,sha256=pl0U53FAGoH2yk-CGNIy3aggImXY5ZVz28-XVFHDvfA,14862
241
- machineconfig/scripts/python/repos_helpers/clone.py,sha256=5Dm6xWFWl6BZlx-l6fRbYYNsIktLntG090D7NM2Hs0M,5426
241
+ machineconfig/scripts/python/repos_helpers/clone.py,sha256=UULEG5xJuXlPGU0nqXH6U45jA9DOFqLw8B4iPytCwOQ,5471
242
242
  machineconfig/scripts/python/repos_helpers/count_lines.py,sha256=Q5c7b-DxvTlQmljoic7niTuiAVyFlwYvkVQ7uRJHiTo,16009
243
243
  machineconfig/scripts/python/repos_helpers/count_lines_frontend.py,sha256=KkkecMNXssfwBK9nLEXZgilq_DME1ah325MTRV6-z2c,607
244
244
  machineconfig/scripts/python/repos_helpers/entrypoint.py,sha256=UagEar85QCAXX7oOqJjDJp2Vds5UQxehYPmckL_S0oI,2836
@@ -421,8 +421,8 @@ machineconfig/utils/schemas/installer/installer_types.py,sha256=QClRY61QaduBPJoS
421
421
  machineconfig/utils/schemas/layouts/layout_types.py,sha256=TcqlZdGVoH8htG5fHn1KWXhRdPueAcoyApppZsPAPto,2020
422
422
  machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
423
423
  machineconfig/utils/ssh_utils/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
424
- machineconfig-6.21.dist-info/METADATA,sha256=tzjcaDIUa8tGua1LDhs9QcjHaMv40D2_UC5IIQA6g_Q,3012
425
- machineconfig-6.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
426
- machineconfig-6.21.dist-info/entry_points.txt,sha256=M0jwN_brZdXWhmNVeXLvdKxfkv8WhhXFZYcuKBA9qnk,418
427
- machineconfig-6.21.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
428
- machineconfig-6.21.dist-info/RECORD,,
424
+ machineconfig-6.23.dist-info/METADATA,sha256=ELfi_JmMdKtA7FOkTimiWrp5cDzNtjwCqkxsdIAxnOo,3012
425
+ machineconfig-6.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
426
+ machineconfig-6.23.dist-info/entry_points.txt,sha256=M0jwN_brZdXWhmNVeXLvdKxfkv8WhhXFZYcuKBA9qnk,418
427
+ machineconfig-6.23.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
428
+ machineconfig-6.23.dist-info/RECORD,,