diff --git a/packaging/deeptutor-cli/pyproject.toml b/packaging/deeptutor-cli/pyproject.toml index 37195d5a9..e0c091076 100644 --- a/packaging/deeptutor-cli/pyproject.toml +++ b/packaging/deeptutor-cli/pyproject.toml @@ -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", diff --git a/tests/test_packaging_metadata.py b/tests/test_packaging_metadata.py index 67854015a..61fc55c2b 100644 --- a/tests/test_packaging_metadata.py +++ b/tests/test_packaging_metadata.py @@ -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: