Repository navigation
chore: 限制 Renovate 不升级 Python 3.15 - #42
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This was referenced Nov 16, 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.
背景
Renovate 反复创建 Python 3.12 → 3.15 的升级 PR(#26 已关闭,随后又重建 #39、#40),但 3.15 当前不可行:
lxml 6.0.2只发布 cp313/cp314 wheel,没有 cp315 轮子;python:3.15-slim未预装 libxml2/libxslt 开发包,pip install lxml直接失败,Docker 构建无法通过(实测报错Error: Please make sure the libxml2 and libxslt development packages are installed.)。改动
在
renovate.json的packageRules末尾新增一条规则:{ "matchPackageNames": ["python"], "allowedVersions": "<3.15" }该规则同时覆盖 Dockerfile 的
python:3.12-slim基础镜像与 CI 的python-version(两处 packageName 均为python),Renovate 不会再为 3.15 创建 PR。恢复条件
待 lxml 发布 cp315 wheel、
python:3.15-slim补齐 libxml2/libxslt 依赖后,删除此规则即可恢复自动升级。验证
json.load()解析通过,packageRules数量 2 → 3;python约束,不影响 ruff/mypy 与 constraints 规则。