1module( 2 name = "rules_python_py_proto_library_example", 3 version = "0.0.0", 4 compatibility_level = 1, 5) 6 7bazel_dep(name = "rules_python", version = "0.17.3") 8 9# The following local_path_override is only needed to run this example as part of our CI. 10local_path_override( 11 module_name = "rules_python", 12 path = "../..", 13) 14 15python = use_extension("@rules_python//python/extensions:python.bzl", "python") 16python.toolchain( 17 configure_coverage_tool = True, 18 python_version = "3.9", 19) 20use_repo(python, "python_3_9") 21 22# We are using rules_proto to define rules_proto targets to be consumed by py_proto_library. 23bazel_dep(name = "rules_proto", version = "5.3.0-21.7") 24