3 ms·
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
by VagabundoP 2y ago
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.
- andybak 2y ago> 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"
- VagabundoP 2y agoYeah 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.