How to update all except group x (but keep that group in lock) #7433
-
|
Is it possible to have a toml like so and perform a My attempt at using --without=internal resulted in losing those packages from the lock file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
There is not a way to do so. The lock file is not intended to maintain a strict locking of dependencies -- instead it is meant to provide reproducibility. The idea is that your project is checked in CI, and the lock file is bumped often as devs go about their work. CI and your test suite verifies that the latest versions are good and that lock ensures that your production deploy matches CI. If you want to conservatively update versions, you should constrain things properly in your pyproject.toml. TL;DR: no, the lock file is not a substitute for proper constraints. |
Beta Was this translation helpful? Give feedback.
There is not a way to do so. The lock file is not intended to maintain a strict locking of dependencies -- instead it is meant to provide reproducibility. The idea is that your project is checked in CI, and the lock file is bumped often as devs go about their work. CI and your test suite verifies that the latest versions are good and that lock ensures that your production deploy matches CI. If you want to conservatively update versions, you should constrain things properly in your pyproject.toml.
TL;DR: no, the lock file is not a substitute for proper constraints.