From 659434550f21cfcd398764695d5eab8b06395184 Mon Sep 17 00:00:00 2001 From: Patrick Ballard Date: Thu, 3 Dec 2026 15:03:11 +0000 Subject: [PATCH 1/2] Lead the home page with lockdown: refusing install-time builds Co-Authored-By: Claude Opus 5.5 --- index.html | 16 +++++++++------- llms.txt | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index da4105e..55f90eb 100644 --- a/index.html +++ b/index.html @@ -3,16 +3,16 @@ -wheelgap: find Python dependencies with no prebuilt wheel - +wheelgap: stop Python dependencies building from source when you install them + - + @@ -69,8 +69,8 @@
-

Find the Python dependencies with no prebuilt wheel for your platform, before your build does

-

Switching to an ARM image, Alpine, Windows on ARM, Python 3.15 or free-threaded 3.14t, and seeing Failed building wheel? wheelgap reads your lockfile and lists every package pip or uv would have to compile from source, or can't install at all, on the platforms you ship to. With --fix it gives the upgrade that has the wheel and the command to run.

+

Stop your Python dependencies from running their own build code when you install them

+

When a package has no prebuilt wheel for your platform, pip and uv build it from source, and that runs the package's own build code on your machine. wheelgap reads your lockfile and lists every package that would build, or can't install at all, on the platforms you ship to (ARM, Alpine, Windows on ARM, Python 3.15, free-threaded 3.14t). wheelgap lockdown then prints the uv or pip settings that refuse every build except the ones you can't avoid yet, and --fix gives the upgrade that has the wheel.

@@ -79,7 +79,8 @@

Find the Python dependencies with no prebuilt wheel for your platform, befor

Or in a terminal, on your lockfile:

-
uvx wheelgap -p 3.13 -t linux-aarch64,musl-aarch64 --fix
+
uvx wheelgap@latest lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64
+

On pydantic-ai's lockfile (433 packages), only 2 need to build on Linux, macOS and Windows; the settings refuse every other build.

Free and open source (MIT). No account, nothing to install permanently.

Projects

@@ -102,6 +103,7 @@

Gap wheel inde

Reading

diff --git a/llms.txt b/llms.txt index bd97cac..ae9632b 100644 --- a/llms.txt +++ b/llms.txt @@ -11,6 +11,7 @@ The README and docs on `main` can describe changes that aren't on PyPI yet; `CHA - [Usage](https://github.com/wheelgap/wheelgap#usage): examples, `[tool.wheelgap]` config, result statuses, `--explain`, how `--json` results are keyed, exit codes, `--ignore` - [Targets](https://github.com/wheelgap/wheelgap#targets): platform names and aliases, the wheel tags each accepts, `--glibc`, `--musl`, `--distro` - [Fixing a gap](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--fix-fix): `--fix` gives each gap's way out, the upgrade to an official release that has the wheel first (with `uv lock --upgrade-package NAME` or the new pin), else an unofficial wheel from wheelgap's gap wheel index; `--json` adds each package's `fix` and a top-level `fix_summary`, and the gap wheels need the user's go-ahead before the index goes into project files; for other lockfiles the output only says to add the index where the lock is made and relock (a pdm.lock, or a poetry.lock package that records no index, gets no gap wheel), and the index isn't for a project that installs from a private index; `--json` lists the filled cells in `gap_wheels`, and `--fix --print-gap-wheel-snippet` prints just the lines for one uv.lock, requirements file or package names +- [Refusing source builds](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--lockdown-lockdown): `wheelgap lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64` (or a requirements file) lists the packages that build from source at install on those targets and prints the settings that refuse every other build: uv's `no-build = true` and a `no-binary-package` list, or pip's `--only-binary :all:` and `--no-binary` lines; `--lockdown-format env` or `dockerfile` prints them as uv's environment variables; with the settings in, `--fail-on missing` in CI fails a change that adds a new build - [Checking a Docker image](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--dockerfile-dockerfile): `--dockerfile` takes the Python and platform from a Dockerfile's final stage; [`--dockerfile-inputs`](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--dockerfile-inputs-dockerfile-inputs) also checks the requirements files it installs with `RUN pip install -r FILE` - [Diagnosing a failed install](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--from-log-from-log): `--from-log install.log` finds the packages a pip, uv, Poetry or PDM install failed to build and the release with a wheel; a [pip installation report](https://github.com/wheelgap/wheelgap/blob/main/docs/inputs.md#pip-installation-report) (`pip install --dry-run --report`) is read as an input too - [Comparing two lockfiles](https://github.com/wheelgap/wheelgap#comparing-two-lockfiles): `wheelgap diff OLD NEW`, git refs such as `origin/main:uv.lock`, `--json` From aebd957f943aa0e54550d3f28dca53dff17ff9e0 Mon Sep 17 00:00:00 2001 From: Patrick Ballard Date: Thu, 3 Dec 2026 15:04:27 +0000 Subject: [PATCH 2/2] Drop the unreleased --lockdown-format from llms.txt; name the pydantic-ai targets Co-Authored-By: Claude Opus 5.5 --- index.html | 2 +- llms.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 55f90eb..83b725c 100644 --- a/index.html +++ b/index.html @@ -80,7 +80,7 @@

Stop your Python dependencies from running their own build code when you ins

Or in a terminal, on your lockfile:

uvx wheelgap@latest lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64
-

On pydantic-ai's lockfile (433 packages), only 2 need to build on Linux, macOS and Windows; the settings refuse every other build.

+

On pydantic-ai's lockfile (433 packages), on Python 3.13 across Linux x86_64 and ARM64, macOS ARM and Windows x64, only 2 need to build; the settings refuse every other build.

Free and open source (MIT). No account, nothing to install permanently.

Projects

diff --git a/llms.txt b/llms.txt index ae9632b..942ed4b 100644 --- a/llms.txt +++ b/llms.txt @@ -11,7 +11,7 @@ The README and docs on `main` can describe changes that aren't on PyPI yet; `CHA - [Usage](https://github.com/wheelgap/wheelgap#usage): examples, `[tool.wheelgap]` config, result statuses, `--explain`, how `--json` results are keyed, exit codes, `--ignore` - [Targets](https://github.com/wheelgap/wheelgap#targets): platform names and aliases, the wheel tags each accepts, `--glibc`, `--musl`, `--distro` - [Fixing a gap](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--fix-fix): `--fix` gives each gap's way out, the upgrade to an official release that has the wheel first (with `uv lock --upgrade-package NAME` or the new pin), else an unofficial wheel from wheelgap's gap wheel index; `--json` adds each package's `fix` and a top-level `fix_summary`, and the gap wheels need the user's go-ahead before the index goes into project files; for other lockfiles the output only says to add the index where the lock is made and relock (a pdm.lock, or a poetry.lock package that records no index, gets no gap wheel), and the index isn't for a project that installs from a private index; `--json` lists the filled cells in `gap_wheels`, and `--fix --print-gap-wheel-snippet` prints just the lines for one uv.lock, requirements file or package names -- [Refusing source builds](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--lockdown-lockdown): `wheelgap lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64` (or a requirements file) lists the packages that build from source at install on those targets and prints the settings that refuse every other build: uv's `no-build = true` and a `no-binary-package` list, or pip's `--only-binary :all:` and `--no-binary` lines; `--lockdown-format env` or `dockerfile` prints them as uv's environment variables; with the settings in, `--fail-on missing` in CI fails a change that adds a new build +- [Refusing source builds](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--lockdown-lockdown): `wheelgap lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64` (or a requirements file) lists the packages that build from source at install on those targets and prints the settings that refuse every other build: uv's `no-build = true` and a `no-binary-package` list, or pip's `--only-binary :all:` and `--no-binary` lines; with the settings in, `--fail-on missing` in CI fails a change that adds a new build - [Checking a Docker image](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--dockerfile-dockerfile): `--dockerfile` takes the Python and platform from a Dockerfile's final stage; [`--dockerfile-inputs`](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--dockerfile-inputs-dockerfile-inputs) also checks the requirements files it installs with `RUN pip install -r FILE` - [Diagnosing a failed install](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--from-log-from-log): `--from-log install.log` finds the packages a pip, uv, Poetry or PDM install failed to build and the release with a wheel; a [pip installation report](https://github.com/wheelgap/wheelgap/blob/main/docs/inputs.md#pip-installation-report) (`pip install --dry-run --report`) is read as an input too - [Comparing two lockfiles](https://github.com/wheelgap/wheelgap#comparing-two-lockfiles): `wheelgap diff OLD NEW`, git refs such as `origin/main:uv.lock`, `--json`