Skip to content

🔧 build(tox): build against uv-managed Python - #1628

Closed
gaborbernat wants to merge 1 commit into
mainfrom
build/uv-managed-python
Closed

gaborbernat wants to merge 1 commit into
mainfrom
build/uv-managed-python

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Contributors on distributions whose default Python ships without development headers could not build the C extension through tox: on Fedora, /usr/bin/python3.15 has no Python.h unless python3-devel is installed, so meson reported Python dependency not found and the 3.15, docs, pkg_meta and warnings environments stopped before running anything. 🛠️

CI never saw this because every job already sets UV_PYTHON_PREFERENCE: only-managed. tox now asks tox-uv for the same through its uv_python_preference setting, so local environments use uv's standalone CPython builds, which bundle their headers, and match the interpreters CI builds against.

Distro interpreters such as Fedora's python3.15 ship without headers
unless the -devel package is installed, so meson could not find the
Python dependency and the 3.15, docs, pkg_meta and warnings envs failed
to build the C extension locally. CI already pins
UV_PYTHON_PREFERENCE=only-managed; tox now asks tox-uv for the same.
@gaborbernat gaborbernat added the skip news No user-facing changelog entry needed label Nov 5, 2026
@gaborbernat
gaborbernat enabled auto-merge (squash) November 5, 2026 00:40
@codspeed

codspeed Bot commented Nov 5, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 582 untouched benchmarks
⏩ 32 skipped benchmarks1


Comparing build/uv-managed-python (4dbf237) with main (7daa2f5)

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat disabled auto-merge November 5, 2026 00:57
@gaborbernat gaborbernat closed this Nov 5, 2026
@gaborbernat
gaborbernat deleted the build/uv-managed-python branch November 5, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news No user-facing changelog entry needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant