• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2025 the gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15module(
16    name = "grpc",
17    version = "1.70.1",
18    compatibility_level = 1,
19    repo_name = "com_github_grpc_grpc",
20)
21
22bazel_dep(name = "abseil-cpp", version = "20240722.0", repo_name = "com_google_absl")
23bazel_dep(name = "apple_support", version = "1.17.1", repo_name = "build_bazel_apple_support")
24bazel_dep(name = "bazel_skylib", version = "1.7.1")
25bazel_dep(name = "boringssl", version = "0.20241024.0")  # mistmatched 20241211
26bazel_dep(name = "c-ares", version = "1.15.0", repo_name = "com_github_cares_cares")  # mistmatched 1.19.1
27bazel_dep(name = "envoy_api", version = "0.0.0-20241214-918efc9")  # mistmatched 20250106
28bazel_dep(name = "googleapis", version = "0.0.0-20240819-fe8ba054a", repo_name = "com_google_googleapis")
29bazel_dep(name = "opentelemetry-cpp", version = "1.16.0", repo_name = "io_opentelemetry_cpp")  # mistmached 1.18.0
30bazel_dep(name = "platforms", version = "0.0.10")
31bazel_dep(name = "protobuf", version = "29.0", repo_name = "com_google_protobuf")
32bazel_dep(name = "re2", version = "2024-07-02", repo_name = "com_googlesource_code_re2")  # mistmached 2022-04-01
33bazel_dep(name = "rules_apple", version = "3.16.0", repo_name = "build_bazel_rules_apple")
34bazel_dep(name = "rules_cc", version = "0.0.17")
35bazel_dep(name = "rules_proto", version = "7.0.2")
36bazel_dep(name = "xds", version = "0.0.0-20240423-555b57e", repo_name = "com_github_cncf_xds")  # mismatched 20231116
37bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
38
39grpc_repo_deps_ext = use_extension("//bazel:grpc_deps.bzl", "grpc_repo_deps_ext")
40use_repo(
41    grpc_repo_deps_ext,
42    "google_cloud_cpp",
43)
44
45switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules")
46switched_rules.use_languages(
47    cc = True,
48    grpc = True,
49    python = True,
50)
51
52bazel_dep(name = "rules_python", version = "0.37.1")
53
54PYTHON_VERSIONS = [
55    "3.8",
56    "3.9",
57    "3.10",
58    "3.11",
59    "3.12",
60    "3.13",
61]
62
63python = use_extension("@rules_python//python/extensions:python.bzl", "python")
64
65[
66    python.toolchain(
67        is_default = python_version == PYTHON_VERSIONS[-1],
68        python_version = python_version,
69    )
70    for python_version in PYTHON_VERSIONS
71]
72
73pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
74
75[
76    pip.parse(
77        hub_name = "grpc_python_dependencies",
78        python_version = python_version,
79        requirements_lock = "//:requirements.bazel.txt",
80    )
81    for python_version in PYTHON_VERSIONS
82]
83
84use_repo(pip, "grpc_python_dependencies")
85
86bazel_dep(name = "cython", version = "3.0.11-1")
87