Skip to content

Commit 6feb9c9

Browse files
authored
Remove python_version & srcs_version from build files (#7122)
Removing the following attributes in BUILD files: python_version = "PY3", srcs_version = "PY3", Python rules already defaults to PY3
1 parent 0675a15 commit 6feb9c9

41 files changed

Lines changed: 0 additions & 286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tensorboard/BUILD

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ py_binary(
2424
name = "tensorboard",
2525
srcs = ["main.py"],
2626
main = "main.py",
27-
srcs_version = "PY3",
2827
deps = [
2928
":assets_lib", # link dep for webfiles assets
3029
":default",
@@ -42,7 +41,6 @@ py_binary(
4241
py_library(
4342
name = "main_lib",
4443
srcs = ["main_lib.py"],
45-
srcs_version = "PY3",
4644
deps = [
4745
"//tensorboard:expect_absl_logging_installed",
4846
"//tensorboard/compat",
@@ -55,7 +53,6 @@ py_binary(
5553
srcs = ["main_dev.py"],
5654
data = ["dev_webfiles.zip"],
5755
main = "main_dev.py",
58-
srcs_version = "PY3",
5956
deps = [
6057
":default",
6158
":dynamic_plugins", # loads internal dynamic plugin like projector
@@ -81,7 +78,6 @@ py_repl(
8178
py_library(
8279
name = "lib",
8380
srcs = ["__init__.py"],
84-
srcs_version = "PY3",
8581
visibility = ["//tensorboard:internal"],
8682
deps = [
8783
":errors",
@@ -103,7 +99,6 @@ py_library(
10399
py_library(
104100
name = "lib_init_only",
105101
srcs = ["__init__.py"],
106-
srcs_version = "PY3",
107102
visibility = ["//visibility:public"],
108103
deps = [
109104
":lazy",
@@ -115,7 +110,6 @@ py_test(
115110
name = "lib_test",
116111
size = "small",
117112
srcs = ["lib_test.py"],
118-
srcs_version = "PY3",
119113
tags = ["support_notf"],
120114
visibility = ["//tensorboard:internal"],
121115
deps = [":lib"],
@@ -125,7 +119,6 @@ py_library(
125119
name = "assets_lib",
126120
srcs = ["assets.py"],
127121
data = ["webfiles.zip"],
128-
srcs_version = "PY3",
129122
deps = [
130123
"//tensorboard/util:tb_logging",
131124
],
@@ -135,7 +128,6 @@ py_test(
135128
name = "assets_lib_test",
136129
srcs = ["assets_test.py"],
137130
main = "assets_test.py",
138-
srcs_version = "PY3",
139131
deps = [
140132
":assets_lib",
141133
"//tensorboard:test",
@@ -145,14 +137,12 @@ py_test(
145137
py_library(
146138
name = "auth",
147139
srcs = ["auth.py"],
148-
srcs_version = "PY3",
149140
)
150141

151142
py_test(
152143
name = "auth_test",
153144
size = "small",
154145
srcs = ["auth_test.py"],
155-
srcs_version = "PY3",
156146
tags = ["support_notf"],
157147
deps = [
158148
":auth",
@@ -163,7 +153,6 @@ py_test(
163153
py_library(
164154
name = "context",
165155
srcs = ["context.py"],
166-
srcs_version = "PY3",
167156
visibility = ["//visibility:public"],
168157
deps = [
169158
":auth",
@@ -174,7 +163,6 @@ py_test(
174163
name = "context_test",
175164
size = "small",
176165
srcs = ["context_test.py"],
177-
srcs_version = "PY3",
178166
tags = ["support_notf"],
179167
deps = [
180168
":auth",
@@ -186,13 +174,11 @@ py_test(
186174
py_library(
187175
name = "errors",
188176
srcs = ["errors.py"],
189-
srcs_version = "PY3",
190177
)
191178

192179
py_test(
193180
name = "errors_test",
194181
srcs = ["errors_test.py"],
195-
srcs_version = "PY3",
196182
deps = [
197183
":errors",
198184
":test",
@@ -202,7 +188,6 @@ py_test(
202188
py_library(
203189
name = "manager",
204190
srcs = ["manager.py"],
205-
srcs_version = "PY3",
206191
visibility = ["//tensorboard:internal"],
207192
deps = [
208193
":version",
@@ -214,7 +199,6 @@ py_test(
214199
name = "manager_test",
215200
size = "large",
216201
srcs = ["manager_test.py"],
217-
srcs_version = "PY3",
218202
tags = [
219203
"exclusive",
220204
"support_notf",
@@ -240,7 +224,6 @@ py_test(
240224
# high parallelism; TensorBoard subprocess time out instead of
241225
# launching successfully.
242226
flaky = True,
243-
srcs_version = "PY3",
244227
visibility = ["//tensorboard:internal"],
245228
deps = [
246229
":manager",
@@ -251,7 +234,6 @@ py_test(
251234
py_library(
252235
name = "notebook",
253236
srcs = ["notebook.py"],
254-
srcs_version = "PY3",
255237
visibility = ["//visibility:public"],
256238
deps = [
257239
":manager",
@@ -261,7 +243,6 @@ py_library(
261243
py_library(
262244
name = "program",
263245
srcs = ["program.py"],
264-
srcs_version = "PY3",
265246
deps = [
266247
":manager",
267248
":version",
@@ -279,7 +260,6 @@ py_test(
279260
name = "program_test",
280261
size = "large",
281262
srcs = ["program_test.py"],
282-
srcs_version = "PY3",
283263
tags = [
284264
"exclusive",
285265
"support_notf",
@@ -298,7 +278,6 @@ py_library(
298278
name = "test",
299279
testonly = 1,
300280
srcs = ["test.py"],
301-
srcs_version = "PY3",
302281
deps = [
303282
"//tensorboard:expect_absl_testing_absltest_installed",
304283
"//tensorboard/util:tb_logging",
@@ -308,7 +287,6 @@ py_library(
308287
py_library(
309288
name = "default",
310289
srcs = ["default.py"],
311-
srcs_version = "PY3",
312290
deps = [
313291
"//tensorboard/backend:experimental_plugin",
314292
"//tensorboard/plugins/audio:audio_plugin",
@@ -332,7 +310,6 @@ py_library(
332310

333311
py_library(
334312
name = "dynamic_plugins",
335-
srcs_version = "PY3",
336313
deps = [
337314
"//tensorboard/plugins/projector:projector_plugin",
338315
],
@@ -342,7 +319,6 @@ py_test(
342319
name = "default_test",
343320
size = "small",
344321
srcs = ["default_test.py"],
345-
srcs_version = "PY3",
346322
tags = ["support_notf"],
347323
deps = [
348324
":default",
@@ -354,14 +330,12 @@ py_test(
354330
py_library(
355331
name = "version",
356332
srcs = ["version.py"],
357-
srcs_version = "PY3",
358333
)
359334

360335
py_test(
361336
name = "version_test",
362337
size = "small",
363338
srcs = ["version_test.py"],
364-
srcs_version = "PY3",
365339
tags = ["support_notf"],
366340
deps = [
367341
":test",
@@ -493,7 +467,6 @@ py_library(name = "expect_protobuf_installed")
493467
py_library(
494468
name = "data_compat",
495469
srcs = ["data_compat.py"],
496-
srcs_version = "PY3",
497470
deps = [
498471
"//tensorboard:expect_protobuf_installed",
499472
"//tensorboard/compat/proto:protos_all_py_pb2",
@@ -509,7 +482,6 @@ py_test(
509482
name = "data_compat_test",
510483
size = "small",
511484
srcs = ["data_compat_test.py"],
512-
srcs_version = "PY3",
513485
deps = [
514486
":data_compat",
515487
"//tensorboard:expect_numpy_installed",
@@ -530,7 +502,6 @@ py_test(
530502
py_library(
531503
name = "dataclass_compat",
532504
srcs = ["dataclass_compat.py"],
533-
srcs_version = "PY3",
534505
deps = [
535506
"//tensorboard/compat/proto:protos_all_py_pb2",
536507
"//tensorboard/plugins/audio:metadata",
@@ -551,7 +522,6 @@ py_test(
551522
name = "dataclass_compat_test",
552523
size = "small",
553524
srcs = ["dataclass_compat_test.py"],
554-
srcs_version = "PY3",
555525
deps = [
556526
":dataclass_compat",
557527
"//tensorboard:expect_numpy_installed",
@@ -577,7 +547,6 @@ py_test(
577547
py_binary(
578548
name = "encode_png_benchmark",
579549
srcs = ["encode_png_benchmark.py"],
580-
srcs_version = "PY3",
581550
deps = [
582551
"//tensorboard:expect_absl_logging_installed",
583552
"//tensorboard:expect_numpy_installed",
@@ -590,7 +559,6 @@ py_binary(
590559
py_library(
591560
name = "plugin_util",
592561
srcs = ["plugin_util.py"],
593-
srcs_version = "PY3",
594562
visibility = ["//visibility:public"],
595563
deps = [
596564
":context",
@@ -606,7 +574,6 @@ py_test(
606574
name = "plugin_util_test",
607575
size = "small",
608576
srcs = ["plugin_util_test.py"],
609-
srcs_version = "PY3",
610577
tags = ["support_notf"],
611578
deps = [
612579
":context",
@@ -625,14 +592,12 @@ alias(
625592
py_library(
626593
name = "lazy",
627594
srcs = ["lazy.py"],
628-
srcs_version = "PY3",
629595
)
630596

631597
py_test(
632598
name = "lazy_test",
633599
size = "small",
634600
srcs = ["lazy_test.py"],
635-
srcs_version = "PY3",
636601
tags = ["support_notf"],
637602
deps = [":lazy"],
638603
)

0 commit comments

Comments
 (0)