-
I want to write a utility script with some dependencies, and allow users to run it with However, I see that this runs the script with the latest packages compatible with Is it possible? (I found #707, which refers to a PEP which was rejected. I wondered if there's some way to make it work. Perhaps a different Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 17 replies
-
Wait for support for PEP 723 in pipx 🙂 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.