Skip to content

feat(cli): oa check reads pylock.toml (PEP 751) - #490

Merged
M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/lockfile-pylock
Nov 16, 2026
Merged

M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/lockfile-pylock

Conversation

@orcamedia

Copy link
Copy Markdown
Contributor

oa check reads PEP 751 lockfiles (pylock.toml, pylock..toml) as uv export and pip lock write them, against a PyPI repository; vcs, directory and archive packages are left out.

Neither tool writes the optional dependency lists, so the file says nothing about who requires what. Rather than print "-" ("the project requires it") for every package, lockfile.GraphRecorded tells oa check when a lockfile has no graph: the table then leaves out REQUIRED BY and says why, and --format json reports "dependency_graph": false (true for every other lockfile). The same switch would let go.sum in later. --no-dev is refused (no groups recorded).

Fixtures are a real uv export and a real pip lock, renamed to acme-*. Server side unchanged (same PyPI paths as #486). Touches the same lists as #489; whichever merges second needs a small rebase.

🤖 Generated with Claude Code

pkg/lockfile reads PEP 751 lockfiles (pylock.toml, pylock.<name>.toml), as
uv export and pip lock write them, against a PyPI repository: the packages
that are no vcs, directory or archive package, names normalized (PEP 503).

Neither tool writes the optional dependency lists, so such a file says
nothing about who requires what. Printing "-" there would claim the project
requires every package itself; instead lockfile.GraphRecorded tells oa check
whether the lockfile records a dependency graph (every format does, a
pylock.toml only when it lists dependencies). Without one the table leaves
out REQUIRED BY and says why, and --format json reports
"dependency_graph": false (true for every other lockfile). The same switch
would let go.sum in later. pylock.toml records no dependency groups either,
so --no-dev is refused for it.

The fixtures are a real uv export of the project of the uv.lock fixture and
a real pip lock, renamed to acme-*; fuzz target included.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@M0Rf30
M0Rf30 force-pushed the feat/lockfile-pylock branch from f3d0c37 to 77b20e9 Compare November 16, 2026 16:04
@M0Rf30
M0Rf30 merged commit 2bdd516 into openartifact:main Nov 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants