Skip to content

Switch to pylock.toml from our test-requirements.txt lockfile #3437

Open

Description

@A5rocks

Actually, there's a standardized lockfile now. Pip's support for it is in beta, but I figure we can switch to it whenever. In particular, it looks like we can swap pip compile requirements.in --universal -o requirements.txt to uv pip compile requirements.in -o pylock.toml (I don't know if we can do test-requirements.in and docs-requirements.in in the same file...)

Originally posted by @A5rocks in #3188 (comment)

Activity

  1. A5rocks commented on May 25, 2026

    @A5rocks
    ContributorAuthor

    I expect uv pip compile pyproject.toml --universal --group test --group docs --python-version=3.10 -o pylock.toml to work (with dependency groups test and docs added to pyproject.toml), but currently that doesn't compile the dependency groups as separate -- so everything is locked to the same exact version. Unfortunately, that's not good enough for us!

    Reading through the pylock.toml spec, I think this can be supported. So I guess we just need uv to fix this (or for me to find the right flag, maybe?)...

    Reference: astral-sh/uv#13060

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions