diff --git a/MODULE.bazel b/MODULE.bazel index 2c325a6ef8..3e62ab76ef 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -49,7 +49,7 @@ python.toolchain( is_default = True, python_version = "3.11", ) -use_repo(python, "python_versions", "pythons_hub") +use_repo(python, "python_3_11", "python_versions", "pythons_hub") # This call registers the Python toolchains. register_toolchains("@pythons_hub//:all") diff --git a/tests/BUILD.bazel b/tests/BUILD.bazel index 5c2dce435d..e7dbef65d8 100644 --- a/tests/BUILD.bazel +++ b/tests/BUILD.bazel @@ -25,22 +25,3 @@ build_test( "//python/entry_points:py_console_script_binary_bzl", ], ) - -# Used for manual tests when downloading a toolchain for a particular platform -platform( - name = "linux_x86_64", - constraint_values = [ - "@platforms//cpu:x86_64", - "@platforms//os:linux", - ], - visibility = ["//:__subpackages__"], -) - -platform( - name = "windows_x86_64", - constraint_values = [ - "@platforms//cpu:x86_64", - "@platforms//os:windows", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tests/support/BUILD.bazel b/tests/support/BUILD.bazel index 316e9abbf1..0a4c98ccce 100644 --- a/tests/support/BUILD.bazel +++ b/tests/support/BUILD.bazel @@ -37,3 +37,29 @@ platform( "@platforms//os:windows", ], ) + +# Used when testing downloading of toolchains for a different platform + +platform( + name = "linux_x86_64", + constraint_values = [ + "@platforms//cpu:x86_64", + "@platforms//os:linux", + ], +) + +platform( + name = "mac_x86_64", + constraint_values = [ + "@platforms//cpu:x86_64", + "@platforms//os:macos", + ], +) + +platform( + name = "windows_x86_64", + constraint_values = [ + "@platforms//cpu:x86_64", + "@platforms//os:windows", + ], +)