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.
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/PKG-INFO +1 -1
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/pyproject.toml +2 -1
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/main.py +13 -1
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/repo.py +4 -1
- ruyi-0.42.0a20250922/ruyi/mux/.gitignore +0 -1
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/LICENSE-Apache.txt +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/README.md +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/__main__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/builtin_commands.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/cmd.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/completer.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/completion.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/config_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/oobe.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/self_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/user_input.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/cli/version_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/editor.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/errors.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/news.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/config/schema.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/device/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/device/provision.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/device/provision_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/log/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/runtime.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/emulator_cfg.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/maker.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv/venv_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/mux/venv_cfg.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/api.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/ctx.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/paths.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/plugin_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/pluginhost/unsandboxed.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/py.typed +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/resource_bundle/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/resource_bundle/__main__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/resource_bundle/data.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/admin_checksum.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/admin_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/atom.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/augmented_pkg.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/canonical_dump.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/checksum.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/cli_completion.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/distfile.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/entity.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/entity_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/entity_provider.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/fetch.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/host.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/install.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/install_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/list.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/list_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/list_filter.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/msg.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/news.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/news_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/news_store.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/pkg_manifest.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/profile.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/profile_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/protocols.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/state.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/unpack.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/unpack_method.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/ruyipkg/update_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/aggregate.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/event.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/node_info.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/provider.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/scope.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/store.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/telemetry/telemetry_cli.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/__init__.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/ar.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/ci.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/frontmatter.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/git.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/global_mode.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/l10n.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/markdown.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/mounts.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/nuitka.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/porcelain.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/prereqs.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/ssl_patch.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/templating.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/toml.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/url.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/utils/xdg_basedir.py +0 -0
- {ruyi-0.42.0a20250922 → ruyi-0.42.0a20251005}/ruyi/version.py +0 -0
|
@@ -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.
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|