2025-08-12 21:17:48 -04:00
|
|
|
workspace(name = "io_ray")
|
2019-03-22 14:30:05 +08:00
|
|
|
|
2023-04-28 13:46:21 -07:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
2024-05-21 16:40:34 -07:00
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
|
name = "platforms",
|
|
|
|
|
sha256 = "5eda539c841265031c2f82d8ae7a3a6490bd62176e0c038fc469eabf91f6149b",
|
|
|
|
|
urls = [
|
|
|
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.9/platforms-0.0.9.tar.gz",
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
2025-07-21 09:22:44 -07:00
|
|
|
http_archive(
|
|
|
|
|
name = "rules_java",
|
|
|
|
|
sha256 = "302bcd9592377bf9befc8e41aa97ec02df12813d47af9979e4764f3ffdcc5da8",
|
|
|
|
|
urls = [
|
|
|
|
|
"https://github.com/bazelbuild/rules_java/releases/download/7.12.4/rules_java-7.12.4.tar.gz",
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
|
|
|
|
|
|
|
|
|
|
rules_java_dependencies()
|
|
|
|
|
|
|
|
|
|
rules_java_toolchains()
|
|
|
|
|
|
2019-04-29 13:02:49 +08:00
|
|
|
load("//bazel:ray_deps_setup.bzl", "ray_deps_setup")
|
2019-04-18 16:53:25 +08:00
|
|
|
|
2019-04-29 13:02:49 +08:00
|
|
|
ray_deps_setup()
|
2019-04-18 16:53:25 +08:00
|
|
|
|
2019-04-29 13:02:49 +08:00
|
|
|
load("//bazel:ray_deps_build_all.bzl", "ray_deps_build_all")
|
2019-04-18 16:53:25 +08:00
|
|
|
|
2019-04-29 13:02:49 +08:00
|
|
|
ray_deps_build_all()
|
2019-11-08 15:58:28 -08:00
|
|
|
|
|
|
|
|
# This needs to be run after grpc_deps() in ray_deps_build_all() to make
|
|
|
|
|
# sure all the packages loaded by grpc_deps() are available. However a
|
|
|
|
|
# load() statement cannot be in a function so we put it here.
|
|
|
|
|
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
|
|
|
|
|
|
|
|
|
|
grpc_extra_deps()
|
2021-08-21 11:33:11 -07:00
|
|
|
|
|
|
|
|
load("@bazel_skylib//lib:versions.bzl", "versions")
|
|
|
|
|
|
2024-05-21 16:23:37 -07:00
|
|
|
# Please keep this in sync with the .bazelversion file.
|
2024-06-06 20:17:39 -07:00
|
|
|
versions.check(
|
2026-03-24 09:19:34 -07:00
|
|
|
maximum_bazel_version = "7.5.0",
|
|
|
|
|
minimum_bazel_version = "7.5.0",
|
2024-06-06 20:17:39 -07:00
|
|
|
)
|
2022-05-26 02:58:14 +08:00
|
|
|
|
|
|
|
|
load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
|
|
|
|
|
|
|
|
|
|
hedron_compile_commands_setup()
|
2023-04-28 13:46:21 -07:00
|
|
|
|
2023-05-08 09:14:40 -07:00
|
|
|
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
|
|
|
|
|
|
2025-11-07 14:06:53 -08:00
|
|
|
python_register_toolchains(
|
|
|
|
|
name = "python3_10",
|
|
|
|
|
python_version = "3.10",
|
|
|
|
|
register_toolchains = False,
|
|
|
|
|
)
|
|
|
|
|
|
2025-11-14 10:39:03 -08:00
|
|
|
load("@python3_10//:defs.bzl", python310 = "interpreter")
|
2023-04-28 13:46:21 -07:00
|
|
|
load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependencies")
|
|
|
|
|
|
|
|
|
|
pip_install_dependencies()
|
2023-05-08 09:14:40 -07:00
|
|
|
|
|
|
|
|
load("@rules_python//python:pip.bzl", "pip_parse")
|
|
|
|
|
|
2025-11-14 10:39:03 -08:00
|
|
|
# For CI scripts use only; not for ray testing.
|
|
|
|
|
pip_parse(
|
|
|
|
|
name = "py_deps_py310",
|
|
|
|
|
python_interpreter_target = python310,
|
|
|
|
|
requirements_lock = "//release:requirements_py310.txt",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
load("@py_deps_py310//:requirements.bzl", install_py_deps_py310 = "install_deps")
|
2023-05-08 09:14:40 -07:00
|
|
|
|
2025-11-14 10:39:03 -08:00
|
|
|
install_py_deps_py310()
|
2023-05-08 09:14:40 -07:00
|
|
|
|
2025-12-10 20:15:57 +05:30
|
|
|
register_toolchains("//bazel:py310_toolchain")
|
2023-05-08 09:14:40 -07:00
|
|
|
|
|
|
|
|
register_execution_platforms(
|
|
|
|
|
"@local_config_platform//:host",
|
2025-11-12 15:01:20 -08:00
|
|
|
"//bazel:py310_platform",
|
2023-05-08 09:14:40 -07:00
|
|
|
)
|
2024-02-29 17:50:16 -08:00
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
|
name = "crane_linux_x86_64",
|
|
|
|
|
build_file_content = """
|
|
|
|
|
filegroup(
|
|
|
|
|
name = "file",
|
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
)
|
|
|
|
|
""",
|
|
|
|
|
sha256 = "daa629648e1d1d10fc8bde5e6ce4176cbc0cd48a32211b28c3fd806e0fa5f29b",
|
2024-05-21 16:40:34 -07:00
|
|
|
urls = ["https://github.com/google/go-containerregistry/releases/download/v0.19.0/go-containerregistry_Linux_x86_64.tar.gz"],
|
2024-02-29 17:50:16 -08:00
|
|
|
)
|
2025-04-26 08:14:07 +08:00
|
|
|
|
2025-05-29 15:44:14 -07:00
|
|
|
http_archive(
|
|
|
|
|
name = "registry_x86_64",
|
|
|
|
|
build_file_content = """
|
|
|
|
|
filegroup(
|
|
|
|
|
name = "file",
|
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
)
|
|
|
|
|
""",
|
|
|
|
|
sha256 = "61c9a2c0d5981a78482025b6b69728521fbc78506d68b223d4a2eb825de5ca3d",
|
|
|
|
|
urls = ["https://github.com/distribution/distribution/releases/download/v3.0.0/registry_3.0.0_linux_amd64.tar.gz"],
|
|
|
|
|
)
|
|
|
|
|
|
2025-07-08 21:49:51 -07:00
|
|
|
http_archive(
|
2025-08-19 23:59:41 -07:00
|
|
|
name = "uv_x86_64-linux",
|
2025-07-08 21:49:51 -07:00
|
|
|
build_file_content = """
|
2025-07-11 10:16:07 -07:00
|
|
|
filegroup(
|
|
|
|
|
name = "file",
|
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
|
visibility = ["//visibility:public"],
|
2025-07-08 21:49:51 -07:00
|
|
|
)
|
|
|
|
|
""",
|
2026-02-06 11:14:17 -08:00
|
|
|
sha256 = "30ccbf0a66dc8727a02b0e245c583ee970bdafecf3a443c1686e1b30ec4939e8",
|
|
|
|
|
urls = ["https://github.com/astral-sh/uv/releases/download/0.9.26/uv-x86_64-unknown-linux-gnu.tar.gz"],
|
2025-07-08 21:49:51 -07:00
|
|
|
)
|
|
|
|
|
|
2025-08-19 23:59:41 -07:00
|
|
|
http_archive(
|
|
|
|
|
name = "uv_aarch64-darwin",
|
|
|
|
|
build_file_content = """
|
|
|
|
|
filegroup(
|
|
|
|
|
name = "file",
|
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
)
|
|
|
|
|
""",
|
2026-02-06 11:14:17 -08:00
|
|
|
sha256 = "fcf0a9ea6599c6ae28a4c854ac6da76f2c889354d7c36ce136ef071f7ab9721f",
|
|
|
|
|
urls = ["https://github.com/astral-sh/uv/releases/download/0.9.26/uv-aarch64-apple-darwin.tar.gz"],
|
2025-08-19 23:59:41 -07:00
|
|
|
)
|
|
|
|
|
|
2025-04-26 08:14:07 +08:00
|
|
|
http_archive(
|
|
|
|
|
name = "com_github_storypku_bazel_iwyu",
|
|
|
|
|
sha256 = "aa78c331a2cb139f73f7d74eeb4d5ab29794af82023ef5d6d5194f76b7d37449",
|
|
|
|
|
strip_prefix = "bazel_iwyu-0.19.2",
|
|
|
|
|
urls = [
|
|
|
|
|
"https://github.com/storypku/bazel_iwyu/archive/0.19.2.tar.gz",
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
2025-08-27 21:48:41 -07:00
|
|
|
http_archive(
|
|
|
|
|
name = "redis_linux_x86_64",
|
|
|
|
|
build_file_content = """exports_files(["redis-server", "redis-cli"])""",
|
|
|
|
|
sha256 = "4ae33c10059ed52202a12929d269deea46fac81b8e02e722d30cb22ceb3ed678",
|
|
|
|
|
urls = ["https://github.com/ray-project/redis/releases/download/7.2.3/redis-linux-x86_64.tar.gz"],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
|
name = "redis_linux_arm64",
|
|
|
|
|
build_file_content = """exports_files(["redis-server", "redis-cli"])""",
|
|
|
|
|
sha256 = "2d1085a4f69477e1f44cbddd531e593f0712532b1ade9beab0b221a0cb01f298",
|
|
|
|
|
urls = ["https://github.com/ray-project/redis/releases/download/7.2.3/redis-linux-arm64.tar.gz"],
|
|
|
|
|
)
|
|
|
|
|
|
2025-08-28 16:50:52 -07:00
|
|
|
http_archive(
|
|
|
|
|
name = "redis_osx_arm64",
|
|
|
|
|
build_file_content = """exports_files(["redis-server", "redis-cli"])""",
|
|
|
|
|
sha256 = "74b76099c3600b538252cdd1731278e087e8e85eecc6c64318c860f3e9462506",
|
|
|
|
|
urls = ["https://github.com/ray-project/redis/releases/download/7.2.3/redis-osx-arm64.tar.gz"],
|
|
|
|
|
)
|
|
|
|
|
|
2025-04-26 08:14:07 +08:00
|
|
|
load("@com_github_storypku_bazel_iwyu//bazel:dependencies.bzl", "bazel_iwyu_dependencies")
|
|
|
|
|
|
|
|
|
|
bazel_iwyu_dependencies()
|