Lines Matching +full:python +full:- +full:format
7 # http://www.apache.org/licenses/LICENSE-2.0
14 """Generates and compiles Python gRPC stubs from proto_library rules."""
17 load("@rules_python//python:py_info.bzl", "PyInfo")
36 "The Python outputs from the Protobuf compiler.",
39 "generated_py_srcs": "The direct (not transitive) generated Python source files.",
50 # Early return for well-known protos.
73 "--python_out={}".format(out_dir.path),
74 "--pyi_out={}".format(out_dir.path),
76 "--proto_path={}".format(get_include_directory(i))
79 "--proto_path={}".format(context.genfiles_dir.path),
95 imports.append("{}/{}".format(context.workspace_name, out_dir.import_path))
135 # outputs align with native python workflows.
144 … = "from %s import *" % py_src.short_path.replace("..", "external").replace("/", ".")[:-len(".py")]
207 "--proto_path={}".format(get_include_directory(i))
210 arguments.append("--proto_path={}".format(context.genfiles_dir.path))
266 default = Label("//src/python/grpcio/grpc:grpcio"),
278 grpc_library = Label("//src/python/grpcio/grpc:grpcio"),
280 """Generate python code for gRPC services defined in a protobuf.
293 python gRPC library target to be depended upon. This can be used to
294 generate code that depends on `grpcio` from the Python Package Index.