mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:49:39 +08:00
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.