ruyi 0.41.0b20250926__py3-none-any.whl → 0.42.0a20250926__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,9 @@ class MetadataRepo(ProvidesPackageManifests):
284
284
  self.repo = Repository(self.root)
285
285
  return self.repo
286
286
 
287
- self.logger.I(f"the package repository does not exist at [yellow]{self.root}[/]")
287
+ self.logger.I(
288
+ f"the package repository does not exist at [yellow]{self.root}[/]"
289
+ )
288
290
  self.logger.I(f"cloning from [cyan link={self.remote}]{self.remote}[/]")
289
291
 
290
292
  with RemoteGitProgressIndicator() as pr:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ruyi
3
- Version: 0.41.0b20250926
3
+ Version: 0.42.0a20250926
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
@@ -64,7 +64,7 @@ ruyi/ruyipkg/pkg_manifest.py,sha256=FmksKjQyBnU4zA3MFXiHdB2EjNmhs-J9km9vE-zBQlk,
64
64
  ruyi/ruyipkg/profile.py,sha256=FVppmA6x12m3JfeAWd3Vl9osk4aBprZL4ff7akO018Q,6467
65
65
  ruyi/ruyipkg/profile_cli.py,sha256=ud9MS9JQLOtec_1tFRu669I-imVfi1DHU3AuBJym9mw,848
66
66
  ruyi/ruyipkg/protocols.py,sha256=lPKRaAcK3DY3wmkyO2tKpFvPQ_4QA4aSNNsNLvi78O8,1833
67
- ruyi/ruyipkg/repo.py,sha256=K0kKj333T6vDwhxWneiPm_CVZdwKP-gpOJdfD5rXnnY,25142
67
+ ruyi/ruyipkg/repo.py,sha256=cdqEkeFgCnPieynyoZlp_19BAExBZnCWuD3kE1NQ6JA,25164
68
68
  ruyi/ruyipkg/state.py,sha256=3DRYyHvm_GOvKFVWZUV0iFVnXdK2vn6_RKBXKxFzK64,11235
69
69
  ruyi/ruyipkg/unpack.py,sha256=X_MKcxU1bcgIM-th1--CUfmnjQOFp-EqWWpvk27YttA,11028
70
70
  ruyi/ruyipkg/unpack_method.py,sha256=MonFFvcDb7MVsi2w4yitnCeZkmWmS7nRMMY-wSt9AMs,2106
@@ -95,8 +95,8 @@ ruyi/utils/toml.py,sha256=ri97Ki0xhBwoDtrjngCc6hlPXuEsma1ShPFFuFMYqpA,3192
95
95
  ruyi/utils/url.py,sha256=Wyct6syS4GmZC6mY7SK-YgBWxKl3cOOBXtp9UtvGkto,186
96
96
  ruyi/utils/xdg_basedir.py,sha256=vd9p-JZru2DkXvt_W3gCS1_Wj4QkuftErI1MLPaBiz4,2478
97
97
  ruyi/version.py,sha256=KLJkvKexU07mu-GVDbYKsQvReRvwlVFYkRmcvnyfQNY,2142
98
- ruyi-0.41.0b20250926.dist-info/METADATA,sha256=--zkfVJ7C1CjBf4XAd6gZ2Ke3TB-7Zn5rNlP0D7OME4,23892
99
- ruyi-0.41.0b20250926.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
100
- ruyi-0.41.0b20250926.dist-info/entry_points.txt,sha256=GXSNSy7OgFrnlU5xm5dE3l3PGO92Qf6VDIUCdvQNm8E,49
101
- ruyi-0.41.0b20250926.dist-info/licenses/LICENSE-Apache.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
102
- ruyi-0.41.0b20250926.dist-info/RECORD,,
98
+ ruyi-0.42.0a20250926.dist-info/METADATA,sha256=YDY50rDk3CjR9NoRzY84vkm3iMiR2rSy8bnAbtBwQlU,23892
99
+ ruyi-0.42.0a20250926.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
100
+ ruyi-0.42.0a20250926.dist-info/entry_points.txt,sha256=GXSNSy7OgFrnlU5xm5dE3l3PGO92Qf6VDIUCdvQNm8E,49
101
+ ruyi-0.42.0a20250926.dist-info/licenses/LICENSE-Apache.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
102
+ ruyi-0.42.0a20250926.dist-info/RECORD,,