Skip to content

Repo checker: a requirements.txt with PyTorch's --extra-index-url ends in "No packages were checked" #219

Closed

Description

@patrickballard

A requirements file that names another index is treated as private from top to bottom: none of its packages is looked up. That is right for a company index. It is a dead end for the most common extra index there is, PyTorch's public one. Paste jhj0517/Whisper-WebUI, whose requirements.txt starts with --extra-index-url https://download.pytorch.org/whl/cu128:

No packages were checked
Not checked: requirements.txt 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 and their names aren't sent to pypi.org: faster-whisper, gradio, gradio-i18n, matplotlib, pyannote.audio, pytubefix, ruamel.yaml, torch, and 2 more. To check them on that index, run uvx wheelgap --index-url with its URL in a checkout.

Two things are wrong for this visitor:

  • Nothing here is private. gradio and matplotlib only exist on PyPI, and the other index is a public one that anyone can name. Projects that install PyTorch are among the ones with the most wheel trouble, and this line is how PyTorch's own instructions say to install it.
  • The advice doesn't work. --index-url https://download.pytorch.org/whl/cu128 makes wheelgap look every package up on that index alone, and it has no gradio.

Where

  • _private() and _lookups() in site/check/driver.py: return source.kind != "pixi" and not source.pypi_only.
  • The alert text is built in site/check/check.mjs ("Not checked: ... names an index or source other than PyPI").
  • wheelgap sets pypi_only to false for any index option line. It doesn't say which line or which URL, so the driver has to read the option lines of the files it fetched itself.

What to do

  • Keep a short list of public extra indexes in driver.py, starting with one host: download.pytorch.org. Adding a host is a reviewed change, with a comment saying who runs it.
  • When a requirements file isn't PyPI-only, read its option lines (and those of its fetched includes). If every index option is an --extra-index-url whose host is on the list, and no pyproject.toml or uv.toml beside it names an index, the names aren't private: look the packages up on PyPI as for any requirements file. One --index-url, --find-links, --no-index, unlisted host, or line the driver can't read keeps the whole file private, as today. When in doubt, private.
  • A package the extra index may serve instead of PyPI must not get PyPI's answer as if it were certain. First step: for the PyTorch index, show torch, torchvision and torchaudio as unknown, with the reason "may be installed from download.pytorch.org, which this page doesn't read". Everything else is checked.
  • Say what happened in an alert: requirements.txt also installs from download.pytorch.org (--extra-index-url). This page checked PyPI only.
  • Fix the advice for the files that stay private: with an --extra-index-url, --index-url alone isn't the same install. Say to run uvx wheelgap requirements.txt in a checkout, and that it checks PyPI's files.

Done when:

  • tests/test_check_driver.py covers: the PyTorch line (packages listed for lookup, torch unknown with the reason); the same line plus an --index-url (all private); an --extra-index-url to another host (all private); a URL with credentials on the listed host (private, and the URL appears nowhere in the result); the option in an included file.
  • tests/site/check-page.test.mjs shows the new alert and that the old "run uvx wheelgap --index-url" line is gone for an extra index.
  • test_a_private_index_package_is_never_looked_up_on_pypi still passes unchanged.
  • In the PR: jhj0517/Whisper-WebUI before and after, as screenshots.

Activity

  1. added
    bug
    help wanted
    on Nov 21, 2026
  2. added a commit that references this issue on Nov 23, 2026
    760077a
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 wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions