aboutsummaryrefslogtreecommitdiff
path: root/examples/py_proto_library/MODULE.bazel
blob: feb938da5c828d5aafc44595e0deb33f6838cc15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module(
    name = "rules_python_py_proto_library_example",
    version = "0.0.0",
    compatibility_level = 1,
)

bazel_dep(name = "rules_python", version = "0.17.3")

# The following local_path_override is only needed to run this example as part of our CI.
local_path_override(
    module_name = "rules_python",
    path = "../..",
)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.9",
)
use_repo(python, "python_3_9")

# We are using rules_proto to define rules_proto targets to be consumed by py_proto_library.
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")