Skip to content

Commit

Permalink
Pass through kwargs to underlying rules (#90)
Browse files Browse the repository at this point in the history
This is useful for fields like `exec_properties` with remote exec, and
`visibility` to make sure these rules aren't depended on.
  • Loading branch information
keith authored Jul 26, 2024
1 parent babbfca commit 94362c9
Showing 1 changed file with 5 additions and 1 deletion.
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
)

0 comments on commit 94362c9

Please sign in to comment.