Skip to content

Commit da86f08

Browse files
oprypincopybara-github
authored andcommitted
Remove srcs_version and python_version attributes, as they already default to "PY3"
PiperOrigin-RevId: 721304245
1 parent 78fb38c commit da86f08

File tree

4 files changed

+0
-96
lines changed

4 files changed

+0
-96
lines changed

absl/BUILD

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ py_library(
99
srcs = [
1010
"app.py",
1111
],
12-
srcs_version = "PY2AND3",
1312
visibility = ["//visibility:public"],
1413
deps = [
1514
":command_name",
@@ -21,15 +20,13 @@ py_library(
2120
py_library(
2221
name = "command_name",
2322
srcs = ["command_name.py"],
24-
srcs_version = "PY2AND3",
2523
visibility = ["//visibility:public"],
2624
)
2725

2826
py_library(
2927
name = "tests/app_test_helper",
3028
testonly = 1,
3129
srcs = ["tests/app_test_helper.py"],
32-
srcs_version = "PY2AND3",
3330
deps = [
3431
":app",
3532
"//absl/flags",
@@ -41,8 +38,6 @@ py_binary(
4138
testonly = 1,
4239
srcs = ["tests/app_test_helper.py"],
4340
main = "tests/app_test_helper.py",
44-
python_version = "PY3",
45-
srcs_version = "PY3",
4641
deps = [
4742
":app",
4843
"//absl/flags",
@@ -53,8 +48,6 @@ py_test(
5348
name = "tests/app_test",
5449
srcs = ["tests/app_test.py"],
5550
data = [":tests/app_test_helper_pure_python"],
56-
python_version = "PY3",
57-
srcs_version = "PY3",
5851
deps = [
5952
":app",
6053
":tests/app_test_helper",
@@ -68,8 +61,6 @@ py_test(
6861
py_test(
6962
name = "tests/command_name_test",
7063
srcs = ["tests/command_name_test.py"],
71-
python_version = "PY3",
72-
srcs_version = "PY3",
7364
deps = [
7465
":command_name",
7566
"//absl/testing:absltest",
@@ -79,8 +70,6 @@ py_test(
7970
py_test(
8071
name = "tests/python_version_test",
8172
srcs = ["tests/python_version_test.py"],
82-
python_version = "PY3",
83-
srcs_version = "PY3",
8473
deps = [
8574
"//absl/flags",
8675
"//absl/testing:absltest",

absl/flags/BUILD

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ licenses(["notice"])
99
py_library(
1010
name = "flags",
1111
srcs = ["__init__.py"],
12-
srcs_version = "PY2AND3",
1312
visibility = ["//visibility:public"],
1413
deps = [
1514
":_argument_parser",
@@ -25,15 +24,13 @@ py_library(
2524
py_library(
2625
name = "argparse_flags",
2726
srcs = ["argparse_flags.py"],
28-
srcs_version = "PY2AND3",
2927
visibility = ["//visibility:public"],
3028
deps = [":flags"],
3129
)
3230

3331
py_library(
3432
name = "_argument_parser",
3533
srcs = ["_argument_parser.py"],
36-
srcs_version = "PY2AND3",
3734
deps = [
3835
":_helpers",
3936
],
@@ -42,7 +39,6 @@ py_library(
4239
py_library(
4340
name = "_defines",
4441
srcs = ["_defines.py"],
45-
srcs_version = "PY2AND3",
4642
deps = [
4743
":_argument_parser",
4844
":_exceptions",
@@ -56,7 +52,6 @@ py_library(
5652
py_library(
5753
name = "_exceptions",
5854
srcs = ["_exceptions.py"],
59-
srcs_version = "PY2AND3",
6055
deps = [
6156
":_helpers",
6257
],
@@ -65,7 +60,6 @@ py_library(
6560
py_library(
6661
name = "_flag",
6762
srcs = ["_flag.py"],
68-
srcs_version = "PY2AND3",
6963
deps = [
7064
":_argument_parser",
7165
":_exceptions",
@@ -76,7 +70,6 @@ py_library(
7670
py_library(
7771
name = "_flagvalues",
7872
srcs = ["_flagvalues.py"],
79-
srcs_version = "PY2AND3",
8073
deps = [
8174
":_exceptions",
8275
":_flag",
@@ -88,15 +81,13 @@ py_library(
8881
py_library(
8982
name = "_helpers",
9083
srcs = ["_helpers.py"],
91-
srcs_version = "PY2AND3",
9284
)
9385

9486
py_library(
9587
name = "_validators",
9688
srcs = [
9789
"_validators.py",
9890
],
99-
srcs_version = "PY2AND3",
10091
deps = [
10192
":_exceptions",
10293
":_flagvalues",
@@ -109,7 +100,6 @@ py_library(
109100
srcs = [
110101
"_validators_classes.py",
111102
],
112-
srcs_version = "PY2AND3",
113103
deps = [
114104
":_exceptions",
115105
],
@@ -118,8 +108,6 @@ py_library(
118108
py_test(
119109
name = "tests/_argument_parser_test",
120110
srcs = ["tests/_argument_parser_test.py"],
121-
python_version = "PY3",
122-
srcs_version = "PY3",
123111
deps = [
124112
":_argument_parser",
125113
"//absl/testing:absltest",
@@ -130,8 +118,6 @@ py_test(
130118
py_test(
131119
name = "tests/_flag_test",
132120
srcs = ["tests/_flag_test.py"],
133-
python_version = "PY3",
134-
srcs_version = "PY3",
135121
deps = [
136122
":_argument_parser",
137123
":_exceptions",
@@ -145,8 +131,6 @@ py_test(
145131
name = "tests/_flagvalues_test",
146132
size = "small",
147133
srcs = ["tests/_flagvalues_test.py"],
148-
python_version = "PY3",
149-
srcs_version = "PY3",
150134
deps = [
151135
":_defines",
152136
":_exceptions",
@@ -164,8 +148,6 @@ py_test(
164148
name = "tests/_helpers_test",
165149
size = "small",
166150
srcs = ["tests/_helpers_test.py"],
167-
python_version = "PY3",
168-
srcs_version = "PY3",
169151
deps = [
170152
":_helpers",
171153
":tests/module_bar",
@@ -178,8 +160,6 @@ py_test(
178160
name = "tests/_validators_test",
179161
size = "small",
180162
srcs = ["tests/_validators_test.py"],
181-
python_version = "PY3",
182-
srcs_version = "PY3",
183163
deps = [
184164
":_defines",
185165
":_exceptions",
@@ -194,8 +174,6 @@ py_test(
194174
size = "small",
195175
srcs = ["tests/argparse_flags_test.py"],
196176
data = [":tests/argparse_flags_test_helper"],
197-
python_version = "PY3",
198-
srcs_version = "PY3",
199177
deps = [
200178
":argparse_flags",
201179
":flags",
@@ -210,8 +188,6 @@ py_binary(
210188
name = "tests/argparse_flags_test_helper",
211189
testonly = 1,
212190
srcs = ["tests/argparse_flags_test_helper.py"],
213-
python_version = "PY3",
214-
srcs_version = "PY3",
215191
deps = [
216192
":argparse_flags",
217193
":flags",
@@ -223,8 +199,6 @@ py_test(
223199
name = "tests/flags_formatting_test",
224200
size = "small",
225201
srcs = ["tests/flags_formatting_test.py"],
226-
python_version = "PY3",
227-
srcs_version = "PY3",
228202
deps = [
229203
":_helpers",
230204
":flags",
@@ -236,8 +210,6 @@ py_test(
236210
name = "tests/flags_helpxml_test",
237211
size = "small",
238212
srcs = ["tests/flags_helpxml_test.py"],
239-
python_version = "PY3",
240-
srcs_version = "PY3",
241213
deps = [
242214
":_helpers",
243215
":flags",
@@ -250,8 +222,6 @@ py_test(
250222
name = "tests/flags_numeric_bounds_test",
251223
size = "small",
252224
srcs = ["tests/flags_numeric_bounds_test.py"],
253-
python_version = "PY3",
254-
srcs_version = "PY3",
255225
deps = [
256226
":_validators",
257227
":flags",
@@ -263,8 +233,6 @@ py_test(
263233
name = "tests/flags_test",
264234
size = "small",
265235
srcs = ["tests/flags_test.py"],
266-
python_version = "PY3",
267-
srcs_version = "PY3",
268236
deps = [
269237
":_exceptions",
270238
":_helpers",
@@ -280,8 +248,6 @@ py_test(
280248
name = "tests/flags_unicode_literals_test",
281249
size = "small",
282250
srcs = ["tests/flags_unicode_literals_test.py"],
283-
python_version = "PY3",
284-
srcs_version = "PY3",
285251
deps = [
286252
":flags",
287253
"//absl/testing:absltest",
@@ -292,7 +258,6 @@ py_library(
292258
name = "tests/module_bar",
293259
testonly = 1,
294260
srcs = ["tests/module_bar.py"],
295-
srcs_version = "PY2AND3",
296261
deps = [
297262
":_helpers",
298263
":flags",
@@ -303,15 +268,13 @@ py_library(
303268
name = "tests/module_baz",
304269
testonly = 1,
305270
srcs = ["tests/module_baz.py"],
306-
srcs_version = "PY2AND3",
307271
deps = [":flags"],
308272
)
309273

310274
py_library(
311275
name = "tests/module_foo",
312276
testonly = 1,
313277
srcs = ["tests/module_foo.py"],
314-
srcs_version = "PY2AND3",
315278
deps = [
316279
":_helpers",
317280
":flags",

absl/logging/BUILD

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ licenses(["notice"])
99
py_library(
1010
name = "logging",
1111
srcs = ["__init__.py"],
12-
srcs_version = "PY2AND3",
1312
visibility = ["//visibility:public"],
1413
deps = [
1514
":converter",
@@ -20,16 +19,13 @@ py_library(
2019
py_library(
2120
name = "converter",
2221
srcs = ["converter.py"],
23-
srcs_version = "PY2AND3",
2422
visibility = ["//visibility:public"],
2523
)
2624

2725
py_test(
2826
name = "tests/converter_test",
2927
size = "small",
3028
srcs = ["tests/converter_test.py"],
31-
python_version = "PY3",
32-
srcs_version = "PY3",
3329
deps = [
3430
":converter",
3531
":logging",
@@ -41,8 +37,6 @@ py_test(
4137
name = "tests/logging_test",
4238
size = "small",
4339
srcs = ["tests/logging_test.py"],
44-
python_version = "PY3",
45-
srcs_version = "PY3",
4640
deps = [
4741
":logging",
4842
"//absl/flags",
@@ -56,8 +50,6 @@ py_test(
5650
name = "tests/log_before_import_test",
5751
srcs = ["tests/log_before_import_test.py"],
5852
main = "tests/log_before_import_test.py",
59-
python_version = "PY3",
60-
srcs_version = "PY3",
6153
deps = [
6254
":logging",
6355
"//absl/testing:absltest",
@@ -67,8 +59,6 @@ py_test(
6759
py_test(
6860
name = "tests/verbosity_flag_test",
6961
srcs = ["tests/verbosity_flag_test.py"],
70-
python_version = "PY3",
71-
srcs_version = "PY3",
7262
deps = [
7363
":logging",
7464
"//absl/flags",
@@ -80,8 +70,6 @@ py_binary(
8070
name = "tests/logging_functional_test_helper",
8171
testonly = 1,
8272
srcs = ["tests/logging_functional_test_helper.py"],
83-
python_version = "PY3",
84-
srcs_version = "PY3",
8573
deps = [
8674
":logging",
8775
"//absl:app",
@@ -94,9 +82,7 @@ py_test(
9482
size = "large",
9583
srcs = ["tests/logging_functional_test.py"],
9684
data = [":tests/logging_functional_test_helper"],
97-
python_version = "PY3",
9885
shard_count = 50,
99-
srcs_version = "PY3",
10086
deps = [
10187
":logging",
10288
"//absl/testing:_bazelize_command",

0 commit comments

Comments
 (0)