Skip to content

Commit

Permalink
Remove srcs_version and python_version attributes, as they alread…
Browse files Browse the repository at this point in the history
…y default to `"PY3"`

PiperOrigin-RevId: 723108926
  • Loading branch information
oprypin authored and copybara-github committed Feb 4, 2025
1 parent ec7629b commit 1c11008
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 51 deletions.
1 change: 0 additions & 1 deletion examples/distributed_training_ranking_python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package(licenses = ["notice"])
py_binary(
name = "main",
srcs = ["main.py"],
python_version = "PY3",
deps = [
# absl:app dep,
# absl/flags dep,
Expand Down
1 change: 0 additions & 1 deletion examples/vizier_tuning_python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package(licenses = ["notice"])
py_binary(
name = "main",
srcs = ["main.py"],
python_version = "PY3",
deps = [
# absl:app dep,
# absl/flags dep,
Expand Down
2 changes: 0 additions & 2 deletions yggdrasil_decision_forests/cli/monitoring/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ cc_binary_ydf(
py_binary(
name = "compare_benchmark",
srcs = ["compare_benchmark.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
# absl:app dep,
# absl/flags dep,
Expand Down
1 change: 0 additions & 1 deletion yggdrasil_decision_forests/port/python/ydf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ py_test(
name = "api_test",
srcs = ["api_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
shard_count = 5,
deps = [
":api",
Expand Down
3 changes: 0 additions & 3 deletions yggdrasil_decision_forests/port/python/ydf/dataset/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
":dataset",
":dataspec",
Expand All @@ -90,7 +89,6 @@ py_test(
name = "dataset_with_tf_test",
srcs = ["dataset_with_tf_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
deps = [
":dataset",
# absl/testing:absltest dep,
Expand All @@ -103,7 +101,6 @@ py_test(
py_test(
name = "dataspec_test",
srcs = ["dataspec_test.py"],
python_version = "PY3",
deps = [
":dataspec",
# absl/testing:absltest dep,
Expand Down
7 changes: 0 additions & 7 deletions yggdrasil_decision_forests/port/python/ydf/deep/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
shard_count = 4,
deps = [
":mlp",
Expand All @@ -178,7 +177,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
":dataset",
# absl/testing:absltest dep,
Expand All @@ -191,7 +189,6 @@ py_test(
py_test(
name = "preprocessor_test",
srcs = ["preprocessor_test.py"],
python_version = "PY3",
deps = [
":dataset",
":layer",
Expand All @@ -210,7 +207,6 @@ py_test(
name = "hyperparameter_test",
srcs = ["hyperparameter_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
deps = [
":hyperparameter",
# absl/testing:absltest dep,
Expand All @@ -221,7 +217,6 @@ py_test(
py_test(
name = "layer_test",
srcs = ["layer_test.py"],
python_version = "PY3",
deps = [
":layer",
# absl/testing:absltest dep,
Expand All @@ -233,7 +228,6 @@ py_test(
py_test(
name = "metric_test",
srcs = ["metric_test.py"],
python_version = "PY3",
deps = [
":metric",
# absl/testing:absltest dep,
Expand All @@ -249,7 +243,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
shard_count = 4,
deps = [
":layer",
Expand Down
11 changes: 0 additions & 11 deletions yggdrasil_decision_forests/port/python/ydf/learner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package(
py_binary(
name = "worker_main",
srcs = ["worker_main.py"],
python_version = "PY3",
visibility = ["//visibility:public"],
deps = [
# absl:app dep,
Expand Down Expand Up @@ -208,7 +207,6 @@ py_library(
py_library(
name = "tuner",
srcs = ["tuner.py"],
srcs_version = "PY3",
deps = [
"@ydf_cc//yggdrasil_decision_forests/learner:abstract_learner_py_proto",
"@ydf_cc//yggdrasil_decision_forests/learner/hyperparameters_optimizer:hyperparameters_optimizer_py_proto",
Expand All @@ -220,7 +218,6 @@ py_library(
py_library(
name = "worker",
srcs = ["worker.py"],
srcs_version = "PY3",
deps = [
"//ydf/cc:ydf",
],
Expand Down Expand Up @@ -253,7 +250,6 @@ py_test(
size = "large",
srcs = ["learner_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
shard_count = 10,
tags = [
],
Expand Down Expand Up @@ -291,7 +287,6 @@ py_test(
timeout = "long",
srcs = ["custom_loss_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
deps = [
":custom_loss_py",
":generic_learner",
Expand All @@ -312,7 +307,6 @@ py_test(
name = "distributed_learner_test",
srcs = ["distributed_learner_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
shard_count = 10,
deps = [
":generic_learner",
Expand All @@ -332,7 +326,6 @@ py_test(
py_test(
name = "learner_with_tf_test",
srcs = ["learner_with_tf_test.py"],
python_version = "PY3",
deps = [
":generic_learner",
":specialized_learners",
Expand All @@ -346,7 +339,6 @@ py_test(
py_test(
name = "hyperparameters_test",
srcs = ["hyperparameters_test.py"],
python_version = "PY3",
deps = [
":hyperparameters",
# absl/testing:absltest dep,
Expand All @@ -359,7 +351,6 @@ py_test(
name = "learner_with_xarray_test",
srcs = ["learner_with_xarray_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
deps = [
":specialized_learners",
# absl/testing:absltest dep,
Expand All @@ -372,7 +363,6 @@ py_test(
py_test(
name = "tuner_test",
srcs = ["tuner_test.py"],
python_version = "PY3",
tags = [
],
deps = [
Expand All @@ -391,7 +381,6 @@ py_test(
name = "feature_selector_test",
srcs = ["feature_selector_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
shard_count = 5,
deps = [
":feature_selector",
Expand Down
2 changes: 0 additions & 2 deletions yggdrasil_decision_forests/port/python/ydf/metric/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ py_test(
name = "metric_test",
srcs = ["metric_test.py"],
data = ["//test_data"],
python_version = "PY3",
deps = [
":metric",
# absl/testing:absltest dep,
Expand All @@ -96,7 +95,6 @@ py_test(
name = "evaluate_test",
srcs = ["evaluate_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
deps = [
":evaluate",
# absl/testing:absltest dep,
Expand Down
7 changes: 0 additions & 7 deletions yggdrasil_decision_forests/port/python/ydf/model/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
shard_count = 4,
deps = [
":analysis",
Expand Down Expand Up @@ -273,7 +272,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
shard_count = 5,
# TODO: This test fails in OSS due to a package name clash on yggdrasil_decision_forests.
tags = ["manual"],
Expand Down Expand Up @@ -330,7 +328,6 @@ genrule(
py_binary(
name = "export_cc_generator",
srcs = ["export_cc_generator.py"],
python_version = "PY3",
deps = [
# absl:app dep,
# absl/flags dep,
Expand All @@ -342,7 +339,6 @@ py_binary(
py_test(
name = "optimizer_logs_test",
srcs = ["optimizer_logs_test.py"],
python_version = "PY3",
deps = [
":optimizer_logs",
# absl/testing:absltest dep,
Expand All @@ -360,7 +356,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
":export_jax",
":generic_model",
Expand All @@ -385,7 +380,6 @@ py_test(
py_test(
name = "sklearn_model_test",
srcs = ["sklearn_model_test.py"],
python_version = "PY3",
deps = [
":export_sklearn",
# absl/testing:absltest dep,
Expand All @@ -400,7 +394,6 @@ py_test(
name = "export_docker_test",
srcs = ["export_docker_test.py"],
data = ["@ydf_cc//yggdrasil_decision_forests/test_data"],
python_version = "PY3",
deps = [
":export_docker",
":model_lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
":decision_forest_model",
# absl/testing:absltest dep,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
":gradient_boosted_trees_model",
# absl/logging dep,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
# absl/testing:absltest dep,
# numpy dep,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
# absl/testing:absltest dep,
# numpy dep,
Expand Down
5 changes: 0 additions & 5 deletions yggdrasil_decision_forests/port/python/ydf/model/tree/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ py_test(
data = [
"//test_data",
],
python_version = "PY3",
deps = [
":condition",
":node",
Expand All @@ -104,7 +103,6 @@ py_test(
py_test(
name = "value_test",
srcs = ["value_test.py"],
python_version = "PY3",
deps = [
":value",
# absl/testing:absltest dep,
Expand All @@ -117,7 +115,6 @@ py_test(
py_test(
name = "node_test",
srcs = ["node_test.py"],
python_version = "PY3",
deps = [
":condition",
":node",
Expand All @@ -129,7 +126,6 @@ py_test(
py_test(
name = "condition_test",
srcs = ["condition_test.py"],
python_version = "PY3",
deps = [
":condition",
# absl/testing:absltest dep,
Expand All @@ -144,7 +140,6 @@ py_test(
name = "plot_test",
srcs = ["plot_test.py"],
data = ["assets"],
python_version = "PY3",
deps = [
":plot",
# absl/testing:absltest dep,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ py_library(
py_test(
name = "benchmark_inference_speed_test",
srcs = ["benchmark_inference_speed_test.py"],
python_version = "PY3",
deps = [
":benchmark_inference_speed",
# absl/testing:absltest dep,
Expand Down
1 change: 0 additions & 1 deletion yggdrasil_decision_forests/port/python/ydf/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ py_test(
"//test_data",
"@ydf_cc//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
deps = [
":tf_example",
# absl/logging dep,
Expand Down
Loading

0 comments on commit 1c11008

Please sign in to comment.