Skip to content

Repo checker: fall back from an all-private pyproject.toml - #223

Merged
patrickballard merged 3 commits into
wheelgap:mainfrom
benjibunbun:fix/205-private-pyproject-fallback
Nov 22, 2026
Merged

patrickballard merged 3 commits into
wheelgap:mainfrom
benjibunbun:fix/205-private-pyproject-fallback

Conversation

@benjibunbun

Copy link
Copy Markdown
Contributor

Closes #205.

When an automatically selected pyproject.toml skips every dependency because its sources aren't known to be PyPI, try the next file and record why in “What was read”. Explicit selections and a sole remaining file stay selected, with an explanation, the local command and uv.lock guidance.

Count dependency entries separately from display names so repeated requirements with different markers work too. The existing origin checks are unchanged.

In Chrome/Pyodide, OpenBMB/MiniCPM-OCR at c21a3ca goes from zero packages checked to 68 via sdk/uv.lock, using Python 3.13 on Linux x86_64 and Windows ARM. Before/after screenshots accompany the comparison. Manual selection and the no-alternative case were also checked at desktop and mobile widths.

All README checks passed on current main: 599 Python tests (2 expected module skips), 84 driver/parity tests (6 existing gapwheels skips under 0.13.0), and 153 Node tests. Notes and syntax checks passed. Hosted CI hasn't run.

Assisted by Codex.

Before and after screenshots

Before:

Before: no packages were checked

After:

After: 68 packages checked through sdk/uv.lock

@patrickballard

Copy link
Copy Markdown
Contributor

Thanks @benjibunbun, this is a careful piece of work: counting private entries separately from the deduplicated names is exactly the kind of edge case that would otherwise slip through, and the tests drive the page's real onResult() and renderVerdict() path, which is great to see.

It looks good overall. #205 is a help wanted issue on the checker page, so Patrick will review and merge this one himself.

(Review assisted by Claude.)

patrickballard and others added 2 commits November 22, 2026 11:55
…s cover

From an all-private root pyproject.toml the page moved on to the next file, which could be backend/requirements.txt: its names are private by that pyproject's [tool.uv] settings too, and they were looked up on pypi.org. The fallback now skips looked-up files in the pyproject's folder and below, and takes an offline lockfile or a file elsewhere; with none left the page stays on the pyproject.toml and shows the local command.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One conflict, in tests/site/check-page.test.mjs, where both sides appended tests: both kept (wheelgap#223's resultPage tests, then wheelgap#226's blob-link and wheelgap#227's hint tests). check.mjs, check-logic.mjs and driver.py merged without conflict: onResult() keeps the all-private fallback with its folder filter before wheelgap#226's fallback notice, renderVerdict() has both the private-pyproject verdict and the named-file notice, and driver.py has private_count with the reader-based offline check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard
patrickballard merged commit ff62ddd into wheelgap:main Nov 22, 2026
1 check passed
patrickballard added a commit to dev-burnern/tracker that referenced this pull request Nov 22, 2026
Resolved with wheelgap#226 and wheelgap#223 as the second review set out. plan() entries are {path, offline: _reads_offline(p)} with other: True for requirements files under other names. pickRequestedFile()'s own pick (no file named, or one that can't be checked) is now autoPick()'s and passes its choose through; a named or added file has choose null. onLoaded() takes wheelgap#226's picked/lockfiles/fileNotice, shows noLockfile only with neither a lock nor a choice, sets the targets, then asks with chooseFile(), which shows the fallback notice. renderSetup keeps the Choose a file option and clears fileNotice on change. The badge default is autoPick() over the files a link didn't add. wheelgap#223's private-pyproject folder filter runs before autoPick(), so covered other-named files are never offered or checked. Tests: both sides kept, harnesses given pickRequestedFile and privatePyprojectReason, pickRequestedFile results now carry choose, and new cases for these interactions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
patrickballard added a commit to dev-burnern/tracker that referenced this pull request Nov 22, 2026
Resolved as the second review set out. renderVerdict() sets isClean, toggles the card, hides the README badge offer unless the result is clean with no private-index packages, then uses wheelgap#223's verdict ternary (private pyproject, every Python left out, verdictText). renderNext() keeps wheelgap#225's Keep it green condition (r.private empty) with main's badge default from wheelgap#226/wheelgap#229 untouched. The copy-share handler, with the private count that drops the ✓, sits beside main's copy-prompt handler, which passes state.lab (wheelgap#231). Imports are the union, with shareText. Tests: both sides kept; wheelgap#225's renderVerdict/renderNext harness given autoPick and privatePyprojectReason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thanks @benjibunbun! We added one guard before merging: after an all-private pyproject.toml, the page no longer moves on to a requirements file in the same folder, since that file shares its private index.

If you would like another: wheelgap/wheelgap#634 is a requirements-file bug (a --pre or --prefer-binary line changes what pip installs, and wheelgap skips it silently), and nobody has it yet.

(Posted with help from Claude.)

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.

Repo checker: a pyproject.toml with [tool.uv] sources or an index ends in "No packages were checked"

2 participants