3 ms·
I’m using poetry because of the default lock file usage (there isn’t a global, mutable state, all changes required to update the lock file). I wish that this fu
by thangngoc89 2y ago
I’m using poetry because of the default lock file usage (there isn’t a global, mutable state, all changes required to update the lock file). I wish that this function could be incorporated to poetry directly
- Terretta 2y agoFor a variety of reasons this season is a good time to look at `uv`. See this by the author of Rye: https://lucumr.pocoo.org/2024/8/21/harvest-season/ https://lucumr.pocoo.org/2024/8/21/harvest-season/ "Unified" packaging: https://astral.sh/blog/uv-unified-python-packaging https://astral.sh/blog/uv-unified-python-packaging
- trallnag 2y agoPoetry works so well for me at the moment, I prefer to let uv cook
- thangngoc89 2y agoI just take a look at the uv feature list and the feature I wanted most is Python version management. I'm using micromamba to install all interested Python versions (from 3.8 - 3.12) and set tell poetry about the python location. But like you said, poetry is working so well so I'll wait a little bit longer before jumping the ship.
- zbentley 2y agoRye wraps uv and adds python version management, among other things.
- xrd 2y agoSince you mentioned uv and the topic is virtual environments... I am using uv and it seems great. I don't understand the difference between using "python -m venv .venv; source .venv/bin/activate" and creating a venv with uv and then running the same source command. What does uv offer/integrate that's not present already in python venv module?
- thangngoc89 2y agoIt replaces pip and uses venv module under the hood if I understand correctly
- xrd 2y agoGot it. I'm just unsure whether I can use the other uv features like pin with it? That feature feels like it was added and the benefits or trade-offs weren't documented. At least I don't see it.