Repository navigation
Repo checker: with no input at the root, follow wheelgap DIR into the subfolders instead of picking a file - #241
Merged
Merged
Conversation
… subfolders instead of picking a file With nothing to check at the root, the page checked the shallowest lockfile or requirements file it found in a subfolder, on its own (transformers: a utils/ requirements file; langchain: libs/core/uv.lock). wheelgap DIR checks a subfolder's input only when it is the only one, isn't named for development, tests, docs or benchmarks, and the root isn't a project of its own; otherwise it lists them and asks. autoPick() now mirrors those rules (load_directory() and _nested_inputs() on wheelgap main), plan() says whether the root has a setup.py or setup.cfg and whether it cut its list, check() says whether a pyproject.toml it couldn't read describes a project, and the chooser gives the reason in wheelgap DIR's words. Closes #238. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…kipped folders and the chooser's URL From the second review of #241. The root's requirements files under other names now count as wheelgap's _other_requirements() reads them (requirements*.txt and requirements/*.txt), so prod-requirements.txt or dev-requirements.txt beside backend/uv.lock no longer decides the pick, and backend/docker-requirements.txt is no rival to backend/requirements.txt. plan() names the inputs wheelgap DIR finds in folders it skips (build/, dist/, target/), and autoPick() never takes the one input it lists for the only one beside a non-side one of those. chooseFile() drops the lock= of a file the page moved on from, so a reload or shared link asks again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #238
When a repo has nothing to check at its root, the page used to check the shallowest file it found in a subfolder by itself, and said nothing about the other files.
wheelgap DIRlists the files and asks instead. Now the page followswheelgap DIR's rules (load_directory()and_nested_inputs()in wheelgap'ssources.pyon main). They're mirrored inautoPick(), asisSideFile()already is, because the page pins 0.13.0.Before and after (checked in the browser on today's trees)
huggingface/transformerspyproject.tomlhas no[project], so the page moved on toutils/checkers-requirements.txtand showed "No packages were checked" for it as if it were the project. (Today plan() skips the benchmark and example folders, so the file it fell back to is no longerbenchmark_v2/requirements.txt.)pyproject.tomlwasn't read.langchain-ai/langchainlibs/core/uv.lockby itself: "10 of 154 packages have no wheel for at least one of the 4 targets".666ghj/MiroFish(onlybackend/uv.lock)backend/uv.lockbackend/uv.lock. The verdict detail now says so: "No input at the root: checked backend/uv.lock, the only one in a subfolder."Screenshots aren't attached: they can't be uploaded from the CLI. The texts above are copied from the page.
Rules now
A file in the root, or in the folder a link names: same as before. A link to a file, or a file picked under "Lockfile", is also checked as before.
Requirements files under other names in the root are counted the way
_other_requirements()counts them:requirements*.txtandrequirements/*.txt.prod-requirements.txtand similar names are not counted. The only one is checked unless it's side-named. With several, the page asks. These now come before the subfolders, as inwheelgap DIR. Before, an exactly-named file anywhere won.Otherwise, one input per subfolder up to 3 folders down: the folder's first lockfile name, else its
pyproject.toml. The foldersplan()skips are left out. That one input is checked only when all of these hold:plan()didn't cut it at 30, and there's no input that isn't side-named in a folderplan()skips butwheelgap DIRsearches (build/,dist/,target/; the newunlisted_inputs);setup.pyorsetup.cfg, and any rootpyproject.tomlthe page tried was tool settings only;In every other case the page lists the files with
chooseFile(), usingwheelgap DIR's reason: "but inputs in its subfolders", "Its own dependencies are in setup.py, which wheelgap can't read, so the one input in its subfolders isn't taken for the project's", "more than one file that could hold the project's dependencies", or "the only inputs it has are, by their names, for development, tests, docs or examples".The step after an unreadable root
pyproject.tomlfollows the same rules.check()in the driver now returnsprojectfor apyproject.tomlit couldn't read. This mirrors_unread_project():[project],[build-system], flit metadata, PDM-legacy dependencies, Poetry dependencies, or not valid TOML. With no such answer, the root is taken for a project.plan()addsroot_project_files,more_lockfilesandunlisted_inputs. When the page asks,chooseFile()now drops thelock=of a file it moved on from. Before this, the URL after the transformers fallback keptlock=pyproject.toml, so a reload showed the read error instead of the chooser.Design choices (where the issue left room)
requirements-dev.txtbeside one subfolder input now gets the chooser.load_directory()counts it as a rival. This changes one existingautoPick()assertion, for the shapebackend/uv.lock+ rootrequirements-dev.txt. Before, the page checkedbackend/uv.lock. The issue's "existing tests pass unchanged" covers it, so please confirm. Reverting is one line inautoPick()plus that assertion.pyproject.tomlwhose dependencies are all private (Repo checker: fall back from an all-private pyproject.toml #223) is now the project's. Likewheelgap DIR, the page doesn't take a subfolder's lockfile for it. It asks instead of moving on tobackend/uv.lock. Two page tests from Repo checker: fall back from an all-private pyproject.toml #223 changed to match.pyproject.tomlcounts as an input whether or not it lists dependencies. The page can't tell before fetching it. This can only make the page ask or try more, never pick wherewheelgap DIRasks. For cpython, the page triesTools/peg_generator/pyproject.toml(tool settings only), moves on, and then asks between theDoc/files.wheelgap DIRdoesn't read these. The page lists them ("elsewhere") rather than showing "No lockfile found".pyproject.tomlbeside one other input makes the page ask, wherewheelgap DIRpicks the other input.Tests
tests/site/check-logic.test.mjs:autoPick()on the shapes from the issue: MiroFish (picked), transformers (choose), langchain (choose), cpythonDoc/pylock.toml(choose), and rootsetup.py+tools/requirements.txt(choose). Also rootpyproject.tomlstates, a cut file list, side folders, rivals beside a subfolderrequirements.txt, and deeper files.tests/site/check-page.test.mjs: after the rootpyproject.tomlfallback, a transformers-shaped repo (both the issue's shape and today's tree) shows the chooser and posts no second check. MiroFish's verdict names the subfolder pick, and langchain asks.tests/test_check_driver.py: the newplan()fields andcheck()'sproject.No CHANGELOG in this repo.
🤖 Generated with Claude Code