| name = "rules_python_py_proto_library_example", |
| 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. |
| module_name = "rules_python", |
| python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| configure_coverage_tool = True, |
| 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") |
| # Add the protobuf library for well-known types (e.g. `Any`, `Timestamp`, etc) |
| bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") |