8000 ensure pip_compile_requirements py_binary target can recieve 'tags' (… · lapointexavier/rules_python@e887347 · GitHub
[go: up one dir, main page]

Skip to content

Commit e887347

Browse files
author
Jonathon Belotti
authored
ensure pip_compile_requirements py_binary target can recieve 'tags' (bazel-contrib#496)
1 parent 922702b commit e887347

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/pip_install/requirements.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def compile_pip_requirements(
99
visibility = ["//visibility:private"],
1010
requirements_in = None,
1111
requirements_txt = None,
12+
tags = None,
1213
**kwargs):
1314
"""
1415
Macro creating targets for running pip-compile
@@ -28,6 +29,7 @@ def compile_pip_requirements(
2829
visibility: passed to both the _test and .update rules
2930
requirements_in: file expressing desired dependencies
3031
requirements_txt: result of "compiling" the requirements.in file
32+
tags: tagging attribute common to all build rules, passed to both the _test and .update rules
3133
**kwargs: other bazel attributes passed to the "_test" rule
3234
"""
3335
requirements_in = name + ".in" if requirements_in == None else requirements_in
@@ -69,6 +71,7 @@ def compile_pip_requirements(
6971
"deps": deps,
7072
"main": pip_compile,
7173
"srcs": [pip_compile],
74+
"tags": tags,
7275
"visibility": visibility,
7376
}
7477

0 commit comments

Comments
 (0)
0