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

Pass through kwargs to underlying rules #90

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion uv/private/pip.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def pip_compile(
python_platform = None,
args = None,
data = None,
tags = None):
tags = None,
**kwargs):
"""
Produce targets to compile a requirements.in or pyproject.toml file into a requirements.txt file.

Expand All @@ -133,6 +134,7 @@ def pip_compile(
--no-strip-extras (Include extras in the output file)
data: (optional) a list of labels of additional files to include
tags: (optional) tags to apply to the generated test target
**kwargs: (optional) other fields passed through to all underlying rules

Targets produced by this macro are:
[name]: a runnable target that will use requirements_in to generate and overwrite requirements_txt
Expand All @@ -148,6 +150,7 @@ def pip_compile(
target_compatible_with = target_compatible_with,
data = data,
uv_args = args,
**kwargs
)

_pip_compile_test(
Expand All @@ -160,4 +163,5 @@ def pip_compile(
data = data,
uv_args = args,
tags = ["requires-network"] + tags,
**kwargs
)