Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For 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/

"Unified" packaging:

https://astral.sh/blog/uv-unified-python-packaging



Since 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?


It replaces pip and uses venv module under the hood if I understand correctly


Got 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.


Poetry works so well for me at the moment, I prefer to let uv cook


I 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.


Rye wraps uv and adds python version management, among other things.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: