uv: uv add package upgrade doesn't work
Question
I’m sorry for opening this issue here maybe there is a really simple solution. But I cannot find it in documentation. I want to upgrade my package to the latest version and at the same time updating pyproject.toml file.
But it doesn’t update to the latest version.
uv pip install haystack-ai --upgrade command upgrades but it doesn’t update toml file.
Platform
Linux 6.11.0-17-generic 24.04.2-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
Version
0.5.31
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 17 (7 by maintainers)
uv syncwill only update the lockfile (and venv); I believe OP wants the version boundaries inpyproject.tomlbumped, too.My solution is
Related #6794
Yes, thank you @kshpytsya. I didn’t know poetry had the same deficiency / lack.
@charliermarsh I checked that repo and there are more 300 stars. I’m sure many uv users would like this feature to be in uv too. I use uv in
--no-package --appmode so I always need to upgrade some specific packages without touching the others to not create more conflicts.I have been looking for uv’s equivalent of poetry up (plugin) and this issue seems to be related.
@charliermarsh But it doesn’t upgrade the package anyway. So if I wanted to upgrade a package and lock this information do I need to use two commands?
Even when I do it doesn’t work. It upgrades to 2.10 but doesn’t make any change neither on
lockortoml.