Files
DeepTutor/requirements/cli.txt
wumajiehechuan-lab c131733b22 chore(deps): install qrcode with the core package
Partner QR onboarding (WeChat, WeCom, Feishu) renders its code server-side,
so `qrcode` is the only thing between an operator and a scannable code. It was
reachable only through the `partners` extra, which means the documented first
step — `pip install -e .` — produces a Channels page whose "Scan to connect"
button silently yields nothing: `render_qr_svg` swallows the ImportError and
returns an empty string, and `_qr_data_url` returns None. Neither the UI nor
the logs say a word, so the failure reads as a broken feature rather than a
missing extra.

The package is pure Python, holds no compiled or system dependencies, and every
scan-based channel needs it, so it belongs in the core set — the same call
already made for `mcp` in issue #792.

- pyproject.toml: move `qrcode` from the `partners` extra into core
- requirements/cli.txt: mirror it, since that file images the core deps
- requirements/partners.txt: drop it; it now arrives via `-r server.txt`
- tests: reword the degradation test, which now guards trimmed deployments
  rather than the default install

The lazy-import fallback itself is kept on purpose: a build assembled without
the full requirement set must still serve a usable page carrying the raw scan
payload.
2026-09-15 01:08:23 -07:00

83 lines
2.2 KiB
Plaintext

# ============================================
# DeepTutor CLI — Full Dependencies
# ============================================
# Mirrors pyproject.toml `[project.optional-dependencies].cli` plus core deps.
# Keep in sync with pyproject.toml when adding/updating dependencies.
#
# Public install: pip install deeptutor-cli
# Source compatibility: pip install -e ".[cli]"
# Use this file for Docker/CI when pyproject.toml/source code aren't yet available.
# --- Config & templating ---
PyYAML>=6.0
jinja2>=3.1.0
# --- LLM ---
openai>=1.30.0
tiktoken>=0.5.0
# --- LLM provider SDKs ---
anthropic>=0.30.0
dashscope>=1.14.0
perplexityai>=0.1.0
oauth-cli-kit>=0.1.1; python_version >= "3.11"
# --- HTTP clients ---
aiohttp>=3.9.4
httpx>=0.27.0
requests>=2.32.2
# --- Async helpers ---
nest_asyncio>=1.5.8
tenacity>=8.0.0
# --- Data models & storage ---
pydantic>=2.0.0
pydantic-settings>=2.0.0
jsonschema>=4.20.0,<5.0.0
aiosqlite>=0.19.0
# --- RAG (LlamaIndex) ---
llama-index>=0.14.12
# PyStemmer 2.x has no Python 3.14 wheels. LlamaIndex falls back to vector
# retrieval when this optional BM25 integration is unavailable.
llama-index-retrievers-bm25>=0.7.1,<0.8.0; python_version < "3.14"
# FAISS vector store: ANN retrieval replacing SimpleVectorStore brute force for
# large KBs (issue #552); imported lazily with SimpleVectorStore fallback.
llama-index-vector-stores-faiss>=0.4.0,<1.0.0
faiss-cpu>=1.8.0,<2.0.0; python_version < "3.14"
faiss-cpu>=1.12.0,<2.0.0; python_version >= "3.14"
PyMuPDF>=1.26.0
numpy>=1.24.0,<3.0.0
arxiv>=2.0.0
# --- Document text extraction (chat attachments) + office-skill authoring libs ---
python-docx>=1.1.0
openpyxl>=3.1.0
python-pptx>=1.0.0
pypdf>=4.0.0
pdfplumber>=0.11.0
reportlab>=4.0.0
defusedxml>=0.7.1
youtube-transcript-api>=1.2.0,<2.0.0
# --- Web search ---
ddgs>=9.9.1
# --- CLI framework ---
typer>=0.9.0
rich>=13.0.0
prompt_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.0
pageindex>=0.2.10,<0.3.0
# --- Partner channel QR onboarding (WeChat, WeCom, Feishu; core) ---
qrcode>=7.4.0,<9.0.0