BUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. licenses(["notice"])
  15. py_binary(
  16. name = "alts_server",
  17. srcs = [
  18. "alts_server.py",
  19. "demo_pb2.py",
  20. "demo_pb2_grpc.py",
  21. "server.py",
  22. ],
  23. main = "alts_server.py",
  24. python_version = "PY3",
  25. srcs_version = "PY2AND3",
  26. deps = [
  27. "//src/python/grpcio/grpc:grpcio",
  28. ],
  29. )
  30. py_binary(
  31. name = "alts_client",
  32. srcs = [
  33. "alts_client.py",
  34. "client.py",
  35. "demo_pb2.py",
  36. "demo_pb2_grpc.py",
  37. ],
  38. main = "alts_client.py",
  39. python_version = "PY3",
  40. srcs_version = "PY2AND3",
  41. deps = [
  42. "//src/python/grpcio/grpc:grpcio",
  43. ],
  44. )