Repository navigation
fix(deps): align NumPy requirement with package metadata - #21
Merged
Merged
Conversation
There was a problem hiding this comment.
AI Review
🟢 未发现有明确证据的问题
在已提供并完成审查的 diff 范围内未形成可确认问题。
变更概览
本次变更主要包含:
- 将 requirements.txt 中 NumPy 约束由固定 numpy==1.23.5 放宽为 numpy>=1.23.0,使其与包元数据中对 NumPy 的声明保持一致
文件审查摘要
| 文件 | 变更 | 审查结果 |
|---|---|---|
requirements.txt |
修改 · +1/-1 | — |
审查信息
- 变更统计:1 个文件,+1/-1。
- 覆盖情况:共 1 个文件,已完整审查 1 个。
- 候选问题:0 项;证据复核过滤:0 项;发布前敏感信息保护:0 项。
- 本服务以 GitHub 提供的 PR diff 为审查主体,PR 描述与按相关性选取的仓库片段仅用于核验;未执行代码或重跑测试,结论仍需维护者核验。
WXuan-X
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与修改
requirements.txt将 NumPy 固定为1.23.5,而setup.py声明为numpy>=1.23.0,导致两种安装方式的依赖约束不一致。按 requirements 安装时可能将现有、满足组件声明的 NumPy 版本替换为 1.23.5。将
requirements.txt中该项改为numpy>=1.23.0,与组件安装元数据一致。本次仅修改这一行,其他依赖及 CI 镜像的固定版本保持不变。验证
setup.py一致。git diff --check通过。