fix(packaging): include QR renderer in CLI distribution

This commit is contained in:
Bingxi Zhao (Frank)
2026-09-23 10:42:02 +08:00
parent 9540d38a71
commit 8c212f61b7
2 changed files with 13 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ dependencies = [
# it needs the client without an optional extra (issue #792).
"mcp>=1.26.0,<2.0.0",
"pageindex>=0.2.10,<0.3.0",
# The shared partner onboarding CLI renders QR codes on a plain CLI install.
"qrcode>=7.4.0,<9.0.0",
"anthropic>=0.30.0",
"dashscope>=1.14.0",
"perplexityai>=0.1.0",

View File

@@ -138,6 +138,17 @@ def test_requirements_mirror_the_core_mcp_client() -> None:
assert "mcp>=" not in partners_text
def test_cli_qrcode_dependency_matches_every_install_surface() -> None:
"""Plain CLI installs include the QR renderer used by partner onboarding."""
expected = "qrcode>=7.4.0,<9.0.0"
root = _project(REPOSITORY_ROOT / "pyproject.toml")
cli_package = _project(REPOSITORY_ROOT / "packaging" / "deeptutor-cli" / "pyproject.toml")
assert root["dependencies"].count(expected) == 1
assert cli_package["dependencies"].count(expected) == 1
assert _cli_requirement_lines().count(expected) == 1
def test_full_app_cron_dependency_matches_every_server_install_surface() -> None:
expected = "croniter>=6.0.0,<7.0.0"
with (REPOSITORY_ROOT / "pyproject.toml").open("rb") as file: