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

Add uv install to install a specific packages from the workspace #5008

Closed
bschoenmaeckers opened this issue Jul 12, 2024 · 4 comments · Fixed by #5656
Closed

Add uv install to install a specific packages from the workspace #5008

bschoenmaeckers opened this issue Jul 12, 2024 · 4 comments · Fixed by #5656
Assignees
Labels
cli Related to the command line interface preview Experimental behavior

Comments

@bschoenmaeckers
Copy link
Contributor

I basically want to install a subset of packages from my virtual workspace in a Dockerfile with respect to the uv.lock file.
Currently I use uv sync to install all locked packages including the whole workspace. But I don't see a way to install just one packages (including its dependencies).

I tried to do uv pip install -c uv.lock packages/package_a but this obviously does not work because uv.lock is not a constrain file.

@zanieb
Copy link
Member

zanieb commented Jul 31, 2024

I thought we had uv sync --package <name> but I guess not? cc @konstin

@charliermarsh
Copy link
Member

Oh me too. I will add it.

@charliermarsh charliermarsh added cli Related to the command line interface preview Experimental behavior labels Jul 31, 2024
@charliermarsh
Copy link
Member

To be clear, this would be intended to support installing a specific member (like package/package_a above), rather than installing a specific transitive dependency (like flask or whatever).

charliermarsh added a commit that referenced this issue Jul 31, 2024
## Summary

Closes #5008.
@bschoenmaeckers
Copy link
Contributor Author

Thanks a lot! This will do for my usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface preview Experimental behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants