Skip to content

Fix Renovate: constrain PYTHON_VERSION to major.minor only#232

Merged
modem7 merged 1 commit into
masterfrom
fix/renovate-version-constraints
Jun 27, 2026
Merged

Fix Renovate: constrain PYTHON_VERSION to major.minor only#232
modem7 merged 1 commit into
masterfrom
fix/renovate-version-constraints

Conversation

@modem7

@modem7 modem7 commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Closes #233
Closes #234

Summary

  • allowedVersions is not valid inside regexManagers — Renovate was blocking all PRs due to invalid configuration. Moved to packageRules matched by depName instead.
  • While here, also constrains both alpine and python to X.Y format only (/^\d+\.\d+$/), preventing Renovate from proposing patch-level Alpine versions (e.g. 3.24.1, which don't exist as Python image variants) or pre-release/Windows Python tags (e.g. 3.15.0b3-windowsservercore-ltsc2025).

Test plan

  • Renovate configuration validates without errors
  • Future stable Alpine and Python releases (3.25, 3.15) will still be picked up
  • Patch-level Alpine and pre-release/Windows Python tags will be ignored

loose versioning on the python docker datasource picks up pre-release and
Windows-variant tags like 3.15.0b3-windowsservercore-ltsc2025. Add
allowedVersions: /^\d+\.\d+$/ so only stable X.Y tags are proposed,
matching the format used in FROM python:X.Y-alpineA.B.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@modem7 modem7 merged commit 6f7af8e into master Jun 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action Required: Fix Renovate Configuration Action Required: Fix Renovate Configuration

1 participant