1load("@grpc_python_dependencies//:requirements.bzl", "requirement") 2 3package(default_visibility = ["//visibility:public"]) 4 5py_library( 6 name = "grpcio", 7 srcs = ["__init__.py"], 8 deps = [ 9 ":utilities", 10 ":auth", 11 ":plugin_wrapping", 12 ":channel", 13 ":interceptor", 14 ":server", 15 "//src/python/grpcio/grpc/_cython:cygrpc", 16 "//src/python/grpcio/grpc/beta", 17 "//src/python/grpcio/grpc/experimental", 18 "//src/python/grpcio/grpc/framework", 19 requirement('enum34'), 20 requirement('six'), 21 ], 22 data = [ 23 "//:grpc", 24 ], 25 imports = ["../",], 26) 27 28py_library( 29 name = "auth", 30 srcs = ["_auth.py"], 31) 32 33py_library( 34 name = "channel", 35 srcs = ["_channel.py"], 36 deps = [ 37 ":common", 38 ":grpcio_metadata", 39 ], 40) 41 42py_library( 43 name = "common", 44 srcs = ["_common.py"], 45) 46 47py_library( 48 name = "grpcio_metadata", 49 srcs = ["_grpcio_metadata.py"], 50) 51 52py_library( 53 name = "interceptor", 54 srcs = ["_interceptor.py"], 55) 56 57py_library( 58 name = "plugin_wrapping", 59 srcs = ["_plugin_wrapping.py"], 60 deps = [ 61 ":common", 62 ] 63) 64 65py_library( 66 name = "server", 67 srcs = ["_server.py"], 68 deps = [ 69 ":common", 70 ":interceptor", 71 ], 72) 73 74py_library( 75 name = "utilities", 76 srcs = ["_utilities.py"], 77 deps = [ 78 ":common", 79 ], 80) 81 82