Community adoption of pylock.toml (PEP 751)

pip, PDM, uv can now export pylock.toml files.

It’s exciting to see how quickly the community moved on this.

23 Likes

Oh wow!

I also just realised uv supports installation (in addition to export) of pylock.toml

uv sync pylock.toml or uv pip install -r pylock.toml

1 Like

Does anyone know of a place that’s tracking the progress of adopting both the generation of and installation from PEP 751 lock files across the various packaging tools? (Other than this thread itself, obviously)

If there isn’t one already, I’ll see if I can put a simple page together with the statuses and links to issues/PRs/docs/etc. (somewhat similar to this one for free threading Compatibility Status Tracking - py-free-threading)

1 Like

To anyone interested, I wrote a complete, immutable dataclass-based pylock model, with fairly extensive validation, and toml compatible to/from dict serialization in pip: Add pylock parser and validator by sbidoul · Pull Request #13369 · pypa/pip · GitHub

models/pylock.py only depends on packaging. If there is interest we can consider making it a standalone library or include it in packaging.

7 Likes

This is great! I think including it in packaging would make a lot of sense.

6 Likes

Is there today a website allowing to check currently manualy made lockfiles ?