Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e887347

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

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎python/pip_install/requirements.bzl

Copy file name to clipboardExpand all lines: python/pip_install/requirements.bzl
+3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.