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

Support uv pip install -r uv.lock #6670

Closed
charliermarsh opened this issue Aug 27, 2024 · 6 comments · Fixed by #6778
Closed

Support uv pip install -r uv.lock #6670

charliermarsh opened this issue Aug 27, 2024 · 6 comments · Fixed by #6778
Assignees
Labels
needs-decision Undecided if this should be done

Comments

@charliermarsh
Copy link
Member

No description provided.

@charliermarsh charliermarsh added the needs-decision Undecided if this should be done label Aug 27, 2024
@zanieb zanieb changed the title Support uv pip install -r uv.lock? Support uv pip install -r uv.lock Aug 27, 2024
@leddy231
Copy link

I think this makes a lot of sense, this would allow installing packages from one or more lockfiles directly to the system python, without removing any packages (which uv sync would do). We need this for painless switch from poetry to uv 😄

@charliermarsh
Copy link
Member Author

I'm currently more in favor of adding uv export to requirements.txt, then uv pip install -r requirements.txt, since it's more flexible and composable.

@leddy231
Copy link

That would work too, and would be a clearer separation between project tools uv ... and raw pip tools.

Could they be piped together? A uv export | uv pip install --system oneliner in the dockerfile would be nice, instead of a intermediate file

@shaunhegarty
Copy link

That would work too, and would be a clearer separation between project tools uv ... and raw pip tools.

Could they be piped together? A uv export | uv pip install --system oneliner in the dockerfile would be nice, instead of a intermediate file

This would be nice for github actions too. Alternatively offer a way to specify the system interpreter when doing uv sync

@zanieb
Copy link
Member

zanieb commented Aug 27, 2024

@shaunhegarty can you share more about why uv run is not suitable for use in GitHub Actions in your use-case?

@shaunhegarty
Copy link

shaunhegarty commented Aug 27, 2024

@shaunhegarty can you share more about why uv run is not suitable for use in GitHub Actions in your use-case?

@zanieb Knowledge deficit on my part. uv run works for all the actions so far. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-decision Undecided if this should be done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@charliermarsh @leddy231 @zanieb @shaunhegarty and others