File tree Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ all_targets: &all_targets
13
13
- " //experimental/..."
14
14
- " //packaging/..."
15
15
- " //python/..."
16
+ - " //tests/..."
16
17
- " //tools/..."
17
18
# As a regression test for #225, check that wheel targets still build when
18
19
# their package path is qualified with the repo name.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ _MIGRATION_TAG = "__PYTHON_RULES_MIGRATION_DO_NOT_USE_WILL_BREAK__"
36
36
37
37
def _add_tags (attrs ):
38
38
if "tags" in attrs and attrs ["tags" ] != None :
39
- attrs ["tags" ] += [_MIGRATION_TAG ]
39
+ attrs ["tags" ] = attrs [ "tags" ] + [_MIGRATION_TAG ]
40
40
else :
41
41
attrs ["tags" ] = [_MIGRATION_TAG ]
42
42
return attrs
Original file line number Diff line number Diff line change
1
+ # Copyright 2019 The Bazel Authors. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ load ("//python:defs.bzl" , "py_library" )
16
+ load (":tags.bzl" , "TAGS" )
17
+
18
+ licenses (["notice" ])
19
+
20
+ py_library (
21
+ name = "foo" ,
22
+ srcs = ["foo.py" ],
23
+ tags = TAGS ,
24
+ )
Original file line number Diff line number Diff line change
1
+ # Copyright 2019 The Bazel Authors. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
Original file line number Diff line number Diff line change
1
+ # Copyright 2019 The Bazel Authors. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """
16
+ Example tags defined in a separate file.
17
+ """
18
+ TAGS = ["first_tag" , "second_tag" ]
You can’t perform that action at this time.
0 commit comments