Open
Conversation
Collaborator
|
Trying to map to how one would use this in a Bazel setup — do you run with multiple rules_python pip hubs? |
Contributor
|
@markelliot we're using such a uv export rule to write all dependencies of a single package from a workspace into a requirements file and later |
|
It would be great to have this in the repo! |
|
Hi, I need this feature to keep the same requirement set in uv.lock and requirements.txt |
|
Hi @markelliot , do you consider adding this feature to rules_uv? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the
uv exportcommand to bazel.uv exportanduv pip compilehave some slightly different behaviors. The main difference comes when using a uv workspace. Withuv exportyou can ignore those packages, which is probably the behavior you want in a monorepo with bazel. The code is very similar to the one frompip compile.If you are supportive of this change, I will add docs and update the README.
Thanks!