agent-Specialization/requirements.lock.txt
JOJO 04cdf964af fix(deps): 声明 httpx[http2] / h2,修复干净环境缺包启动失败
utils/api_client.py 用 httpx.AsyncClient(http2=True) 发请求,需要 h2 包。
旧 requirements 只写了 httpx,未声明 http2 extra;开发机碰巧已装 h2 所以
未暴露,干净 release 环境启动即报错:
  Using http2=True, but the 'h2' package is not installed.

- requirements.txt: httpx -> httpx[http2]
- requirements.lock.txt: httpx[http2]==0.28.1,并显式锁 h2==4.1.0
- scripts/gen_requirements_lock.py: 升级为可解析 extras,自动锁定 extra
  引入的传递依赖(如 httpx[http2] -> h2),避免以后重生 lock 丢失 h2;
  通用于任意 extra

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 17:49:00 +08:00

22 lines
754 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 锁定版本依赖(构建 / release 打包用)。由 scripts/gen_requirements_lock.py 生成。
#
# 与 requirements.txt 的关系:
# - requirements.txt 人读、宽松,列出运行时直接依赖(不锁版本)
# - requirements.lock.txt本文件 精确版本,供便携 release 打包与可复现安装
#
# 安装pip install -r requirements.lock.txt
# 更新:在已验证可用的环境执行 python -m scripts.gen_requirements_lock
#
# 注:这里只锁项目运行时直接依赖;其传递依赖由 pip 在安装时解析。
flask==2.3.3
flask-socketio==5.3.6
flask-cors==3.0.10
werkzeug==2.3.7
httpx[http2]==0.28.1
h2==4.1.0 # 由 httpx[http2] 引入
openai==2.8.1
cryptography==43.0.3
pillow==9.3.0
websockets==10.4