Repository navigation
Description
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()insite/check/check.mjswrites the verdict.load()insite/check/worker.mjshas the repo's file list (paths) and fetches files withgetText(rawUrl(...)).cliCommand()insite/check/check-logic.mjsbuilds the command line the page shows elsewhere.
What to do
- When no file can be checked and the repo root has a
setup.cfgor apyproject.toml, fetch it and read the project name:nameunder[metadata]insetup.cfg(a plain value only: notattr:orfile:), or[project] nameinpyproject.toml. Validate it as a package name before using it anywhere. Don't readsetup.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).
- the command that checks what it installs, with the targets the page detected from the repo's CI:
- 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.mjstakes the text of asetup.cfgorpyproject.tomland returns the name or null, with tests intests/site/check-logic.test.mjsfor: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 onlysetup.cfgshows 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/clibefore and after, as screenshots.
Activity
Package fallback: read setup.cfg beside a build-system-only pyproject…
Repo checker: offer wheelgap NAME --deps when setup.cfg or pyproject.…