Skip to content

Commit 30f8772

Browse files
authored
[bazel] add py3 alias to py310 (#59250)
so that next time we upgrade the default python env, we do not need to make repo wide changes. it also makes conda-forge release patches more readable. Signed-off-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
1 parent bfac4d0 commit 30f8772

File tree

11 files changed

+77
-71
lines changed

11 files changed

+77
-71
lines changed

bazel/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,9 @@ platform(
134134
parents = ["@local_config_platform//:host"],
135135
visibility = ["//visibility:private"],
136136
)
137+
138+
alias(
139+
name = "py3",
140+
actual = ":py310",
141+
visibility = ["//visibility:public"],
142+
)

ci/lint/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ load("@rules_python//python:defs.bzl", "py_binary")
33
py_binary(
44
name = "check_bazel_team_owner",
55
srcs = ["check_bazel_team_owner.py"],
6-
exec_compatible_with = ["//bazel:py310"],
6+
exec_compatible_with = ["//bazel:py3"],
77
visibility = ["//visibility:private"],
88
)

ci/pipeline/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ py_test(
1414
":determine_tests_to_run.py",
1515
":test_rules.txt",
1616
],
17-
exec_compatible_with = ["//bazel:py310"],
17+
exec_compatible_with = ["//bazel:py3"],
1818
tags = [
1919
"ci_unit",
2020
"team:ci",

ci/ray_ci/BUILD.bazel

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ py_binary(
4242
py_binary(
4343
name = "build_in_docker",
4444
srcs = ["build_in_docker.py"],
45-
exec_compatible_with = ["//bazel:py310"],
45+
exec_compatible_with = ["//bazel:py3"],
4646
deps = [":ray_ci_lib"],
4747
)
4848

@@ -56,7 +56,7 @@ py_test(
5656
name = "test_linux_container",
5757
size = "small",
5858
srcs = ["test_linux_container.py"],
59-
exec_compatible_with = ["//bazel:py310"],
59+
exec_compatible_with = ["//bazel:py3"],
6060
tags = [
6161
"ci_unit",
6262
"team:ci",
@@ -72,7 +72,7 @@ py_test(
7272
name = "test_windows_container",
7373
size = "small",
7474
srcs = ["test_windows_container.py"],
75-
exec_compatible_with = ["//bazel:py310"],
75+
exec_compatible_with = ["//bazel:py3"],
7676
tags = [
7777
"ci_unit",
7878
"team:ci",
@@ -88,7 +88,7 @@ py_test(
8888
name = "test_tester",
8989
size = "small",
9090
srcs = ["test_tester.py"],
91-
exec_compatible_with = ["//bazel:py310"],
91+
exec_compatible_with = ["//bazel:py3"],
9292
tags = [
9393
"ci_unit",
9494
"team:ci",
@@ -104,7 +104,7 @@ py_test(
104104
name = "test_utils",
105105
size = "small",
106106
srcs = ["test_utils.py"],
107-
exec_compatible_with = ["//bazel:py310"],
107+
exec_compatible_with = ["//bazel:py3"],
108108
tags = [
109109
"ci_unit",
110110
"team:ci",
@@ -120,7 +120,7 @@ py_test(
120120
name = "test_container",
121121
size = "small",
122122
srcs = ["test_container.py"],
123-
exec_compatible_with = ["//bazel:py310"],
123+
exec_compatible_with = ["//bazel:py3"],
124124
tags = [
125125
"ci_unit",
126126
"team:ci",
@@ -135,7 +135,7 @@ py_test(
135135
name = "test_builder_container",
136136
size = "small",
137137
srcs = ["test_builder_container.py"],
138-
exec_compatible_with = ["//bazel:py310"],
138+
exec_compatible_with = ["//bazel:py3"],
139139
tags = [
140140
"ci_unit",
141141
"team:ci",
@@ -151,7 +151,7 @@ py_test(
151151
name = "test_linux_tester_container",
152152
size = "small",
153153
srcs = ["test_linux_tester_container.py"],
154-
exec_compatible_with = ["//bazel:py310"],
154+
exec_compatible_with = ["//bazel:py3"],
155155
tags = [
156156
"ci_unit",
157157
"team:ci",
@@ -167,7 +167,7 @@ py_test(
167167
name = "test_windows_tester_container",
168168
size = "small",
169169
srcs = ["test_windows_tester_container.py"],
170-
exec_compatible_with = ["//bazel:py310"],
170+
exec_compatible_with = ["//bazel:py3"],
171171
tags = [
172172
"ci_unit",
173173
"team:ci",
@@ -183,7 +183,7 @@ py_test(
183183
name = "test_ray_docker_container",
184184
size = "small",
185185
srcs = ["test_ray_docker_container.py"],
186-
exec_compatible_with = ["//bazel:py310"],
186+
exec_compatible_with = ["//bazel:py3"],
187187
tags = [
188188
"ci_unit",
189189
"team:ci",
@@ -199,7 +199,7 @@ py_test(
199199
name = "test_anyscale_docker_container",
200200
size = "small",
201201
srcs = ["test_anyscale_docker_container.py"],
202-
exec_compatible_with = ["//bazel:py310"],
202+
exec_compatible_with = ["//bazel:py3"],
203203
tags = [
204204
"ci_unit",
205205
"team:ci",
@@ -216,7 +216,7 @@ py_test(
216216
size = "small",
217217
srcs = ["test_bazel_sharding.py"],
218218
data = ["mock_BUILD"],
219-
exec_compatible_with = ["//bazel:py310"],
219+
exec_compatible_with = ["//bazel:py3"],
220220
tags = [
221221
"ci_unit",
222222
"team:ci",

ci/ray_ci/automation/BUILD.bazel

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ py_library(
1818
py_binary(
1919
name = "determine_microcheck_tests",
2020
srcs = ["determine_microcheck_tests.py"],
21-
exec_compatible_with = ["//bazel:py310"],
21+
exec_compatible_with = ["//bazel:py3"],
2222
deps = [
2323
ci_require("click"),
2424
":automation",
@@ -28,7 +28,7 @@ py_binary(
2828
py_binary(
2929
name = "determine_microcheck_step_ids",
3030
srcs = ["determine_microcheck_step_ids.py"],
31-
exec_compatible_with = ["//bazel:py310"],
31+
exec_compatible_with = ["//bazel:py3"],
3232
deps = [
3333
ci_require("click"),
3434
"//ci/ray_ci:ray_ci_lib",
@@ -38,7 +38,7 @@ py_binary(
3838
py_binary(
3939
name = "test_db_bot",
4040
srcs = ["test_db_bot.py"],
41-
exec_compatible_with = ["//bazel:py310"],
41+
exec_compatible_with = ["//bazel:py3"],
4242
deps = [
4343
ci_require("click"),
4444
"//ci/ray_ci:ray_ci_lib",
@@ -48,7 +48,7 @@ py_binary(
4848
py_binary(
4949
name = "weekly_green_metric",
5050
srcs = ["weekly_green_metric.py"],
51-
exec_compatible_with = ["//bazel:py310"],
51+
exec_compatible_with = ["//bazel:py3"],
5252
deps = [
5353
ci_require("boto3"),
5454
ci_require("click"),
@@ -59,7 +59,7 @@ py_binary(
5959
py_binary(
6060
name = "filter_tests",
6161
srcs = ["filter_tests.py"],
62-
exec_compatible_with = ["//bazel:py310"],
62+
exec_compatible_with = ["//bazel:py3"],
6363
deps = [
6464
ci_require("click"),
6565
"//ci/ray_ci:ray_ci_lib",
@@ -78,7 +78,7 @@ py_test(
7878
name = "test_update_version_lib",
7979
size = "small",
8080
srcs = ["test_update_version_lib.py"],
81-
exec_compatible_with = ["//bazel:py310"],
81+
exec_compatible_with = ["//bazel:py3"],
8282
tags = [
8383
"ci_unit",
8484
"team:ci",
@@ -92,7 +92,7 @@ py_test(
9292
py_binary(
9393
name = "update_version",
9494
srcs = ["update_version.py"],
95-
exec_compatible_with = ["//bazel:py310"],
95+
exec_compatible_with = ["//bazel:py3"],
9696
deps = [
9797
ci_require("click"),
9898
":update_version_lib",
@@ -121,7 +121,7 @@ py_test(
121121
data = [
122122
"@registry_x86_64//:file",
123123
],
124-
exec_compatible_with = ["//bazel:py310"],
124+
exec_compatible_with = ["//bazel:py3"],
125125
tags = [
126126
"ci_unit",
127127
"team:ci",
@@ -145,7 +145,7 @@ py_library(
145145
py_test(
146146
name = "test_ray_wheels_lib",
147147
srcs = ["test_ray_wheels_lib.py"],
148-
exec_compatible_with = ["//bazel:py310"],
148+
exec_compatible_with = ["//bazel:py3"],
149149
tags = [
150150
"ci_unit",
151151
"team:ci",
@@ -169,7 +169,7 @@ py_library(
169169
py_test(
170170
name = "test_pypi_lib",
171171
srcs = ["test_pypi_lib.py"],
172-
exec_compatible_with = ["//bazel:py310"],
172+
exec_compatible_with = ["//bazel:py3"],
173173
tags = [
174174
"ci_unit",
175175
"team:ci",
@@ -183,7 +183,7 @@ py_test(
183183
py_binary(
184184
name = "upload_wheels_pypi",
185185
srcs = ["upload_wheels_pypi.py"],
186-
exec_compatible_with = ["//bazel:py310"],
186+
exec_compatible_with = ["//bazel:py3"],
187187
deps = [
188188
":pypi_lib",
189189
":ray_wheels_lib",
@@ -194,7 +194,7 @@ py_binary(
194194
py_binary(
195195
name = "list_docker_tags",
196196
srcs = ["list_docker_tags.py"],
197-
exec_compatible_with = ["//bazel:py310"],
197+
exec_compatible_with = ["//bazel:py3"],
198198
deps = [
199199
":docker_tags_lib",
200200
ci_require("click"),
@@ -204,7 +204,7 @@ py_binary(
204204
py_binary(
205205
name = "generate_index",
206206
srcs = ["generate_index.py"],
207-
exec_compatible_with = ["//bazel:py310"],
207+
exec_compatible_with = ["//bazel:py3"],
208208
deps = [
209209
":docker_tags_lib",
210210
ci_require("click"),
@@ -214,7 +214,7 @@ py_binary(
214214
py_binary(
215215
name = "check_nightly_ray_commit",
216216
srcs = ["check_nightly_ray_commit.py"],
217-
exec_compatible_with = ["//bazel:py310"],
217+
exec_compatible_with = ["//bazel:py3"],
218218
deps = [
219219
":docker_tags_lib",
220220
ci_require("click"),
@@ -225,7 +225,7 @@ py_binary(
225225
py_test(
226226
name = "test_determine_microcheck_tests",
227227
srcs = ["test_determine_microcheck_tests.py"],
228-
exec_compatible_with = ["//bazel:py310"],
228+
exec_compatible_with = ["//bazel:py3"],
229229
tags = [
230230
"ci_unit",
231231
"team:ci",
@@ -239,7 +239,7 @@ py_test(
239239
py_binary(
240240
name = "get_contributors",
241241
srcs = ["get_contributors.py"],
242-
exec_compatible_with = ["//bazel:py310"],
242+
exec_compatible_with = ["//bazel:py3"],
243243
deps = [
244244
ci_require("click"),
245245
ci_require("pygithub"),

ci/ray_ci/bisect/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ py_binary(
55
name = "bisect_test",
66
srcs = ["bisect_test.py"],
77
data = [":macos_validator"],
8-
exec_compatible_with = ["//bazel:py310"],
8+
exec_compatible_with = ["//bazel:py3"],
99
deps = [":bisect"],
1010
)
1111

@@ -36,7 +36,7 @@ py_test(
3636
name = "test_bisector",
3737
size = "small",
3838
srcs = ["test_bisector.py"],
39-
exec_compatible_with = ["//bazel:py310"],
39+
exec_compatible_with = ["//bazel:py3"],
4040
tags = [
4141
"ci_unit",
4242
"team:ci",
@@ -51,7 +51,7 @@ py_test(
5151
name = "test_generic_validator",
5252
size = "small",
5353
srcs = ["test_generic_validator.py"],
54-
exec_compatible_with = ["//bazel:py310"],
54+
exec_compatible_with = ["//bazel:py3"],
5555
tags = [
5656
"ci_unit",
5757
"team:ci",

ci/ray_ci/doc/BUILD.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ py_binary(
1010
py_binary(
1111
name = "cmd_build",
1212
srcs = ["cmd_build.py"],
13-
exec_compatible_with = ["//bazel:py310"],
13+
exec_compatible_with = ["//bazel:py3"],
1414
deps = [
1515
ci_require("click"),
1616
":doc",
@@ -44,7 +44,7 @@ py_test(
4444
"mock/mock_module.py",
4545
"test_module.py",
4646
],
47-
exec_compatible_with = ["//bazel:py310"],
47+
exec_compatible_with = ["//bazel:py3"],
4848
tags = [
4949
"ci_unit",
5050
"team:ci",
@@ -63,7 +63,7 @@ py_test(
6363
"mock/mock_module.py",
6464
"test_api.py",
6565
],
66-
exec_compatible_with = ["//bazel:py310"],
66+
exec_compatible_with = ["//bazel:py3"],
6767
tags = [
6868
"ci_unit",
6969
"team:ci",
@@ -82,7 +82,7 @@ py_test(
8282
"mock/mock_module.py",
8383
"test_autodoc.py",
8484
],
85-
exec_compatible_with = ["//bazel:py310"],
85+
exec_compatible_with = ["//bazel:py3"],
8686
tags = [
8787
"ci_unit",
8888
"team:ci",
@@ -97,7 +97,7 @@ py_test(
9797
name = "test_build_cache",
9898
size = "small",
9999
srcs = ["test_build_cache.py"],
100-
exec_compatible_with = ["//bazel:py310"],
100+
exec_compatible_with = ["//bazel:py3"],
101101
tags = [
102102
"ci_unit",
103103
"team:ci",

ci/ray_ci/pipeline/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
44
py_binary(
55
name = "scheduler",
66
srcs = ["scheduler.py"],
7-
exec_compatible_with = ["//bazel:py310"],
7+
exec_compatible_with = ["//bazel:py3"],
88
deps = [":pipeline"],
99
)
1010

@@ -26,7 +26,7 @@ py_test(
2626
name = "test_gap_filling_scheduler",
2727
size = "small",
2828
srcs = ["test_gap_filling_scheduler.py"],
29-
exec_compatible_with = ["//bazel:py310"],
29+
exec_compatible_with = ["//bazel:py3"],
3030
tags = [
3131
"ci_unit",
3232
"team:ci",

ci/raydepsets/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ py_library(
2727
py_binary(
2828
name = "raydepsets",
2929
srcs = ["raydepsets.py"],
30-
exec_compatible_with = ["//bazel:py310"],
30+
exec_compatible_with = ["//bazel:py3"],
3131
deps = [":raydepsets_lib"],
3232
)
3333

@@ -45,7 +45,7 @@ py_test(
4545
"tests/test_data/test.depsets.yaml",
4646
"tests/test_data/test2.depsets.yaml",
4747
],
48-
exec_compatible_with = ["//bazel:py310"],
48+
exec_compatible_with = ["//bazel:py3"],
4949
tags = [
5050
"ci_unit",
5151
"team:ci",

doc/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ py_test(
520520
["external/*.py"],
521521
exclude = ["external/test_hashes.py"],
522522
),
523-
exec_compatible_with = ["//bazel:py310"],
523+
exec_compatible_with = ["//bazel:py3"],
524524
main = "external/test_hashes.py",
525525
tags = ["team:ml"],
526526
deps = [

0 commit comments

Comments
 (0)