Skip to content

Repo checker: "No lockfile found" for a library that declares its dependencies in setup.cfg; offer the check that does work #221

Closed

Description

@patrickballard

Paste httpie/cli:

No lockfile found
The repo check reads a uv.lock, poetry.lock, pdm.lock, pylock.toml, Pipfile.lock, requirements.txt, pixi.lock or pyproject.toml, and httpie/cli has none. Run uvx wheelgap in a checkout for anything else.

The advice doesn't help: uvx wheelgap in a checkout of that repo finds no input either, because the dependencies are in setup.cfg (install_requires = pip, charset_normalizer>=2.0.0, ...), which wheelgap doesn't read. The visit ends there.

For a library that is published on PyPI there is a check that works and needs no file: wheelgap reads the published package's own metadata.

uvx wheelgap --deps httpie -t linux-x86_64,win-arm64

The page can't know that from the repo name (cli), but the repo says it: setup.cfg has [metadata] name = httpie. A pyproject.toml with a [project] name but no dependencies wheelgap can read (dynamic dependencies from setup.py) is the same case.

Where

  • noLockfile() in site/check/check.mjs writes the verdict.
  • load() in site/check/worker.mjs has the repo's file list (paths) and fetches files with getText(rawUrl(...)).
  • cliCommand() in site/check/check-logic.mjs builds the command line the page shows elsewhere.

What to do

  • When no file can be checked and the repo root has a setup.cfg or a pyproject.toml, fetch it and read the project name: name under [metadata] in setup.cfg (a plain value only: not attr: or file:), or [project] name in pyproject.toml. Validate it as a package name before using it anywhere. Don't read setup.py.
  • With a name, the verdict becomes: No lockfile found, but this looks like the PyPI package httpie. Under it:
    • the command that checks what it installs, with the targets the page detected from the repo's CI: uvx wheelgap --deps httpie -t ...;
    • a link to the package's tracker page, only if p/<name>/ exists in the scan (the lookup index the home page's search uses knows which names do).
  • Without a name, the verdict is as today, minus the "Run uvx wheelgap in a checkout" sentence when the repo has nothing wheelgap reads.
  • The same block goes under the "wheelgap couldn't read pyproject.toml" error when there is no other file to move on to.
  • Later: run that package check in the page itself.

Done when:

  • A pure function in site/check/check-logic.mjs takes the text of a setup.cfg or pyproject.toml and returns the name or null, with tests in tests/site/check-logic.test.mjs for: name = httpie; name = attr: pkg.__name__ (null); a name with characters a package name can't have (null); [project] name = "x"; a file with neither.
  • tests/site/check-page.test.mjs: a repo with only setup.cfg shows the new verdict and the command; a repo with nothing shows the old one.
  • The command is built by cliCommand() or shares its quoting, so a name can't inject anything into a copied command line.
  • In the PR: httpie/cli 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
    77542da
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