Functions | |
def | add_test_import (str proto_package_path, str file_name, bool service=False) |
None | compile_protos (str proto_root, str sub_dir='.') |
None | create_init_file (str path, str package_path="") |
bool | has_grpc_service (str proto_package_path) |
def | main () |
Variables | |
list | COMPILE_BOTH = COMPILE_PROTO_ONLY + ['--grpc_python_out={}'.format(OUTPUT_PATH)] |
list | COMPILE_PROTO_ONLY |
list | EXCLUDE_PROTO_PACKAGES_LIST |
GOOGLEAPIS_ROOT = os.path.join(GRPC_ROOT, 'third_party', 'googleapis') | |
GRPC_ROOT = os.path.abspath(os.path.join(WORK_DIR, '..', '..', '..', '..')) | |
list | NAMESPACE_PACKAGES = ["google"] |
OPENCENSUS_PROTO_ROOT | |
OPENTELEMETRY_PROTO_ROOT | |
OUTPUT_PATH = WORK_DIR | |
string | PKGUTIL_STYLE_INIT = "__path__ = __import__('pkgutil').extend_path(__path__, __name__)\n" |
string | TEST_FILE_NAME = 'generated_file_import_test.py' |
list | TEST_IMPORTS = [] |
UDPA_PROTO_ROOT = os.path.join(GRPC_ROOT, 'third_party', 'udpa') | |
VALIDATE_ROOT = os.path.join(GRPC_ROOT, 'third_party', 'protoc-gen-validate') | |
WELL_KNOWN_PROTOS_INCLUDE | |
WORK_DIR = os.path.dirname(os.path.abspath(__file__)) | |
XDS_PROTO_ROOT = os.path.join(GRPC_ROOT, 'third_party', 'envoy-api') | |
None build.compile_protos | ( | str | proto_root, |
str | sub_dir = '.' |
||
) |
None build.create_init_file | ( | str | path, |
str | package_path = "" |
||
) |
list build.COMPILE_BOTH = COMPILE_PROTO_ONLY + ['--grpc_python_out={}'.format(OUTPUT_PATH)] |
list build.COMPILE_PROTO_ONLY |
list build.EXCLUDE_PROTO_PACKAGES_LIST |
build.GOOGLEAPIS_ROOT = os.path.join(GRPC_ROOT, 'third_party', 'googleapis') |
build.GRPC_ROOT = os.path.abspath(os.path.join(WORK_DIR, '..', '..', '..', '..')) |
build.OPENCENSUS_PROTO_ROOT |
build.OPENTELEMETRY_PROTO_ROOT |
string build.PKGUTIL_STYLE_INIT = "__path__ = __import__('pkgutil').extend_path(__path__, __name__)\n" |
string build.TEST_FILE_NAME = 'generated_file_import_test.py' |
build.UDPA_PROTO_ROOT = os.path.join(GRPC_ROOT, 'third_party', 'udpa') |
build.WELL_KNOWN_PROTOS_INCLUDE |