aboutsummaryrefslogtreecommitdiff
path: root/examples/py_proto_library/MODULE.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py_proto_library/MODULE.bazel')
-rw-r--r--examples/py_proto_library/MODULE.bazel23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/py_proto_library/MODULE.bazel b/examples/py_proto_library/MODULE.bazel
new file mode 100644
index 0000000..feb938d
--- /dev/null
+++ b/examples/py_proto_library/MODULE.bazel
@@ -0,0 +1,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")