Align Python version pins: .python-version vs CI vs pyproject.toml #59

Closed
opened 2026-03-21 19:12:14 +00:00 by kert · 0 comments
Owner

Problem

Three different Python version specs:

Source Version Note
.python-version cpython-3.13.12-linux-x86_64-gnu Exact platform-specific pin
pyproject.toml >=3.12 Loose floor
.woodpecker/ci.yml line 16 uv python pin 3.13.11 Downgrades to 3.13.11!

The CI step actively fights the .python-version pin. This can cause version skew between local and CI.

Fix

  1. Pick ONE version: 3.13 (minor pin, let patch float)
  2. Set .python-version to 3.13 (uv will resolve latest patch)
  3. Remove uv python pin 3.13.11 from CI — let it respect .python-version
  4. Keep requires-python = ">=3.12" in pyproject.toml (library compat floor)

Files

  • .python-version
  • .woodpecker/ci.yml
## Problem Three different Python version specs: | Source | Version | Note | |--------|---------|------| | `.python-version` | `cpython-3.13.12-linux-x86_64-gnu` | Exact platform-specific pin | | `pyproject.toml` | `>=3.12` | Loose floor | | `.woodpecker/ci.yml` line 16 | `uv python pin 3.13.11` | **Downgrades** to 3.13.11! | The CI step actively fights the `.python-version` pin. This can cause version skew between local and CI. ## Fix 1. Pick ONE version: `3.13` (minor pin, let patch float) 2. Set `.python-version` to `3.13` (uv will resolve latest patch) 3. Remove `uv python pin 3.13.11` from CI — let it respect `.python-version` 4. Keep `requires-python = ">=3.12"` in pyproject.toml (library compat floor) ## Files - `.python-version` - `.woodpecker/ci.yml`
kert added this to the P12: uv Hygiene — fix venv, build system, python resolution milestone 2026-03-21 19:12:14 +00:00
kert added the config label 2026-03-21 19:12:14 +00:00
kert closed this issue 2026-03-21 19:34:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#59