diff options
author | Yifan Hong <elsk@google.com> | 2024-01-16 16:42:56 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2024-01-16 16:42:57 -0800 |
commit | 1508c18d9e27325a8d9c574a90d205e0a1d8a78f (patch) | |
tree | 721d3225371f656a66228a41796c81aa4d8bc096 /examples/py_proto_library/example.com/another_proto | |
parent | 3e21f23d9400ba51f10e9b76016ff6d472829b4e (diff) | |
parent | 231d3f633fbcbb36028d96a188298df99bf153e1 (diff) | |
download | bazelbuild-rules_python-1508c18d9e27325a8d9c574a90d205e0a1d8a78f.tar.gz |
Upgrade bazelbuild-rules_python to 0.28.0
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update bazelbuild-rules_python
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
Test: TreeHugger
Change-Id: Ic0584645f577a4ea1f67458ca5e753f8a906aaa4
Diffstat (limited to 'examples/py_proto_library/example.com/another_proto')
-rw-r--r-- | examples/py_proto_library/example.com/another_proto/BUILD.bazel | 16 | ||||
-rw-r--r-- | examples/py_proto_library/example.com/another_proto/message.proto | 10 |
2 files changed, 26 insertions, 0 deletions
diff --git a/examples/py_proto_library/example.com/another_proto/BUILD.bazel b/examples/py_proto_library/example.com/another_proto/BUILD.bazel new file mode 100644 index 0000000..dd58265 --- /dev/null +++ b/examples/py_proto_library/example.com/another_proto/BUILD.bazel @@ -0,0 +1,16 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@rules_python//python:proto.bzl", "py_proto_library") + +py_proto_library( + name = "message_proto_py_pb2", + visibility = ["//visibility:public"], + deps = [":message_proto"], +) + +proto_library( + name = "message_proto", + srcs = ["message.proto"], + # https://bazel.build/reference/be/protocol-buffer#proto_library.strip_import_prefix + strip_import_prefix = "/example.com", + deps = ["//example.com/proto:pricetag_proto"], +) diff --git a/examples/py_proto_library/example.com/another_proto/message.proto b/examples/py_proto_library/example.com/another_proto/message.proto new file mode 100644 index 0000000..6e7dcc5 --- /dev/null +++ b/examples/py_proto_library/example.com/another_proto/message.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package rules_python; + +import "proto/pricetag.proto"; + +message TestMessage { + uint32 index = 1; + PriceTag pricetag = 2; +} |