Repository navigation
Repo checker: link tracker page and issue tracker for dead-end fixes (#214) - #231
Conversation
…heelgap#214) - Under Fix, offer 'coverage and build results' (linking to ../p/<name>/) and 'ask the maintainers' (linking to the package's issue tracker with rel='noopener nofollow') when a package has no newer wheel (kind 'none') or bumps drop existing wheels ('loses'). - In the package name cell, link directly to ../p/<name>/ when the tracker has the package, placing a small PyPI link beside it. For private/unlooked-up packages, retain plain text; for packages not in the tracker, retain the direct PyPI link. - Validate maintainer issue tracker URLs with validIssuesUrl() (scheme https:, hostname with dot, printable ASCII, no userinfo/credentials). - Update fixPrompt() to include '(ask the maintainers: <url>)' for 'none' and 'loses' rows when the issue tracker is known. - Support both raw builds array and { builds: [...] } object shape in labFor(). - Cross-platform root path stripping in driver.py. - Comprehensive unit tests in check-logic.test.mjs, check-page.test.mjs, and test_check_driver.py.
|
Thanks, @dianatofficial, and quick work on this! Building every link with #214 is labelled
(Review assisted by Claude.) |
…e, no driver change validIssuesUrl() now makes exactly the check valid_issues_url() in scripts/build_pages.py makes (that function has no host list, so neither does this): https with a host read from the URL's own text, so https:///issues has none and an empty user@ is refused, without the extra dotted-host rule. fixLinks() takes (row, fix, trackerPkg, gapWheels) only, without guessing the order or the rowLinks/linksFor aliases, and labFor() is back to taking the builds list, with the callers passing it. The _strip_root change in driver.py, unrelated to wheelgap#214, is left out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two conflicts, both from appending: check.mjs's import list is the union (main's inputHint, pickRequestedFile, autoPick, packageCliCommand and privatePyprojectReason with wheelgap#231's fixLinks), and check-page.test.mjs keeps wheelgap#231's renderTable test and main's tests. loadLab(), renderTable(), fixLinks(), validIssuesUrl() and fixPrompt()'s tracker argument merged without conflict; nothing on main reads state.lab as a bare builds list. 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 @dianatofficial! We made the issue-tracker link use exactly the package page's check ( If you would like another: wheelgap/wheelgap#651 is a docs one (one page listing where wheelgap's answer can differ from pip's and uv's, and why), and nobody has it yet. (Posted with help from Claude.) |
Brings in #231 and #225. The import lists conflicted; #225's badge test now passes privateText to renderVerdict, which calls it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolves #214
Summary
When a dependency has no newer release with a prebuilt wheel (
kind: "none") or newer releases would drop wheels on other targets (kind: "loses"), the checker previously showedno newer release has a wheelwithout actionable guidance.This PR provides next steps and links for those rows:
coverage and build resultslinking to the package's tracker page (../p/<name>/) when the tracker covers the package.ask the maintainerslinking to the maintainers' issue tracker (withrel="noopener nofollow").../p/<name>/) when tracked, alongside a compactPyPIlink.validIssuesUrl(): requires HTTPS protocol, valid hostname containing a dot, printable ASCII, and no embedded credentials (@, userinfo).fixPrompt()), appends(ask the maintainers: <url>)for dead-end rows where the issue tracker is known.driver.py(_strip_root) across POSIX and Windows path separators.Visual Comparison
Testing on
fastapi/full-stack-fastapi-template(which encounters a gap on Python 3.14):Before
After
Test Coverage
tests/site/check-logic.test.mjs,tests/site/check-page.test.mjs):fixLinks picks a row's links under Fix: none, loses, gap wheel, private, and invalid issues URLsrenderTable shows the links in the Fix cell and the package-name link for a package the tracker has, and neither for one it doesn'ttests/test_check_driver.py,tests/test_check_parity.py):ruff checkreports 0 errors.