Skip to content

Make "pipx run" use the exact versions in the lock file #2450

Answered by pawamoy
noamraph asked this question in Q&A
Discussion options

You must be logged in to vote

Even if you bundle the lock file in your package distributions, tools like pipx won't be able to use it. The only way is to pin dependencies in pyproject.toml, so that these exact versions are encoded in the distributions metadata. Or maybe there's a way to write a PDM plugin that modifies the dependencies metadata when building, to use the pins from the lock file.

Replies: 2 comments 17 replies

Comment options

pawamoy
Nov 30, 2023
Maintainer Sponsor

You must be logged in to vote
2 replies
@noamraph
Comment options

@pawamoy
Comment options

pawamoy Nov 30, 2023
Maintainer Sponsor

Comment options

pawamoy
Nov 30, 2023
Maintainer Sponsor

You must be logged in to vote
15 replies
@noamraph
Comment options

@noamraph
Comment options

@pawamoy
Comment options

pawamoy Dec 1, 2023
Maintainer Sponsor

@frostming
Comment options

@noamraph
Comment options

Answer selected by noamraph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants