From c10b32c314117f11e8f31970dda3914ad3e71a2f Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Fri, 8 May 2020 16:16:03 -0700 Subject: [PATCH] chore: Migrate python-speech synth.py from artman to bazel (#21) --- google-cloud-speech/synth.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/google-cloud-speech/synth.py b/google-cloud-speech/synth.py index 7453397465f1..51a141047ed4 100644 --- a/google-cloud-speech/synth.py +++ b/google-cloud-speech/synth.py @@ -14,12 +14,10 @@ """This script is used to synthesize generated parts of this library.""" -import re - import synthtool as s from synthtool import gcp -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() versions = ["v1p1beta1", "v1"] @@ -29,10 +27,10 @@ # ---------------------------------------------------------------------------- for version in versions: library = gapic.py_library( - "speech", - version, + service="speech", + version=version, + bazel_target=f"//google/cloud/speech/{version}:speech-{version}-py", include_protos=True, - include_samples=True ) # Don't move over __init__.py, as we modify it to make the generated client