DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
fix(cli): declare missing standalone runtime dependencies (#954)
WeiNing-sara8333c0b5626b
diff --git a/packaging/deeptutor-cli/pyproject.toml b/packaging/deeptutor-cli/pyproject.tomlindex f9323d356..3c2dadb6d 100644--- a/packaging/deeptutor-cli/pyproject.toml+++ b/packaging/deeptutor-cli/pyproject.toml@@ -29,6 +29,11 @@ dependencies = ["typer>=0.9.0","rich>=13.0.0","prompt_toolkit>=3.0.36",+ "pyte>=0.8.1",+ # Imported eagerly by the shared LLM provider stack. These must remain+ # core dependencies: even `deeptutor --help` imports that stack.+ "loguru>=0.7.3,<1.0.0",+ "json-repair>=0.57.0,<1.0.0",# MCP client. This distribution ships the configurable MCP tool surface, so# it needs the client without an optional extra (issue #792)."mcp>=1.26.0,<2.0.0",@@ -50,6 +55,8 @@ dependencies = ["openpyxl>=3.1.0","python-pptx>=1.0.0","pypdf>=4.0.0",+ "pdfplumber>=0.11.0,<0.11.8",+ "reportlab>=4.0.0","defusedxml>=0.7.1",]diff --git a/requirements/cli.txt b/requirements/cli.txtindex f733f3463..368baecd6 100644--- a/requirements/cli.txt+++ b/requirements/cli.txt@@ -63,6 +63,11 @@ ddgs>=9.9.1typer>=0.9.0rich>=13.0.0prompt_toolkit>=3.0.36+pyte>=0.8.1++# --- Shared LLM runtime (imported by the CLI entry point) ---+loguru>=0.7.3,<1.0.0+json-repair>=0.57.0,<1.0.0# --- MCP client (configurable deferred tools; core, not partners-only) ---mcp>=1.26.0,<2.0.0diff --git a/tests/test_packaging_metadata.py b/tests/test_packaging_metadata.pyindex a57b7072f..e0fda7083 100644--- a/tests/test_packaging_metadata.py+++ b/tests/test_packaging_metadata.py@@ -80,3 +80,31 @@ def test_pageindex_sdk_range_matches_every_install_surface() -> None:assert (REPOSITORY_ROOT / "requirements" / "cli.txt").read_text(encoding="utf-8").splitlines().count(expected) == 1+++ "expected",+ [+ "loguru>=0.7.3,<1.0.0",+ "json-repair>=0.57.0,<1.0.0",+ "pyte>=0.8.1",+ "pdfplumber>=0.11.0,<0.11.8",+ "reportlab>=4.0.0",+ ],+)+def test_cli_runtime_dependencies_match_every_install_surface(expected: str) -> None:+ """CLI-only installs must include everything used by terminal workflows."""+ with (REPOSITORY_ROOT / "pyproject.toml").open("rb") as file:+ root = tomllib.load(file)["project"]+ with (REPOSITORY_ROOT / "packaging" / "deeptutor-cli" / "pyproject.toml").open("rb") as file:+ cli_package = tomllib.load(file)["project"]++ assert root["dependencies"].count(expected) == 1+ assert cli_package["dependencies"].count(expected) == 1+ requirement_lines = [+ line.split("#", 1)[0].strip()+ for line in (REPOSITORY_ROOT / "requirements" / "cli.txt")+ .read_text(encoding="utf-8")+ .splitlines()+ ]+ assert requirement_lines.count(expected) == 1