File tree Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 1
1
load ("@rules_proto_grpc//:defs.bzl" , "proto_plugin" )
2
+ load ("@rules_proto_grpc_python_pip_deps//:requirements.bzl" , "requirement" )
3
+ load ("@rules_python//python/entry_points:py_console_script_binary.bzl" , "py_console_script_binary" )
2
4
load ("@rules_python//python/pip_install:requirements.bzl" , "compile_pip_requirements" )
3
5
4
6
compile_pip_requirements (
@@ -33,9 +35,18 @@ proto_plugin(
33
35
visibility = ["//visibility:public" ],
34
36
)
35
37
38
+ py_console_script_binary (
39
+ name = "grpclib_plugin_bin" ,
40
+ pkg = requirement ("grpclib" ),
41
+ script = "protoc-gen-grpclib_python" ,
42
+ deps = [
43
+ requirement ("protobuf" ),
44
+ ],
45
+ )
46
+
36
47
proto_plugin (
37
48
name = "grpclib_plugin" ,
38
49
outputs = ["{protopath|python}_grpc.py" ],
39
- tool = "//grpclib:plugin " ,
50
+ tool = "//:grpclib_plugin_bin " ,
40
51
visibility = ["//visibility:public" ],
41
52
)
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments