Skip to content

Commit 7ce9d47

Browse files
committed
Remove srcs_version and python_version attributes, as they already default to "PY3"
PiperOrigin-RevId: 721416057
1 parent 169397c commit 7ce9d47

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

struct2tensor/BUILD

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ s2t_pytype_library(
3737
srcs = [
3838
"__init__.py",
3939
],
40-
srcs_version = "PY3ONLY",
4140
deps = [
4241
":calculate_options",
4342
":expression",
@@ -55,7 +54,6 @@ s2t_pytype_library(
5554
srcs = [
5655
"expression_impl/__init__.py",
5756
],
58-
srcs_version = "PY2AND3",
5957
deps = [
6058
":calculate_options",
6159
":expression",
@@ -84,7 +82,6 @@ s2t_pytype_library(
8482
srcs = [
8583
"path.py",
8684
],
87-
srcs_version = "PY3ONLY",
8885
deps = [
8986
"@com_github_tensorflow_metadata//tensorflow_metadata/proto/v0:py_metadata_v0_proto_py",
9087
"@com_google_protobuf//:protobuf_python",
@@ -100,7 +97,6 @@ s2t_pytype_library(
10097
"prensor_util.py",
10198
"prensor_value.py",
10299
],
103-
srcs_version = "PY3ONLY",
104100
deps = [
105101
":calculate_options",
106102
":path",
@@ -117,7 +113,6 @@ s2t_pytype_library(
117113
srcs = [
118114
"calculate_options.py",
119115
],
120-
srcs_version = "PY3ONLY",
121116
)
122117

123118
# Note: do not separate these, as eventually we want to make sure that they
@@ -146,7 +141,6 @@ s2t_pytype_library(
146141
"expression_impl/size.py",
147142
"expression_impl/slice_expression.py",
148143
],
149-
srcs_version = "PY3ONLY",
150144
deps = [
151145
":calculate_options",
152146
":path",
@@ -163,7 +157,6 @@ s2t_pytype_library(
163157
srcs = [
164158
"expression_impl/map_prensor_to_prensor.py",
165159
],
166-
srcs_version = "PY3ONLY",
167160
deps = [
168161
":expression",
169162
":path",
@@ -176,7 +169,6 @@ s2t_pytype_library(
176169
srcs = [
177170
"expression_impl/placeholder.py",
178171
],
179-
srcs_version = "PY3ONLY",
180172
deps = [
181173
":expression",
182174
":map_prensor_to_prensor",
@@ -190,7 +182,6 @@ s2t_pytype_library(
190182
srcs = [
191183
"expression_impl/parquet.py",
192184
],
193-
srcs_version = "PY3ONLY",
194185
deps = [
195186
":expression",
196187
":map_prensor_to_prensor",
@@ -207,7 +198,6 @@ s2t_pytype_library(
207198
srcs = [
208199
"expression_impl/proto_test_util.py",
209200
],
210-
srcs_version = "PY3ONLY",
211201
deps = [
212202
":expression",
213203
"//struct2tensor/test:test_py_pb2",
@@ -220,7 +210,6 @@ s2t_pytype_library(
220210
srcs = [
221211
"prensor_to_structured_tensor.py",
222212
],
223-
srcs_version = "PY3ONLY",
224213
deps = [
225214
":path",
226215
":prensor",
@@ -232,7 +221,6 @@ s2t_pytype_library(
232221
srcs = [
233222
"structured_tensor_to_prensor.py",
234223
],
235-
srcs_version = "PY3ONLY",
236224
deps = [
237225
":path",
238226
":prensor",

struct2tensor/benchmarks/BUILD

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,13 @@ py_test(
7575
# Follow the instructions in the file to properly run the benchmark.
7676
args = ["--test_mode"],
7777
main = "struct2tensor_benchmark.py",
78-
python_version = "PY3",
7978
shard_count = 4,
8079
deps = [":struct2tensor_benchmark_lib"],
8180
)
8281

8382
py_binary(
8483
name = "struct2tensor_benchmark",
8584
srcs = ["struct2tensor_benchmark.py"],
86-
python_version = "PY3",
8785
deps = [
8886
":struct2tensor_benchmark_lib",
8987
],
@@ -96,15 +94,13 @@ py_test(
9694
# Follow the instructions in the file to properly run the benchmark.
9795
args = ["--test_mode"],
9896
main = "ops_benchmark.py",
99-
python_version = "PY3",
10097
# shard_count = 4,
10198
deps = [":struct2tensor_benchmark_lib"],
10299
)
103100

104101
py_binary(
105102
name = "ops_benchmark",
106103
srcs = ["ops_benchmark.py"],
107-
python_version = "PY3",
108104
deps = [
109105
":struct2tensor_benchmark_lib",
110106
],
@@ -113,7 +109,6 @@ py_binary(
113109
py_library(
114110
name = "struct2tensor_benchmark_util",
115111
srcs = ["struct2tensor_benchmark_util.py"],
116-
srcs_version = "PY3ONLY",
117112
deps = [
118113
"//file/colossus/public:cns",
119114
"//third_party/py/cpuinfo",

struct2tensor/test/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ s2t_pytype_library(
109109
srcs = [
110110
"expression_test_util.py",
111111
],
112-
srcs_version = "PY3ONLY",
113112
deps = [
114113
"//struct2tensor:expression",
115114
"//struct2tensor:path",
@@ -122,7 +121,6 @@ s2t_pytype_library(
122121
srcs = [
123122
"prensor_test_util.py",
124123
],
125-
srcs_version = "PY3ONLY",
126124
deps = [
127125
"//struct2tensor:expression",
128126
"//struct2tensor:path",

struct2tensor/tools/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ package(
2424
py_library(
2525
name = "build_docs_lib",
2626
srcs = ["build_docs.py"],
27-
srcs_version = "PY3",
2827
deps = [
2928
"//struct2tensor",
3029
"//struct2tensor:struct2tensor_expression_impl",
@@ -39,7 +38,6 @@ py_library(
3938
py_binary(
4039
name = "build_docs",
4140
srcs = ["build_docs.py"],
42-
python_version = "PY3",
4341
deps = [
4442
":build_docs_lib",
4543
],

0 commit comments

Comments
 (0)