Hacker News new | ask | show | jobs
by oneeyedpigeon 504 days ago
It looks great, but I don't feel enthusiastic about installing yet another package manager. Are there really enough benefits from uv to justify it as the only option?
4 comments

I find uv to be a great way for installing and trying different Python projects. It comes with the uvx command, which makes a temporary venv, installs the right Python version and all project dependencies, and starts the program. It uses the PyPi index, so it's not the only option, but I think it's better than pip/pipx.

For instance, running `uvx --python 3.13 Bagels` made a temporary environment and installed all dependencies in 1.01s on my computer, and it took less than 10 seconds for the program to start after creating a database etc. Next start takes less than 2 seconds since it's cached. If I decide I want to keep using it, I can install it using the uv tool command, if not I just do nothing.

https://docs.astral.sh/uv/guides/tools/

> Are there really enough benefits from uv to justify it as the only option?

The author probably really likes uv, thus the biased instructions.

I also think uv is great, but I wouldn't mention it in the user facing installation instructions. People are used to pip/pipx, thus asking them to install yet another tool might drive potential users away.

The usual pip or pipx command should work fine. It's listed on PyPI: https://pypi.org/project/Bagels

I would only mention uv in the Development Setup section (https://github.com/EnhancedJax/Bagels?tab=readme-ov-file#dev...)

I believe you can simply use pipx, if you have that. I picked uv because it handles installing python for you. I do want to add Bagels to homebrew, but have to do a bit more reading to figure that out.
I think you should change the Windows install section in the readme. Instead of installing uv by downloading and running a Powershell script you can use winget:

  winget install --id=astral-sh.uv  -e
https://docs.astral.sh/uv/getting-started/installation/#wing...
Thanks! Will check out!
They are using the "normal" dependencies section in the pyproject.toml, so you should be able to install with pip or other tools if you want.

It's only for dev-specifics dependencies that they are using the uv-specifics section.

You can try uv in 2 min and see if you like it or not.