Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

chore(deps): install qrcode with the core package

wumajiehechuan-labc131733b225b
diff --git a/pyproject.toml b/pyproject.toml
index bc92b4c60..4ef9b69c5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -41,6 +41,12 @@ dependencies = [
# install must be able to connect them without an optional extra.
"mcp>=1.26.0,<2.0.0",
"pageindex>=0.2.10,<0.3.0",
+ # Partner channel QR onboarding (WeChat, WeCom, Feishu). Same reasoning as
+ # `mcp` above: scan-based onboarding is part of the default partner setup
+ # surface, it is pure Python with no compiled or system dependencies, and
+ # without it the browser renders no code at all — the operator sees a
+ # button that does nothing, with no error to explain why.
+ "qrcode>=7.4.0,<9.0.0",
# Full app dependencies included by default for `pip install deeptutor`.
"anthropic>=0.30.0",
"dashscope>=1.14.0",
@@ -191,8 +197,6 @@ partners = [
"aiohttp>=3.10.0,<4.0.0",
# msteams Bot Framework token validation
"PyJWT[crypto]>=2.8.0,<3.0.0",
- # weixin QR-code login
- "qrcode>=7.4.0,<9.0.0",
]
# Optional document-parsing engines for the shared parse layer
diff --git a/requirements/cli.txt b/requirements/cli.txt
index d74d79ea7..ed38869a2 100644
--- a/requirements/cli.txt
+++ b/requirements/cli.txt
@@ -77,3 +77,6 @@ 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
diff --git a/requirements/partners.txt b/requirements/partners.txt
index 74d4b0650..e52282e50 100644
--- a/requirements/partners.txt
+++ b/requirements/partners.txt
@@ -35,5 +35,3 @@ websockets>=12.0
aiohttp>=3.10.0,<4.0.0
# msteams Bot Framework token validation
PyJWT[crypto]>=2.8.0,<3.0.0
-# weixin QR-code login
-qrcode>=7.4.0,<9.0.0
diff --git a/tests/services/partners/test_weixin_onboarding.py b/tests/services/partners/test_weixin_onboarding.py
index bac8f7bf3..02ca01d11 100644
--- a/tests/services/partners/test_weixin_onboarding.py
+++ b/tests/services/partners/test_weixin_onboarding.py
@@ -370,7 +370,7 @@ async def test_an_unchanged_code_does_not_resend_the_image(monkeypatch, stub_par
def test_a_deployment_without_the_qrcode_library_still_gets_a_page(monkeypatch) -> None:
- """`qrcode` rides on the partners extra; missing it must degrade, not fail."""
+ """A trimmed deployment may still lack `qrcode`; missing it must degrade, not fail."""
import builtins
real_import = builtins.__import__