From c66973c9cd02081e2f3ed5bfd21103bdb4d3349f Mon Sep 17 00:00:00 2001 From: shanchunhua Date: Wed, 23 Sep 2026 01:34:20 +0800 Subject: [PATCH] fix: add BytePlus Studio update PyPI fallback --- tests/cli/test_studio_update.py | 4 +++- veadk/cli/cli_frontend.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/cli/test_studio_update.py b/tests/cli/test_studio_update.py index 874f01e2f..14479e86b 100644 --- a/tests/cli/test_studio_update.py +++ b/tests/cli/test_studio_update.py @@ -1020,7 +1020,9 @@ def update_application_code_bundle(self, **kwargs: object) -> str: assert captured["offline_runtime"] is False assert captured["package_provider"] == "byteplus" assert captured["bundle_agentkit_cli"] is False - assert captured["package_requirements"] == "./veadk.whl\n./pydantic.whl\n" + assert captured["package_requirements"] == ( + "--extra-index-url https://pypi.org/simple\n./veadk.whl\n./pydantic.whl\n" + ) update = captured["update"] assert isinstance(update, dict) run_script = str(captured["run_script"]) diff --git a/veadk/cli/cli_frontend.py b/veadk/cli/cli_frontend.py index fe80291dc..e4c52a6bf 100644 --- a/veadk/cli/cli_frontend.py +++ b/veadk/cli/cli_frontend.py @@ -16483,6 +16483,10 @@ def frontend_update( provider=provider_id, offline_runtime=False, ) + if provider_id == "byteplus": + requirements = ( + "--extra-index-url https://pypi.org/simple\n" + requirements + ) except ValueError as error: raise click.ClickException(str(error)) from error try: