Repository navigation
Repo checker: fall back from an all-private pyproject.toml - #223
patrickballard merged 3 commits into
Conversation
|
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 It looks good overall. #205 is a (Review assisted by Claude.) |
…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]>
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]>
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]>
|
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 (Posted with help from Claude.) |
Closes #205.
When an automatically selected
pyproject.tomlskips 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 anduv.lockguidance.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:
After: