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.
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.tomlformat.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.tomlfile, then some equivalent solution could be used for:pip- usepip install -r pylock.tomlfirst to install dependencies, then install the packageuv- similaruv pip sync pylock.tomlpipsupport is currently experimental, it may wait until it gets out of this stage.I guess this is more for a discussion on potential implementation.