Skip to content

ci: build release with uv-managed Python instead of setup-python 3.9 - #42

Merged
samupl merged 1 commit into
masterfrom
ci/publish-without-setup-python
Nov 24, 2026
Merged

samupl merged 1 commit into
masterfrom
ci/publish-without-setup-python

Conversation

@samupl

@samupl samupl commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Problem

The Publish run for v0.2.9 failed before building anything:

##[error]The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04.

ubuntu-latest is now Ubuntu 26.04, and actions/setup-python has no Python 3.9 build for it (3.9 is EOL). Nothing was uploaded to PyPI.

Fix

Remove the setup-python step and let setup-uv provide Python 3.12 for uv build. The package is pure Python (ksef-*-py3-none-any.whl), so the build interpreter doesn't change the artifact. Supported runtime versions are still requires-python and the Test matrix (3.9–3.13).

Verification

  • uv build --python 3.12 locally produces ksef-0.2.9.tar.gz and ksef-0.2.9-py3-none-any.whl.
  • After merge, v0.2.9 is re-released from the new master commit (the v0.2.9 release/tag never reached PyPI).

ubuntu-latest is now Ubuntu 26.04, for which actions/setup-python has
no Python 3.9 build (3.9 is EOL), so the v0.2.9 Publish run failed at
'Set up Python'. The package is pure Python (py3-none-any), so the
build interpreter doesn't matter: let setup-uv provide Python 3.12.
@samupl
samupl merged commit 9b3f685 into master Nov 24, 2026
8 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.

1 participant