@@ -22,13 +22,25 @@ load("@rules_bazel_integration_test//bazel_integration_test:deps.bzl", "bazel_in
2222load ("@rules_bazel_integration_test//bazel_integration_test:repo_defs.bzl" , "bazel_binaries" )
2323load ("@rules_proto//proto:repositories.bzl" , "rules_proto_dependencies" , "rules_proto_toolchains" )
2424load ("//:version.bzl" , "SUPPORTED_BAZEL_VERSIONS" )
25+ load ("//python:versions.bzl" , "MINOR_MAPPING" , "TOOL_VERSIONS" )
2526load ("//python/private:internal_config_repo.bzl" , "internal_config_repo" ) # buildifier: disable=bzl-visibility
27+ load ("//python/private:pythons_hub.bzl" , "hub_repo" ) # buildifier: disable=bzl-visibility
2628load ("//python/private/pypi:deps.bzl" , "pypi_deps" ) # buildifier: disable=bzl-visibility
2729
2830def rules_python_internal_setup ():
2931 """Setup for rules_python tests and tools."""
3032
3133 internal_config_repo (name = "rules_python_internal" )
34+ hub_repo (
35+ name = "pythons_hub" ,
36+ minor_mapping = MINOR_MAPPING ,
37+ default_python_version = "" ,
38+ toolchain_prefixes = [],
39+ toolchain_python_versions = [],
40+ toolchain_set_python_version_constraints = [],
41+ toolchain_user_repository_names = [],
42+ python_versions = sorted (TOOL_VERSIONS .keys ()),
43+ )
3244
3345 # Because we don't use the pip_install rule, we have to call this to fetch its deps
3446 pypi_deps ()
0 commit comments