Files
easy-tdx/requirements-dev.txt
T
GitHub 2067b80958 fix(ci): scipy 1.17 要求 Python>=3.11,CI 跑 3.10 装不上
requirements-dev.txt 锁定的 scipy==1.17.0 与 pyproject 声明的
requires-python=>=3.10 冲突(scipy 1.16+ 起要求 Python>=3.11),
导致 CI 矩阵里 3.10 的 job(ubuntu + windows)pip install 失败。

修复:
- requirements-dev.txt: scipy 1.17.0 → 1.15.3(支持 >=3.10 的最新 scipy)
- pyproject.toml [dev]/[science]: scipy>=1.10 → >=1.10,<1.16
  (CI 第一步 pip install -e .[dev] 在 3.10 上也会拉到 1.17,加同上界)

附注:仅影响开发/CI 环境,运行时用户(pip install easy-tdx)不受影响。
本地 761 单测 + ruff + coverage(62%) 全过。requirements-dev.txt
头部加注释说明 3.10 兼容约束,防日后再次踩坑。
2026-07-02 03:53:25 +08:00

28 lines
1000 B
Plaintext
Raw 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.
# 开发工具链锁文件 —— 锁定 dev 依赖的具体版本,保证 CI 构建可复现。
# 运行时依赖(pandas/tzdata/click 等)由 pyproject.toml 的下界+上界约束,
# 此文件仅锁定 [dev] 工具链(pytest/mypy/ruff/scipy/coverage 等)。
#
# 版本兼容约束:pyproject.toml 声明 requires-python = ">=3.10"CI 矩阵跑
# ["3.10", "3.12", "3.13"]。因此所有锁定版本必须能在 Python 3.10 上安装。
# 例:scipy>=1.16 要求 Python>=3.11,故本文件锁定 1.15.3(支持 >=3.10 的
# 最新 scipy)。升级任一工具时请在本地用 Python 3.10 验证后再提交。
# 测试框架
pytest==8.3.5
pytest-asyncio>=0.23
pytest-cov==7.1.0
coverage==7.14.0
# 静态检查
mypy==2.1.0
ruff==0.11.11
# 科学计算([dev] 与 [science] 可选依赖)
# scipy 1.16+ 要求 Python>=3.11CI 还跑 3.10,故锁定 1.15.33.10 兼容上限)。
scipy==1.15.3
numpy==2.2.3
# Web 可选依赖测试支持
fastapi==0.115.11
uvicorn==0.34.0