This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
CI: run Python tools with uvx and uv run, not pip or uv pip - #380
Merged
Merged
Conversation
Bandit, pip-audit, the mkdocs toolchain and mike run with uvx at their existing pins. The inline pyyaml check runs with uv run --with. The wheel tests and the examples run in a throwaway uv run environment (wheel plus the same package lists), with torch from the PyTorch CPU index via UV_INDEX and unsafe-best-match. The macOS and Windows wheel builds run build.sh under uv run --with build. The dependency floor audit resolves through a generated PEP 723 header with uv lock --script and uv export --script instead of uv pip compile. ci-setup.md and the two docs that described the old deploy install are updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #379.
The workflows no longer install anything with
pip installoruv pip. One-off tools run withuvxat the pins they had, inline Python with dependencies runs withuv run --no-project --with, and the built wheel is tested in a throwawayuv runenvironment instead of the runner's interpreter.uvx --from mkdocs==1.6.1 --with <the three plugins> mkdocs build --strict.mikeis a shell function arounduvx --from mike==2.2.0 --with mkdocs....uv run --no-project --with pyyaml==6.0.3.uvx "bandit==1.9.4".uvx "pip-audit==2.10.1". Theuv pip compilefloor resolution is replaced by a PEP 723 header written from the declared dependencies and the same extras (requires-python ==<v>.*,resolution = "lowest-direct"), resolved withuv lock --scriptand printed withuv export --script. The export is universal, so the audited set is a superset of the old one (it adds platform packages such as colorama and cffi).build.shruns underuv run --no-project --python <v> --with build --with wheel --with setuptools, which puts the build tools first on PATH forbuild-native.shon macOS and Windows (Linux builds in Docker as before).uv run --no-project --python <v> --with ./test-install/*.whl --with-requirements ... pytest. The install step builds that environment first, so a dependency that cannot be resolved fails there.uv runthe same way; torch comes from the PyTorch CPU index viaUV_INDEXwithUV_INDEX_STRATEGY=unsafe-best-match.ci-setup.md,documentation.mdandrelease.mddescribe the new commands.Checked locally on this tree: actionlint (no new findings against main), pre-commit on
bindings/pythonand the workflows, the strict docs build as the new step runs it, the trigger-coverage check, both bandit runs, the floor audit for 3.11 to 3.14, the pytest/examples/build/mike command shapes with a dummy wheel, and the torch resolution for linux, arm64, macOS and Windows (torch resolves to the CPU build, numpy and requests from PyPI). Not checked locally: the macOS and Windows build and examples paths, which this PR's CI runs.Left for a follow-up:
bindings/python/scripts/(Dockerfile.build,ensure-build-tools.sh,after_tag_verify.sh) still useuv pip; they are not workflow steps.🤖 Generated with Claude Code