修复 HFS registry 测试的 Python 3.10 兼容性 - #270
Merged
Merged
Conversation
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.
结果
修复 #269 合并后由 deployment matrix 发现的 Python 3.10 测试收集失败。HFS registry 测试改为在 Python 3.11+ 使用
tomllib、Python 3.10 使用条件 dev dependencytomli,不改变生产运行时依赖或 HFS 行为。失败的 deployment run
30476341946已取消;candidate-only HF Space promotion 为 skipped,未执行 Space repo/settings/rebuild 写操作。修复合并后会使用新的 exact main SHA 重新运行 deployment。变更
devextra 中增加tomli>=2.0; python_version < '3.11'。tests/test_hfs_v2_registry.py增加 Python 3.10 fallback import。验证
.[dev]后:tests/test_hfs_v2_registry.py3 passed。git diff --check:PASS。边界
不修改 HFS workflow、Panel、runtime、Secret 或远端资源;只恢复仓库声明的 Python 3.10+ 测试兼容性。