Skip to content

Bump the wheelgap pins to 0.14.0: the checker (with --fix's gap wheels) and the nightly scan - #250

Merged
patrickballard merged 2 commits into
mainfrom
bump-wheelgap-0.14.0
Nov 24, 2026
Merged

patrickballard merged 2 commits into
mainfrom
bump-wheelgap-0.14.0

Conversation

@patrickballard

@patrickballard patrickballard commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #208

wheelgap 0.14.0 is on PyPI (uvx [email protected] --version prints wheelgap 0.14.0 (packaging 26.4, CPython 3.15.0)). This PR moves all four pins to wheelgap==0.14.0. It is two commits, the checker first and then the scan, so you can review (or revert) them separately.

1. Repo checker (site/check/)

  • worker.mjs: WHEELGAP = "wheelgap==0.14.0".
  • Gap wheels are on. driver.py imports gapwheels and fix directly, so the gapwheels = None fallback and supports_gap_wheels() are gone. test_gap_wheels_reuse_cli_checks no longer uses importorskip, so a pin without the module fails.
  • Upgrade first, gap wheel as the fallback, as 0.14.0's --fix does. The worker now calls driver.gap_wheels() after fixes(). The list is still fetched in parallel. gap_wheels() passes what fixes() found to the CLI's own fix.plan(), fix.alternatives() and fix.any_upgrade(), then renders gapwheels.text_lines(fills, True, fallback, upgrades). When a fix names an upgrade, the section therefore starts "As a fallback, …" and lists a filled gap an upgrade also fixes as "(if you can't upgrade NAME)". Each cell gets fallback and the result gets upgrades. The Fix column still names the release. On a fallback cell, the "gap wheel" tag's tooltip says "if you can't upgrade NAME: unofficial, …". The note above the section says "Upgrade first: where the Fix column names an official release, a gap wheel is only for when you can't upgrade." The copied agent prompt calls the gap wheels the fallback.
  • The other 0.14.0 changes the driver had to follow (found by running the tests against 0.14.0):
    • A missing -r/-c include is now a SourceError raised from the FileNotFoundError. needs() reads the path from the cause and compares it with Path(os.path.abspath(root)), not resolve(), as Bump the wheelgap pins after 0.14.0: the checker's (0.13.0) and the nightly scan's (0.9.0) #208's comment asks. A new test covers a root reached through a symlink.
    • The trimFiles in check-logic.mjs now keeps upload_time_iso_8601 (exclude-newer, as Bump the wheelgap pins after 0.14.0: the checker's (0.13.0) and the nightly scan's (0.9.0) #208's comment asks) and digests.sha256. 0.14.0 reads --hash options (pypi._sha256), and without the digests a hashed requirement got a different answer from the CLI. The new parity test test_trimming_keeps_the_hashes_and_upload_times_wheelgap_reads failed on both cases before this fix.
    • A script's lock (tool.py.lock, and so requirements.py.lock) is read as a uv.lock in 0.14.0. fileKind() and the offline list follow, so a link naming one is checked offline instead of refused. I checked this on a real uv lock --script lock, with and without the script beside it.
    • NEARBY_CONFIG_READERS: in 0.14.0 the requirements and pyproject readers call _nearby_config_names_an_index through a helper. The test now follows helper calls, which adds script and conda-env (the page offers neither).
    • The Python mirrors of rules that were "on main, after 0.13.0" now call the released code (sources._NOT_REQUIREMENTS, sources._unread_project). The JS mirrors' comments say 0.14.0, and a new test checks SIDE_WORDS/NESTED_DEPTH against the release.
  • CSP unchanged (no new origin, no inline script/style). All new text goes through textContent/el().

Verified in the browser. I served site/ locally and loaded the page. Pyodide 314.0.8 installs wheelgap 0.14.0 with micropip ("Checked with wheelgap 0.14.0, in your browser."), with no CSP errors. cp-algorithms/cp-algorithms, scripts/preview-requirements.txt (PyYAML==6.0.3), on 3.15 linux-x86_64, shows:

  • the row PyYAML 6.0.3 · source [gap wheel] · Fix: → 6.0.4, with the tag's tooltip "if you can't upgrade PyYAML: unofficial, built by wheelgap from the PyPI sdist; not from the package's maintainers";
  • a Gap wheels section with the note "Upgrade first: …" and the CLI's text: "As a fallback, wheelgap's gap wheel index has unofficial wheels PyPI lacks … PyYAML 6.0.3: 3.15 linux-x86_64 (if you can't upgrade PyYAML)", followed by the pip line and the hash line for the existing PyYAML==6.0.3 line. This matches uvx [email protected] --fix on the same file, which says "pyyaml 6.0.3 -> 6.0.4" and then the same fallback section.

The page's three examples, 0.13.0 (main) vs 0.14.0 (this branch), same default targets:

repo 0.13.0 0.14.0 why
fastapi/full-stack-fastapi-template (3.14, linux-x86_64) 1 of 77: dkimpy 1.1.8 same no change
karpathy/nanochat (3.10 × 4 platforms) 18 of 104 1 of 98: torch 2.9.1+cu128 on macos-arm64 0.14.0 answers a uv.lock the way uv sync installs it (#572 in wheelgap). It reads [tool.uv] conflicts: the lock's cpu and gpu extras can't be installed together, so the 15 nvidia-* packages and triton (pulled in only under extra == cpu and extra == gpu, or Linux-only) are no longer counted on macOS/Windows. It also counts each fork only where uv installs it: contourpy 1.3.3 (the Python ≥3.11 fork; 3.10 gets 1.3.2) and plain torch 2.9.1/+cpu drop out. The CLI (--offline) gives the same 20 → 1 rows.
browser-use/browser-use (3.12 × 4) all 83 have wheels same no change

2. Nightly scan (.github/workflows/scan.yml)

  • WHEELGAP 0.9.0 → 0.14.0, WHEELGAP_INSTALL 0.11.0 → 0.14.0. The "Add issue trackers for gaps" step uses $WHEELGAP_INSTALL instead of its own 0.13.0 pin, and the comments explaining the split are removed. scripts/check_pip.py's example command now says 0.14.0.

What changes on the first night, from running python -m wheelgap.scan locally with both versions (same flags and Pyodide locks as scan.yml) on the top 50, the top 200 and the whole top 5,000, then diffing coverage.json:

  • Cells: no change. All 5,000 × 42 results are identical, and so is every summary count, so the home page numbers don't move.
  • New per-package fields (0.14.0 adds them, nothing in the tracker reads them yet): bundled_version, bundled_versions and bundled_version_differs on the packages a Pyodide lock bundles (91 of 5,000; 9 in the top 50). For example, numpy has {"3.13": "2.2.5", "3.14": "2.4.6"}.
  • pyodide_locks[].pyodide_version is now the real version (0.29.5, 314.0.7) instead of "?".
  • wheelgap is 0.14.0, so the home page header says so.

The night's other steps, run on that 0.14.0 scan against the committed data (a copy of the repo at this branch's head):

  • scripts/check_scan.py data/coverage.json data/history.json 5000 passes, with no allow_drop needed.
  • update_changes.py: "nothing recorded (wheelgap 0.9.0 -> 0.14.0, so differences aren't the packages')". update_drops.py says the same and records wheelgap: 0.14.0. So changes.json, drops.json and the new-wheels feed get no tool-made entries. The home-page trend marks the night ("wheelgap changed to 0.14.0" via chartSeries's upgrade), and platformStats gives delta 0 across the version change.
  • update_history.py, the baseline recorder and every publish step (build_lookup … build_new_wheels) run cleanly on it.
  • scripts/check_pip.py with wheelgap==0.14.0 + pip==26.3 on that scan (--top 50): 200 of 200 checks match, 36 of 36 for the packages without a pure-Python wheel, 0 errors.

The optional passes, run on that same 0.14.0 scan: first with the old pins (0.11.0 for scan_install.py and scan_way_out.py, 0.13.0 for scan_issues.py), then with 0.14.0 for all three.

  • Install trees: identical for all 498 of the top 500 checked (install).
  • Releases with wheels: identical for all 230 packages that got a way_out (917 of 918 projects checked both times).
  • Issue trackers: 701 instead of 700. The one new tracker is jellyfish, whose https://codeberg.org/jpt/jellyfish/issues 0.14.0 now recognises. Everything else is identical.

Tests (as check.yml runs them)

  • uvx --python 3.14 [email protected]: 603 passed, 2 skipped.
  • uvx --python 3.14 --refresh-package wheelgap --with "wheelgap==0.14.0" [email protected] tests/test_check_driver.py tests/test_check_parity.py: CI's "Repo checker driver" step reports 185 passed in 7.44s. That includes all six test_gap_wheels_reuse_cli_checks cases, which now run instead of being skipped, plus the two new fallback cases.
  • node --test on the six site test files: 205 passed. python3 scripts/check_notes.py passes.

For review

  • Open PR Respect uv lock environment restrictions in the repo checker #247 (uv lock environments in the checker) touches the same files (driver.py, check-logic.mjs, check.mjs, and the driver and site tests). 0.14.0 now reads [tool.uv] environments itself, so it may be partly redundant after this. Expect a rebase either way.
  • The driver now calls private wheelgap helpers it previously mirrored (sources._unread_project, sources._NOT_REQUIREMENTS, and fix.plan/alternatives/any_upgrade). The worker's pin and these tests keep them in step.

🤖 Generated with Claude Code

patrickballard and others added 2 commits November 24, 2026 01:53
…lback

0.14.0 is the first release with --fix (gapwheels, fix), so the gap wheel marks and section are on, and their tests run: the importorskip is gone, so a pin without the module fails. As the CLI, the gap wheel section comes after the upgrades fixes() found: a gap wheel for a gap an upgrade fixes is the fallback ('if you can't upgrade NAME'). Also for 0.14.0: a missing include is a SourceError raised from the FileNotFoundError, compared with an abspath'd root; the JSON trim keeps digests.sha256 (--hash) and upload_time_iso_8601 (exclude-newer); a script's *.py.lock is read offline as a uv.lock; the nearby-settings readers include those that reach it through a helper; the Python mirrors of sources' rules call the released ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The core scan was on 0.9.0, the install-tree and way-out passes on 0.11.0 and the issue-tracker pass on 0.13.0. All four now use 0.14.0 (WHEELGAP and WHEELGAP_INSTALL), so the comments explaining the split are gone; check_pip.py's example command follows. update_changes.py and update_drops.py skip the first night on the new version, as they do for any wheelgap change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Bump the wheelgap pins after 0.14.0: the checker's (0.13.0) and the nightly scan's (0.9.0)

1 participant