ruyi 0.42.0a20250922__tar.gz → 0.42.0a20251005__tar.gz

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.
Files changed (102) hide show
  1. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/PKG-INFO +1 -1
  2. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/pyproject.toml +2 -1
  3. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/main.py +13 -1
  4. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/repo.py +4 -1
  5. ruyi-0.42.0a20250922/ruyi/mux/.gitignore +0 -1
  6. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/LICENSE-Apache.txt +0 -0
  7. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/README.md +0 -0
  8. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/__init__.py +0 -0
  9. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/__main__.py +0 -0
  10. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/__init__.py +0 -0
  11. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/builtin_commands.py +0 -0
  12. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/cmd.py +0 -0
  13. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/completer.py +0 -0
  14. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/completion.py +0 -0
  15. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/config_cli.py +0 -0
  16. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/oobe.py +0 -0
  17. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/self_cli.py +0 -0
  18. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/user_input.py +0 -0
  19. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/version_cli.py +0 -0
  20. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/__init__.py +0 -0
  21. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/editor.py +0 -0
  22. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/errors.py +0 -0
  23. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/news.py +0 -0
  24. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/schema.py +0 -0
  25. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/device/__init__.py +0 -0
  26. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/device/provision.py +0 -0
  27. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/device/provision_cli.py +0 -0
  28. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/log/__init__.py +0 -0
  29. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/__init__.py +0 -0
  30. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/runtime.py +0 -0
  31. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/__init__.py +0 -0
  32. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/emulator_cfg.py +0 -0
  33. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/maker.py +0 -0
  34. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/venv_cli.py +0 -0
  35. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv_cfg.py +0 -0
  36. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/__init__.py +0 -0
  37. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/api.py +0 -0
  38. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/ctx.py +0 -0
  39. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/paths.py +0 -0
  40. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/plugin_cli.py +0 -0
  41. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/unsandboxed.py +0 -0
  42. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/py.typed +0 -0
  43. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/resource_bundle/__init__.py +0 -0
  44. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/resource_bundle/__main__.py +0 -0
  45. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/resource_bundle/data.py +0 -0
  46. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/__init__.py +0 -0
  47. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/admin_checksum.py +0 -0
  48. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/admin_cli.py +0 -0
  49. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/atom.py +0 -0
  50. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/augmented_pkg.py +0 -0
  51. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/canonical_dump.py +0 -0
  52. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/checksum.py +0 -0
  53. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/cli_completion.py +0 -0
  54. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/distfile.py +0 -0
  55. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/entity.py +0 -0
  56. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/entity_cli.py +0 -0
  57. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/entity_provider.py +0 -0
  58. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/fetch.py +0 -0
  59. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/host.py +0 -0
  60. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/install.py +0 -0
  61. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/install_cli.py +0 -0
  62. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/list.py +0 -0
  63. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/list_cli.py +0 -0
  64. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/list_filter.py +0 -0
  65. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/msg.py +0 -0
  66. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/news.py +0 -0
  67. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/news_cli.py +0 -0
  68. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/news_store.py +0 -0
  69. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/pkg_manifest.py +0 -0
  70. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/profile.py +0 -0
  71. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/profile_cli.py +0 -0
  72. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/protocols.py +0 -0
  73. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/state.py +0 -0
  74. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/unpack.py +0 -0
  75. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/unpack_method.py +0 -0
  76. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/update_cli.py +0 -0
  77. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/__init__.py +0 -0
  78. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/aggregate.py +0 -0
  79. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/event.py +0 -0
  80. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/node_info.py +0 -0
  81. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/provider.py +0 -0
  82. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/scope.py +0 -0
  83. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/store.py +0 -0
  84. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/telemetry_cli.py +0 -0
  85. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/__init__.py +0 -0
  86. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/ar.py +0 -0
  87. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/ci.py +0 -0
  88. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/frontmatter.py +0 -0
  89. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/git.py +0 -0
  90. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/global_mode.py +0 -0
  91. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/l10n.py +0 -0
  92. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/markdown.py +0 -0
  93. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/mounts.py +0 -0
  94. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/nuitka.py +0 -0
  95. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/porcelain.py +0 -0
  96. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/prereqs.py +0 -0
  97. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/ssl_patch.py +0 -0
  98. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/templating.py +0 -0
  99. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/toml.py +0 -0
  100. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/url.py +0 -0
  101. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/xdg_basedir.py +0 -0
  102. {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/version.py +0 -0
@@ -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
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [project]
6
6
  name = "ruyi"
7
- version = "0.42.0-alpha.20250922"
7
+ version = "0.42.0-alpha.20251005"
8
8
  description = "Package manager for RuyiSDK"
9
9
  keywords = ["ruyi", "ruyisdk"]
10
10
  license = { file = "LICENSE-Apache.txt" }
@@ -57,6 +57,7 @@ repository = "https://github.com/ruyisdk/ruyi.git"
57
57
 
58
58
  [tool.poetry]
59
59
  include = ["ruyi/py.typed"]
60
+ exclude = ["**/.gitignore"]
60
61
 
61
62
  [tool.poetry.group.dev.dependencies]
62
63
  mypy = "^1.9.0"
@@ -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,
@@ -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 +0,0 @@
1
- !venv
File without changes