blob: 2305ed99a0f4dbd0fdc3720ff9c86efe392a90c5 [file] [log] [blame]
C Shapiro367efde2021-05-11 06:56:33 -05001#!/bin/bash -e
2#
3# Copyright 2021 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6#
7# Generates python proto bindings that include the grpc bindings.
8
9readonly script_dir="$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")"
10
11cd "${script_dir}"
12
C Shapiro77435082021-05-17 12:58:11 -050013source "${script_dir}/bin/common.sh"
14create_venv
C Shapiro367efde2021-05-11 06:56:33 -050015
16echo "Generating proto and grpc bindings"
17python3 -m grpc_tools.protoc \
18 -Iproto \
19 --python_out=python \
20 --grpc_python_out=python \
C Shapiro0c083622021-06-28 15:18:27 -050021 proto/chromiumos/test/api/callbox_service.proto \
C Shapiro61d0cd92021-05-27 11:37:54 -050022 proto/chromiumos/test/api/dut_service.proto \
C Shapiro7a8e7f12021-05-18 15:44:58 -050023 proto/chromiumos/test/api/execution_service.proto \
24 proto/chromiumos/test/api/provision_service.proto
C Shapiro367efde2021-05-11 06:56:33 -050025
26deactivate