1# Copyright 2020 gRPC authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15licenses(["notice"]) # 3-clause BSD 16 17load("@grpc_python_dependencies//:requirements.bzl", "requirement") 18 19py_binary( 20 name = "alts_server", 21 srcs = [ 22 "alts_server.py", 23 "demo_pb2.py", 24 "demo_pb2_grpc.py", 25 "server.py", 26 ], 27 main = "alts_server.py", 28 python_version = "PY3", 29 srcs_version = "PY2AND3", 30 deps = [ 31 "//src/python/grpcio/grpc:grpcio", 32 ], 33) 34 35py_binary( 36 name = "alts_client", 37 srcs = [ 38 "alts_client.py", 39 "client.py", 40 "demo_pb2.py", 41 "demo_pb2_grpc.py", 42 ], 43 main = "alts_client.py", 44 python_version = "PY3", 45 srcs_version = "PY2AND3", 46 deps = [ 47 "//src/python/grpcio/grpc:grpcio", 48 ], 49) 50