Earlier quoted context omitted.
I'm not them, but I use `direnv` for this. Their wiki includes two layout_uv[1] scripts, one that uses `uv` just to activate a regular venv and a second that uses it to manage the whole project. I use the latter. [1] https://github.com/direnv/direnv/wiki/Python
That's great, thanks! I use direnv but didn't know they had this.
uv downloads overtake Poetry for Wagtail users
201–206 of 206 posts
Re: uv downloads overtake Poetry for Wagtail users
#202Earlier quoted context omitted.
That's rough for all the creators of poetry, pdm, pipenv, etc. to hear. They put in a ton of great work over the last decade, but I fear you may be right.
I quite really like pdm! I can see why maybe poetry but especially pipenv might be replaced with uv, but what's the value of uv over pdm beyond performance? It ticks all my boxes otherwise.
Re: uv downloads overtake Poetry for Wagtail users
#203Earlier quoted context omitted.
That (main) page doesn't mention python once, so personally I was immediately wondering if this is an alternative to tools like uv or more generally tools like mise and asdf. It really isn't that clear so could you try to elaborate a bit?
Google works for you too, friend.
Re: uv downloads overtake Poetry for Wagtail users
#204Earlier quoted context omitted.
Google works for you too, friend.
In fact, I elaborated in my comment that not even the homepage of the project itself makes it clear. Why would google, an unrelated website make it any clearer...
You're literally on the Pixi website, and you know its name if you want to look for forums, feed it into Perplexity, etc.
Re: uv downloads overtake Poetry for Wagtail users
#205Earlier quoted context omitted.
Wait times are in the order of tens of milliseconds instead of seconds. That makes a massive difference in how nice uv is to use vs pip.
That’s just the same “my pip is too slow” problem which some people don’t have. I work in a place with 200 developers, and 99% of pip usage is in automated jobs that last an hour. Shaving a couple seconds off that will not provide any tangible benefit. However moving 200 people from a tool they know to one they don’t comes at a rather significant cost.
It could be more than that.
I switched from pip to uv today in a Dockerized project with 45 total dependencies (top level + sub-dependencies included).
pip takes 38 seconds and uv takes 3 seconds, both uncached. A 10x+ difference is massive and if uv happens to be better suited to run on multiple cores it could be even more because my machine is a quad core i5 3.20ghz from 10 years ago.
> I work in a place with 200 developers
In your case, if you have 200 developers spending an hour on builds that could in theory be reduced down to 5 minutes per build. That's 11,000 minutes or 183 hours of dev time saved per 1 build. I know you say it's automated but someone is almost always waiting for something right?
Re: uv downloads overtake Poetry for Wagtail users
#206Earlier quoted context omitted.
Poetry and uv both offer better dependency management, and project isolation out of the box. If you work in a team, or on more than one python project, then it's worth spending a day to install & adopt either one of these systems.
Both dependency management and project isolation are available in a standard Python 3 installation, also out of the box, without 3rd party tool dependency - `pip` and `python3 -m venv`. Admittedly, they work slower, but fast enough for me, especially that I do not run these commands every hour.