workspace— step4

This commit is contained in:
2026-06-09 18:22:55 +08:00
parent 5ceabe9c9a
commit 66aebcf565
8 changed files with 535 additions and 10 deletions
+8 -3
View File
@@ -12,9 +12,14 @@ dependencies = [
"redis==8.0.0",
]
# playwright 仅作为可选 extra:只有解析器/浏览器工具需要它,核心安装保持 light。
# 范围取 jp_surugaya(>=1.54,<2) 与 worker(>=1.43) 的交集,确保 workspace 解析到单一 playwright。
[project.optional-dependencies]
browser = ["playwright>=1.54.0,<2.0.0"]
[tool.hatch.build.targets.wheel]
packages = ["src/surugaya_common"]
# Keep surugaya_common light: stdlib + pydantic + redis only. redis is pinned to
# ==8.0.0 to stay in lockstep with both the API service and the worker. Do not add
# fastapi/playwright/opencv/numpy/pyautogui/pillow here.
# 保持 surugaya_common core 轻量:仅 stdlib + pydantic + redis(==8.0.0,与 API 和 worker 对齐)。
# playwright 只允许出现在上面的 [browser] extra 中,core 安装绝不引入。
# 不要在此加入 fastapi/opencv/numpy/pyautogui/pillow