News for hackers. Stuff that matters.
Re:Rye: A Hassle-Free Python Experience by germandiago on Tuesday July 09, 2024 @06:05AM (#40914285)
How does it compare to Pipenv and Poetry? I had some problems every time I used Poetry. I wanted to like it but it hanged or took forever and similar things often.
Re:Rye: A Hassle-Free Python Experience by VagabundoP on Tuesday July 09, 2024 @06:22AM (#40914411)
So dep resolution is fast with uv.

Setting up a new project is: rye init && rye sync Adding a dep is: rye add flask && rye sync You can pin your python version in the pyproject.toml

Migrating from an established project is a little hard than it should be. Importing the requirements.txt into the pyproject.toml is not a good idea as uv gets itself in a twist with all the low-level dependencies that exist in the requirements.txt. I've never tried it with a poetry made pyproject.toml, report back if you try it.

On the whole its a good experience, fast and straight forward.

Re:Rye: A Hassle-Free Python Experience by andybak on Tuesday July 09, 2024 @11:03AM (#40916932)
> Importing the requirements.txt into the pyproject.toml is not a good idea as uv gets itself in a twist with all the low-level dependencies that exist in the requirements.txt.

Can you explain? I wonder if you mean "requirements.txt generated via pip freeze" rather than "a human curated requirements.txt"

Re:Rye: A Hassle-Free Python Experience by VagabundoP on Tuesday July 09, 2024 @11:14AM (#40917080)
Yeah you're right.

If you just keep the requirements.txt "high level" then you should be okay. Just my experience with uv hanging for ages with a pip freeze made requirements file.