Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use uv for dependency management like poetry #1870

Closed
YeonwooSung opened this issue Feb 22, 2024 · 10 comments
Closed

Can we use uv for dependency management like poetry #1870

YeonwooSung opened this issue Feb 22, 2024 · 10 comments
Labels
projects Related to project management capabilities question Asking for clarification or support

Comments

@YeonwooSung
Copy link

Just curious, is it possible to use uv for managing and updating the dependencies and dependencies of dependencies just like poetry so that we could replace the poetry with uv?

@zanieb
Copy link
Member

zanieb commented Feb 22, 2024

Not yet! This is on our roadmap.

@zanieb zanieb added question Asking for clarification or support projects Related to project management capabilities labels Feb 22, 2024
@YeonwooSung
Copy link
Author

Ah, nice.
Thanks for the reply.

I will look forward to that day that we could replace the poetry with uv

@brettcannon
Copy link
Contributor

FYI there is a discussion about standardizing lock files that are not Poetry-like but more pip-tools style at https://discuss.python.org/t/lock-files-again-but-this-time-w-sdists/46593/ .

@nikhilweee
Copy link

@zanieb Is the roadmap publicly documented somewhere?

@zanieb
Copy link
Member

zanieb commented Mar 12, 2024

Not yet, just in the issue tracker.

@benjaminbauer
Copy link

because I did not find it in the tracker: is there an issue for platform independent lock files? Will uv wait for the finalization of the mentioned PEP?

What is the currently recommended worklow for managing/freezing dependencies?

@helderco
Copy link

What is the currently recommended worklow for managing/freezing dependencies?

I've been doing this:

uv pip compile --generate-hashes -o requirements.lock pyproject.toml

Basically takes the dependencies from pyproject.toml and pins them in requirements.lock.

Then install from requirements.lock directly.

@zanieb
Copy link
Member

zanieb commented Apr 10, 2024

We are implementing platform independent lock files and will do so before waiting for a standard to be established. I can't find an issue either, @BurntSushi do you know of one / want to make one?

@charliermarsh
Copy link
Member

I believe it's here: #2679

@zanieb
Copy link
Member

zanieb commented Jun 19, 2024

The lock file work is being tracked in #3347 and we're actively adding experimental Poetry-style commands such as add, remove, sync, and run.

@zanieb zanieb closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
projects Related to project management capabilities question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

7 participants