ruyi 0.42.0a20250922__py3-none-any.whl → 0.42.0a20251005__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.
ruyi/cli/main.py CHANGED
@@ -21,7 +21,12 @@ def is_called_as_ruyi(argv0: str) -> bool:
21
21
  return os.path.basename(argv0).lower() in ALLOWED_RUYI_ENTRYPOINT_NAMES
22
22
 
23
23
 
24
+ def should_prompt_for_renaming(argv0: str) -> bool:
25
+ return os.path.basename(argv0).lower().startswith(f"{RUYI_ENTRYPOINT_NAME}-")
26
+
27
+
24
28
  def main(gm: GlobalModeProvider, gc: GlobalConfig, argv: list[str]) -> int:
29
+ logger = gc.logger
25
30
  oobe = OOBE(gc)
26
31
 
27
32
  if tm := gc.telemetry:
@@ -33,6 +38,14 @@ def main(gm: GlobalModeProvider, gc: GlobalConfig, argv: list[str]) -> int:
33
38
  oobe.maybe_prompt()
34
39
 
35
40
  if not is_called_as_ruyi(gm.argv0):
41
+ if should_prompt_for_renaming(gm.argv0):
42
+ logger.F(
43
+ f"the {RUYI_ENTRYPOINT_NAME} executable must be named [green]'{RUYI_ENTRYPOINT_NAME}'[/] to work"
44
+ )
45
+ logger.I(f"it is now [yellow]'{gm.argv0}'[/]")
46
+ logger.I("please rename the command file and retry")
47
+ return 1
48
+
36
49
  from ..mux.runtime import mux_main
37
50
 
38
51
  # record an invocation and the command name being proxied to
@@ -54,7 +67,6 @@ def main(gm: GlobalModeProvider, gc: GlobalConfig, argv: list[str]) -> int:
54
67
  if TYPE_CHECKING:
55
68
  from .cmd import CLIEntrypoint
56
69
 
57
- logger = gc.logger
58
70
  p = RootCommand.build_argparse(gc)
59
71
 
60
72
  # We have to ensure argcomplete is only requested when it's supposed to,
ruyi/ruyipkg/repo.py CHANGED
@@ -284,7 +284,10 @@ class MetadataRepo(ProvidesPackageManifests):
284
284
  self.repo = Repository(self.root)
285
285
  return self.repo
286
286
 
287
- self.logger.D(f"{self.root} does not exist, cloning from {self.remote}")
287
+ self.logger.I(
288
+ f"the package repository does not exist at [yellow]{self.root}[/]"
289
+ )
290
+ self.logger.I(f"cloning from [cyan link={self.remote}]{self.remote}[/]")
288
291
 
289
292
  with RemoteGitProgressIndicator() as pr:
290
293
  repo = clone_repository(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ruyi
3
- Version: 0.42.0a20250922
3
+ Version: 0.42.0a20251005
4
4
  Summary: Package manager for RuyiSDK
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -6,7 +6,7 @@ ruyi/cli/cmd.py,sha256=kR3aEiDE3AfPoP0Zr7MO-09CKoExbkLLmPvve9oKaUg,6725
6
6
  ruyi/cli/completer.py,sha256=cnOkU7veDe-jP8ROXZL2uBop2HgWfaAZl6dromnPLx8,1426
7
7
  ruyi/cli/completion.py,sha256=ffLs3Dv7pY_uinwH98wkBPohRvAjpUOGqy01OTA_Bgo,841
8
8
  ruyi/cli/config_cli.py,sha256=IMsUEs1iiFCvGLdGAVByMxwjNiP4IMZammkUMs0nFio,3497
9
- ruyi/cli/main.py,sha256=3_0ZPrQh5LJSe73UM4zP6FYw8NCG5ayT2sWf-6xUqL8,3382
9
+ ruyi/cli/main.py,sha256=x3L_EQ1sb2F3JK5bY-4iH59pJUk93KWZAjyj-gAG8-g,3863
10
10
  ruyi/cli/oobe.py,sha256=fpzNukwpT16CSqAobClC615Fii7GFDYc5g5ArZMur1A,2463
11
11
  ruyi/cli/self_cli.py,sha256=opDHVpvgg0AgZdzi7kEY73_jwV6LRjtIpdgsFkRL1hI,8668
12
12
  ruyi/cli/user_input.py,sha256=ZJPyCAD7Aizkt37f_KDtW683aKvGZ2pL85Rg_y1LLfg,3711
@@ -20,7 +20,6 @@ ruyi/device/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  ruyi/device/provision.py,sha256=0Lywhs9_sLMG21DRMP1DyijYFIB4k4-xYYNJikH8qcs,20902
21
21
  ruyi/device/provision_cli.py,sha256=sc6AF8ohWrXA-kIAYdZcD6sl1HHbj_dH2cCi-pjjOQg,1031
22
22
  ruyi/log/__init__.py,sha256=ehgUl8iY1oRfP_nJKrln5lnvJFSPPU1J-3g-PK28YWk,6516
23
- ruyi/mux/.gitignore,sha256=qszWGLxNyQrD4ZOh1D_CXo6rGCLfIApDlNVm28J7Hww,6
24
23
  ruyi/mux/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
24
  ruyi/mux/runtime.py,sha256=_d7p-4w2bA2jgCsgcEZxiV1HPnJqdFp0cy4uMGNBsd8,7116
26
25
  ruyi/mux/venv/__init__.py,sha256=D_1H2rk3YeNiS_yfU5ie78vQBNXSQ2fKexUC2AiprNE,305
@@ -65,7 +64,7 @@ ruyi/ruyipkg/pkg_manifest.py,sha256=FmksKjQyBnU4zA3MFXiHdB2EjNmhs-J9km9vE-zBQlk,
65
64
  ruyi/ruyipkg/profile.py,sha256=FVppmA6x12m3JfeAWd3Vl9osk4aBprZL4ff7akO018Q,6467
66
65
  ruyi/ruyipkg/profile_cli.py,sha256=ud9MS9JQLOtec_1tFRu669I-imVfi1DHU3AuBJym9mw,848
67
66
  ruyi/ruyipkg/protocols.py,sha256=lPKRaAcK3DY3wmkyO2tKpFvPQ_4QA4aSNNsNLvi78O8,1833
68
- ruyi/ruyipkg/repo.py,sha256=l5IdvpCbIjgakzACJEMUH5oRmD1lopNHwSoHomWkeEk,25052
67
+ ruyi/ruyipkg/repo.py,sha256=cdqEkeFgCnPieynyoZlp_19BAExBZnCWuD3kE1NQ6JA,25164
69
68
  ruyi/ruyipkg/state.py,sha256=3DRYyHvm_GOvKFVWZUV0iFVnXdK2vn6_RKBXKxFzK64,11235
70
69
  ruyi/ruyipkg/unpack.py,sha256=X_MKcxU1bcgIM-th1--CUfmnjQOFp-EqWWpvk27YttA,11028
71
70
  ruyi/ruyipkg/unpack_method.py,sha256=MonFFvcDb7MVsi2w4yitnCeZkmWmS7nRMMY-wSt9AMs,2106
@@ -96,8 +95,8 @@ ruyi/utils/toml.py,sha256=ri97Ki0xhBwoDtrjngCc6hlPXuEsma1ShPFFuFMYqpA,3192
96
95
  ruyi/utils/url.py,sha256=Wyct6syS4GmZC6mY7SK-YgBWxKl3cOOBXtp9UtvGkto,186
97
96
  ruyi/utils/xdg_basedir.py,sha256=vd9p-JZru2DkXvt_W3gCS1_Wj4QkuftErI1MLPaBiz4,2478
98
97
  ruyi/version.py,sha256=KLJkvKexU07mu-GVDbYKsQvReRvwlVFYkRmcvnyfQNY,2142
99
- ruyi-0.42.0a20250922.dist-info/METADATA,sha256=9Oz97e5gP5FjAoNWtpf5g0jpXhCsCpOslyg26J9QAwg,23892
100
- ruyi-0.42.0a20250922.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
101
- ruyi-0.42.0a20250922.dist-info/entry_points.txt,sha256=GXSNSy7OgFrnlU5xm5dE3l3PGO92Qf6VDIUCdvQNm8E,49
102
- ruyi-0.42.0a20250922.dist-info/licenses/LICENSE-Apache.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
103
- ruyi-0.42.0a20250922.dist-info/RECORD,,
98
+ ruyi-0.42.0a20251005.dist-info/METADATA,sha256=6BbsE9zC6zyCzC-rlAsG2h3s5wUOBNY1TdcUvIZkjhA,23892
99
+ ruyi-0.42.0a20251005.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
100
+ ruyi-0.42.0a20251005.dist-info/entry_points.txt,sha256=GXSNSy7OgFrnlU5xm5dE3l3PGO92Qf6VDIUCdvQNm8E,49
101
+ ruyi-0.42.0a20251005.dist-info/licenses/LICENSE-Apache.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
102
+ ruyi-0.42.0a20251005.dist-info/RECORD,,
ruyi/mux/.gitignore DELETED
@@ -1 +0,0 @@
1
- !venv