Skip to content

support PEP 751 pylock.toml files in backends #1807

@awariac

Description

@awariac

What's the problem this feature will solve?

Installing/running package in an isolated environment will be more reproducible (with exact dependencies versions as used when packaging), if the package source includes pylock.toml format.
I think this would be potentially desired in a case of an isolated environment for one tool.

PEP 578 introduced a new common dependency locking format, and it recently gets supported in other tools - pip (currently experimental), uv.

Describe the solution you'd like

If the package contains pylock.toml file, then some equivalent solution could be used for:
pip - use pip install -r pylock.toml first to install dependencies, then install the package
uv - similar uv pip sync pylock.toml

pip support is currently experimental, it may wait until it gets out of this stage.

I guess this is more for a discussion on potential implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions