Skip to content

Commit 43c305a

Browse files
lingvo-botcopybara-github
authored andcommitted
Remove all {python,srcs}_version = "PY3" references.
PiperOrigin-RevId: 477817453
1 parent 47c3cc2 commit 43c305a

File tree

34 files changed

+0
-704
lines changed

34 files changed

+0
-704
lines changed

lingvo/BUILD

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ config_setting(
2020
py_library(
2121
name = "base_runner",
2222
srcs = ["base_runner.py"],
23-
srcs_version = "PY3",
2423
deps = [
2524
":base_trial",
2625
":compat",
@@ -36,7 +35,6 @@ py_library(
3635
py_library(
3736
name = "base_trial",
3837
srcs = ["base_trial.py"],
39-
srcs_version = "PY3",
4038
deps = [
4139
"//lingvo/core:hyperparams",
4240
],
@@ -45,7 +43,6 @@ py_library(
4543
py_library(
4644
name = "compat",
4745
srcs = ["compat.py"],
48-
srcs_version = "PY3",
4946
deps = [
5047
# Implicit absl.flags dependency.
5148
# Implicit absl.logging dependency.
@@ -56,8 +53,6 @@ py_library(
5653
py_test(
5754
name = "compat_test",
5855
srcs = ["compat_test.py"],
59-
python_version = "PY3",
60-
srcs_version = "PY3",
6156
deps = [
6257
":compat",
6358
],
@@ -66,14 +61,12 @@ py_test(
6661
py_library(
6762
name = "model_imports_no_params",
6863
srcs = ["model_imports.py"],
69-
srcs_version = "PY3",
7064
)
7165

7266
# Depend on this for access to the model registry with params for all tasks as
7367
# transitive deps. Only py_binary should depend on this target.
7468
py_library(
7569
name = "model_imports",
76-
srcs_version = "PY3",
7770
deps = [
7871
":model_imports_no_params",
7972
"//lingvo/tasks:all_params",
@@ -83,8 +76,6 @@ py_library(
8376
py_test(
8477
name = "model_import_test",
8578
srcs = ["model_import_test.py"],
86-
python_version = "PY3",
87-
srcs_version = "PY3",
8879
deps = [
8980
":compat",
9081
":model_imports_no_params",
@@ -95,7 +86,6 @@ py_library(
9586
name = "models_test_helper",
9687
testonly = 1,
9788
srcs = ["models_test_helper.py"],
98-
srcs_version = "PY3",
9989
deps = [
10090
":compat",
10191
":datasets_lib",
@@ -112,8 +102,6 @@ py_library(
112102
py_test(
113103
name = "models_test",
114104
srcs = ["models_test.py"],
115-
python_version = "PY3",
116-
srcs_version = "PY3",
117105
deps = [
118106
":compat",
119107
":model_imports",
@@ -127,7 +115,6 @@ py_test(
127115
py_library(
128116
name = "model_registry",
129117
srcs = ["model_registry.py"],
130-
srcs_version = "PY3",
131118
deps = [
132119
":compat",
133120
":model_imports_no_params",
@@ -139,16 +126,13 @@ py_library(
139126
py_test(
140127
name = "model_registry_test",
141128
srcs = ["model_registry_test.py"],
142-
python_version = "PY3",
143-
srcs_version = "PY3",
144129
deps = [":model_registry_test_lib"],
145130
)
146131

147132
py_library(
148133
name = "model_registry_test_lib",
149134
testonly = 1,
150135
srcs = ["model_registry_test.py"],
151-
srcs_version = "PY3",
152136
deps = [
153137
":compat",
154138
":model_registry",
@@ -165,7 +149,6 @@ py_library(
165149
pytype_strict_library(
166150
name = "datasets_lib",
167151
srcs = ["datasets.py"],
168-
srcs_version = "PY3",
169152
deps = [
170153
# Implicit absl.logging dependency.
171154
],
@@ -174,8 +157,6 @@ pytype_strict_library(
174157
py_test(
175158
name = "datasets_test",
176159
srcs = ["datasets_test.py"],
177-
python_version = "PY3",
178-
srcs_version = "PY3",
179160
deps = [
180161
":compat",
181162
":datasets_lib",
@@ -187,7 +168,6 @@ py_test(
187168
py_library(
188169
name = "runners",
189170
srcs = ["runners.py"],
190-
srcs_version = "PY3",
191171
deps = [
192172
":compat",
193173
":pdb_wrapper",
@@ -209,7 +189,6 @@ py_library(
209189
py_library(
210190
name = "eager_runners",
211191
srcs = ["eager_runners.py"],
212-
srcs_version = "PY3",
213192
deps = [
214193
":compat",
215194
"//lingvo:base_runner",
@@ -225,7 +204,6 @@ py_library(
225204
py_library(
226205
name = "trainer_lib",
227206
srcs = ["trainer.py"],
228-
srcs_version = "PY3",
229207
deps = [
230208
":base_trial",
231209
":compat",
@@ -251,8 +229,6 @@ py_library(
251229
lingvo_py_binary(
252230
name = "trainer",
253231
srcs = [":trainer_lib"],
254-
python_version = "PY3",
255-
srcs_version = "PY3",
256232
deps = [
257233
":model_imports",
258234
":trainer_lib",
@@ -264,9 +240,7 @@ py_test(
264240
size = "large",
265241
timeout = "long",
266242
srcs = ["trainer_test.py"],
267-
python_version = "PY3",
268243
shard_count = 12,
269-
srcs_version = "PY3",
270244
tags = [
271245
"noasan",
272246
"nomsan",
@@ -300,7 +274,6 @@ py_library(
300274
name = "trainer_test_lib",
301275
testonly = 1,
302276
srcs = ["trainer_test.py"],
303-
srcs_version = "PY3",
304277
tags = [
305278
"noasan",
306279
"nomsan",
@@ -334,8 +307,6 @@ lingvo_py_binary(
334307
data = [
335308
"//lingvo/tasks/punctuator/tools:download_brown_corpus",
336309
],
337-
python_version = "PY3",
338-
srcs_version = "PY3",
339310
deps = [
340311
":model_imports", # build_cleaner: keep
341312
":trainer_lib", # build_cleaner: keep
@@ -362,7 +333,6 @@ genrule(
362333
py_library(
363334
name = "executor_lib",
364335
srcs = ["executor.py"],
365-
srcs_version = "PY3",
366336
deps = [
367337
":compat",
368338
":pdb_wrapper",

0 commit comments

Comments
 (0)