Live data from Hacker News

uv downloads overtake Poetry for Wagtail users

wagtail.org

181–190 of 206 posts

Re: uv downloads overtake Poetry for Wagtail users

#181
post #136
post #47

Earlier quoted context omitted.

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.

For what it's worth uv is fully compatible with pip. just replace 'pip --foo bar' with 'uv pip --foo bar'. One project I'm working on is 100% 'classic' pip based with no plans of moving, but I still use uv when working on it as it is completely transparent. Uv manages my venvs and python versions and makes things like switching between different versions of python and libraries much smoother, and I can still use the…

> For what it's worth uv is fully compatible with pip

Depends what you mean by "fully": https://docs.astral.sh/uv/pip/compatibility/

There's a number of places pip and uv diverge:

* uv makes some design choices that aren't always strictly compatible with the spec

* uv correctly implements the spec and it turns out pip, or the underlying library, didn't (I have worked on fixing a couple of these on the pip side)

* uv doesn't support legacy features still in pip

* Tool specific features or exact output diverge

This is not a criticism, but I've seen some users get irate with uv because they were under the impression that it was making much stronger compatibility guarantees.

Re: uv downloads overtake Poetry for Wagtail users

#182

Earlier quoted context omitted.

You can still `source .venv/bin/activate(.fish)` and skip the uv run bit. I have Fish shell configured to automatically activate a .venv if it finds one in a directory I switch to.

I do do that, can you please share your fish script to autoload it? I have something for Poetry envs, but not venv dirs.

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

Re: uv downloads overtake Poetry for Wagtail users

#183
Coming from 10+ years of pip and also heavy venv user - uv seems pretty good.

First impressions of uv are quite nice, but how does one change Python versions once you have a project up?

I installed 3.13 with `uv python install python3.13`

I see bunch of Python versions now with `uv python list` (uv even found my old Anaconda 3.9 install from way back)

But how would I switch to 3.13?

LLM hallucinates with `uv venv use 3.13` but that command does not work.

I see from https://docs.astral.sh/uv/concepts/projects/config/#python-v... that one can specify the version in pyproject.toml, but should not there be a command line to switch?

Re: uv downloads overtake Poetry for Wagtail users

#184

Earlier quoted context omitted.

I do do that, can you please share your fish script to autoload it? I have something for Poetry envs, but not venv dirs.

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.

Re: uv downloads overtake Poetry for Wagtail users

#185

Earlier quoted context omitted.

You're using a different, not hosted anymore package, three times a week ? That's somewhere between very unusual and downright absurd. Yes you can find edge cases with problems. Using this as an argument for "breaks 3 times per week" does not hold.

No, I was using this as an argument for why I don't expect Node projects older than a year or two to be buildable without significant hassle. (Also note that outside the web/mobile space, projects that weren't updated in a year are still young , not old. "Old" is more like 5+ years.) The two things are related. If your typical project has a dependency DAG of 1000+ projects, a bug or CVE fix somewhere will typically c…

I don't know if it is still as fragile as you remember but if you just never update your package-lock then it is super stable as you (transitive) dependencies never change.

The non-trivial exception being if some dependecy was downloading resources on the fly (maybe like a browser compat list) or calling system libraries (eg running shell commands)

Re: uv downloads overtake Poetry for Wagtail users

#186
post #3

I recently switched to uv, and I cannot praise it enough. With uv, the Python ecosystem finally feels mature and polished rather than like a collection of brittle hacks. Kudos to the uv developers for creating such an amazing piece of software!

Now, if I hadn't read literally the same message for Pipenv/Pipfile and poetry before, too...

Python is going through package managers like JS goes through trends like classes-everywhere, hooks, signals etc

Re: uv downloads overtake Poetry for Wagtail users

#188

Earlier quoted context omitted.

The tool mise-en-place seems to have this. It is a replacement for asdf that I think can be used as a drop in replacement (compatible CLI interface).

Yes you can sync versions python versions bidirectionally with uv and mise. I intend to make further deeper integrations with uv where possible directly into mise core in order to offload python complexity out of mise and into uv where possible.

Thank you for creating mise! My only gripe with it is that it can do so much that I keep having to revisit certain parts of the docs :) but it is a good thing, it's nice if a tool takes care of many related little annoyances. I made a cheat sheet for myself and that helps.

Re: uv downloads overtake Poetry for Wagtail users

#189
post #152

Earlier quoted context omitted.

Ok, you convinced me to give it a try. Tbh, I am a casual user of python and I don't want to touch it unless I have a damn good reason to use it.

> I am a casual user of python and I don't want to touch it unless I have a damn good reason to use it. I... what? Python is a beautiful way to evolve beyond the troglodyte world of sh for system scripts. You are seriously missing out by being so pertinently against it.

Just you wait till someone shows you how Rust is to Python what Python is to shell scripts. For one, null safety is a major issue in most corporate Python code, and much less of an issue in Rust code.

Re: uv downloads overtake Poetry for Wagtail users

#190
post #186
post #3

I recently switched to uv, and I cannot praise it enough. With uv, the Python ecosystem finally feels mature and polished rather than like a collection of brittle hacks. Kudos to the uv developers for creating such an amazing piece of software!

Now, if I hadn't read literally the same message for Pipenv/Pipfile and poetry before, too... Python is going through package managers like JS goes through trends like classes-everywhere, hooks, signals etc

There have been incremental evolutionary improvements that were brought forth by each of the packages you named. uv just goes a lot further than the previous one. There have been others that deserve an honorary mention, e.g. pip-tools, pdm, hatch, etc. It's going to be very hard for anything to top uv.
Post reply on HN