Skip to content

integtests: drop custom Arch image; provision older Python from setup.py#449

Merged
facundobatista merged 4 commits into
deprecate-python39from
change_run_old
Jun 18, 2026
Merged

integtests: drop custom Arch image; provision older Python from setup.py#449
facundobatista merged 4 commits into
deprecate-python39from
change_run_old

Conversation

@gilgamezh

@gilgamezh gilgamezh commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Stacked on #450 (base branch deprecate-python39). Merge #450 first; this PR's diff is only integtests.yaml.

What

Modernizes interpreter provisioning in the integration tests and removes the custom gilgamezh/archlinux-python39 Docker image.

Approach (revised)

  • archlinux: gilgamezh/archlinux-python39:latestarchlinux:latest (already ships the newest CPython). The older interpreter for the cross-version test comes from uv python install. fades runs under the system Python and uv only supplies the target interpreter path via uv python find — fades is not wrapped in a venv.
  • fedora: install uv from the distro instead of yum install python3.9 (which no longer resolves); older target via uv.
  • native-windows / native-generic: kept on actions/setup-python. An earlier attempt used uv run, but that executes fades inside an ephemeral venv, and fades refuses to run inside a virtualenv (it is a venv manager itself). setup-python provides each interpreter cleanly on every OS with no venv wrapper, so those jobs stay as they were.

Single source of truth

A new min-python job parses the minimum supported version from setup.py's python_requires and exposes it as an output. Every job derives its cross-version target from that output instead of hardcoding — so bumping the floor in setup.py automatically updates the integration tests. (The >=3.10 floor itself comes from #450.)

Notes

  • Verified locally: fades run under Python 3.14 builds a venv with a uv-provided 3.11 interpreter, installs and runs pytest successfully.
  • Watch the first CI run to confirm the needs.min-python output flows into the matrix and steps on every OS.

🤖 Generated with Claude Code

gilgamezh and others added 4 commits June 18, 2026 10:18
The archlinux job used the custom gilgamezh/archlinux-python39 image only
to have an older Python prebuilt for the cross-version test. archlinux:latest
already ships the newest CPython, and uv can provide the older interpreter at
runtime, so the custom image is no longer needed (nothing to maintain or
rebuild). The cross-version target moves from EOL 3.9 to 3.11.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Standardize all integration jobs on uv for interpreter provisioning:

- fedora: install uv from the distro and use it for the older cross-version
  target instead of `yum install python3.9`, which no longer resolves in
  current Fedora repos. Cross-version target moves from EOL 3.9 to 3.11.
- native-windows / native-generic: replace actions/setup-python with
  astral-sh/setup-uv + `uv run`, which provisions both the matrix interpreter
  and the 3.10 cross-version target without per-OS path juggling.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
`uv run` executes the target command inside an ephemeral venv, and fades
refuses to run inside a virtual environment (it is a venv manager itself),
so the native-windows and native-generic jobs failed.

Those jobs never needed uv: actions/setup-python already provides each
matrix interpreter (and the 3.10 cross-version target) cleanly on every OS,
without a venv wrapper. Revert them.

The archlinux and fedora jobs keep uv: there fades runs under the system
Python and uv only supplies the *target* interpreter path via
`uv python find`, so no venv wrapping is involved.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Instead of hardcoding the older Python in each job, add a `min-python` job
that reads the minimum supported version from setup.py's `python_requires`
and exposes it as an output. Every job consumes that single source of truth:

- archlinux / fedora: `uv python install` the minimum, target it for the
  cross-version run.
- native-windows / native-generic: the matrix "oldest" entry and the
  cross-Python setup-python step both take the minimum from the output.

Bumping the supported floor in setup.py now automatically updates the
integration tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gilgamezh gilgamezh changed the base branch from master to deprecate-python39 June 18, 2026 08:20
@gilgamezh gilgamezh changed the title integtests: provision Python via uv (drop custom Arch image) integtests: drop custom Arch image; provision older Python from setup.py Jun 18, 2026
@facundobatista facundobatista merged commit 9741004 into deprecate-python39 Jun 18, 2026
33 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.

2 participants