Skip to content

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

Closed

Description

@patrickballard

Paste a repo whose root has a pyproject.toml and no lockfile beside it, and the checker picks that pyproject.toml. If the file has a [tool.uv.sources] table or a [[tool.uv.index]], which most uv projects do, every dependency is skipped and the verdict is a dead end:

# pyproject.toml at the repo root; the uv.lock is in backend/, or isn't committed
[project]
name = "myapp"
dependencies = ["fastapi", "numpy", "mylib"]

[tool.uv.sources]
mylib = { workspace = true }

The page shows:

No packages were checked
Not checked: pyproject.toml names an index or source other than PyPI (an --index-url or --extra-index-url line, a [tool.uv] index or sources setting, a Pipfile source), so these may not be PyPI's packages ...

The visitor gets no result and no next step. Often the same repo has a uv.lock or a requirements.txt one folder down that the checker could read in full.

Why

  • _private() in site/check/driver.py treats every package of a requirements file, pyproject.toml or Pipfile.lock as private when wheelgap says the input isn't PyPI-only (source.pypi_only). For a pyproject.toml, any sources key under [tool.uv] is enough (_UV_INDEX_KEYS in wheelgap's sources.py), even when it only names a workspace member.
  • unreadableReason() in site/check/check-logic.mjs moves on from an auto-picked pyproject.toml only when wheelgap couldn't read it or it lists no dependencies. Its comment says: "One whose packages were all skipped ... is an answer."
  • verdictText() then says "No packages were checked".

What to do

  • Fall through: in unreadableReason(), also give a reason when a pyproject.toml was read, lists dependencies, and every one of them was skipped as a private index (result.private.length === result.listed, or the equivalent from the fields check() returns). withoutUnreadable() then tries the repo's next file, exactly as it does for a pyproject.toml with no dependencies. This only applies to a file the page picked itself.
  • When there is no other file, or the visitor chose the file, explain better. Replace the verdict with one that says what happened and what to do, for example: "pyproject.toml wasn't checked: it sets [tool.uv] sources, so this page can't tell which packages are PyPI's" and, under it, the command that does check it (uvx wheelgap pyproject.toml ..., which the page already builds with cliCommand()), and "or commit a uv.lock: the checker reads it in full, with no lookups".
  • Say in the "What was read" list which file was skipped and why, as it does for a pyproject.toml with no dependencies.
  • Later (needs a change in wheelgap first, so not this issue): with only [tool.uv.sources] set and no index setting, the dependencies not named in sources can only come from PyPI, and could be checked.

Done when:

  • tests/site/check-logic.test.mjs covers unreadableReason() and withoutUnreadable() for: an auto-picked pyproject.toml with all packages private and another file in the repo (moves on); the same with no other file (stays, with the new verdict text); the same file chosen by the visitor (stays); a pyproject.toml with some private and some checked packages (stays: it's an answer).
  • tests/test_check_driver.py has a case for the pyproject.toml above that pins what check() returns (listed, packages, private, skipped), so the page's rule has something stable to read.
  • tests/site/check-page.test.mjs shows the new verdict and that the CLI command is on the page.
  • In the PR: a public repo that showed "No packages were checked" before and shows a result now, with before and after screenshots.

Activity

  1. added
    bug
    help wanted
    high impact
    on Nov 21, 2026
  2. dianatofficial commented on Nov 21, 2026

    @dianatofficial
    Contributor

    I'll take this on! Working on the fallback in \unreadableReason()\ and \withoutUnreadable()\ when an auto-picked \pyproject.toml\ has all packages skipped as private, the improved verdict explaining [tool.uv] sources\ with the CLI command and uv.lock recommendation, the 'What was read' list, and test coverage across \check-logic.test.mjs, \ est_check_driver.py, and \check-page.test.mjs\ with before/after screenshots.

  3. patrickballard commented on Nov 21, 2026

    @patrickballard
    ContributorAuthor

    Thanks for jumping on this, @dianatofficial, and for the clear plan! #223 is already open for this one, though, so it's the one we'll review.

    If you'd like another repo checker issue, #214 is free: when the Fix column says "no newer release has a wheel", the checker could link the package's own tracker page (p/<name>/) so the visitor has somewhere to go next. It's right next to the code you were looking at in site/app.js.

    (Reply assisted by Claude.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedhigh impact

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions