Skip to content

Repo checker: a repo that keeps its requirements in requirements/default.txt or requirements-dev.txt ends in a dead end #218

Closed

Description

@patrickballard

The checker lists a repo's files by exact name: uv.lock, pylock.toml, poetry.lock, pdm.lock, Pipfile.lock, requirements.txt, requirements.lock, pixi.lock, and pyproject.toml. Many projects keep their requirements under other names, and for those the page has nothing to offer. Paste celery/celery:

wheelgap couldn't read pyproject.toml: pyproject.toml: no [project] table, so there are no dependencies to read

Celery's pyproject.toml holds only tool settings. Its dependencies are in requirements/default.txt (billiard>=4.3.2, kombu>=5.7.0, ...), with more files beside it. The page never sees them: plan() returns pyproject.toml alone for this repo. The same goes for requirements-dev.txt in psf/requests and for requirements/base.txt, local.txt and production.txt in cookiecutter-django's template: none of them is offered in the file picker.

wheelgap itself reads any *.txt as a requirements file, and the checker already looks requirements files up on PyPI and fetches their -r includes. Only the file list is missing them.

Where

  • plan() in site/check/driver.py: if pp.name in LOCKFILES or pp.name == "pyproject.toml".
  • OFFLINE, LOOKUPS and needs() in the same file decide by file name which files need lookups.
  • pickLockfile(), withoutUnreadable() and unreadableReason() in site/check/check-logic.mjs choose the file and move on from an unreadable pyproject.toml.

What to do

  • In plan(), also list a file that is clearly a requirements file by its name: requirements*.txt, *-requirements.txt and *_requirements.txt, and a .txt file directly inside a folder named requirements. Not constraints*.txt, and nothing in the folders _skipped_folder() already leaves out.
  • Order: a folder's exactly-named files first, as today. Then the new ones, runtime names before the rest: default, base, main, prod, production, requirements, then alphabetical. So an automatic pick lands on what the project installs, not on docs.txt.
  • These files need lookups: make sure needs() and check() treat them as they treat requirements.txt (today they test the name against OFFLINE; check every place that uses LOOKUPS).
  • The automatic pick is unchanged when the repo has an exactly-named file that can be read. When the pick is a pyproject.toml that can't be (celery), withoutUnreadable() moves on to the next file, which is now there.
  • All listed files show in the "Lockfile" picker, within MAX_LOCKFILES.

Done when:

  • tests/test_check_driver.py: plan() on a path list like celery's returns pyproject.toml and then requirements/default.txt before requirements/docs.txt; constraints.txt and files under tests/ are not listed; a repo with a root requirements.txt still gets it first.
  • tests/test_check_driver.py: needs() and check() read requirements/base.txt with a -r include, as they read requirements.txt.
  • tests/test_check_parity.py has a case for one of the new names, so the page's answer still matches uvx wheelgap.
  • tests/site/check-logic.test.mjs: an auto-picked pyproject.toml with no [project] table moves on to requirements/default.txt.
  • In the PR: celery/celery before and after, as screenshots.

Activity

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

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions