You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(renovate): store exact Python version, migrate devfile images to uv (#804)
## Summary
- Switch `.py-version` from `MAJOR.MINOR` (`3.12`) to
`MAJOR.MINOR.PATCH` (`3.12.11`) and update the Renovate regex to match
three version segments -- fixes the `renovate/python-3.x` branch
creation failure where the two-segment regex couldn't verify a
three-segment replacement (`expectedValue: "3.14.6", foundValue:
"14.6"`)
- Migrate both devfile Containerfiles from `dnf install python3.X` /
`pip install` to `uv python install` / `uv pip install`, reading the
Python version from `.py-version` instead of hardcoding it
- Add `python-base` intermediary stage in `Containerfile.client` for
layer caching (system deps cached separately from wheel installation)
- Replace bash alias (`alias python='uv run python'`) with `uv venv` +
`ENV PATH` so `python` is available in all contexts (scripts, podman
exec, Makefiles), not just interactive bash shells
- Pin the builder stage to the same `.py-version` Python via `uv python
install` + `UV_PYTHON_PREFERENCE=only-managed` so wheels are built with
the same interpreter as the runtime
- Set group ownership (GID 0) on `.local`, `.cache`, and `.venv` in both
Containerfiles for OpenShift arbitrary UID support
- Update `name` labels from `udi9` to `udi10` to match the
`ubi10-latest` base image
## Test plan
- [x] Validated `renovate.jsonc` parses correctly (`npx json5`)
- [x] Ran Renovate v43.218.0 dry-run against fork -- confirmed
`.py-version` matched, `currentValue: "3.12.11"` extracted, and
`DRY-RUN: Would commit files to branch renovate/python-3.x` (no "Value
is not updated" error)
- [x] Build `python/.devfile/Containerfile.client` and verify `uv python
install` succeeds
- [x] Build `python/.devfile/Containerfile.client` and verify wheel +
pytest installation into venv
- [x] `podman run --rm jumpstarter-client:test python --version` returns
Python 3.12.11
- [x] `podman run --rm jumpstarter-client:test uv pip list --python
/home/user/.venv/bin/python | grep jumpstarter` lists all packages
- [x] Verified builder stage uses Python 3.12.11 (via `UV_VERBOSE=1`)
with and without `UV_PYTHON_PREFERENCE=only-managed`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments