From 5a78859cd51ccd5f45250ccaa78a60082b281a8b Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Tue, 21 Apr 2020 17:26:29 -0700 Subject: [PATCH] chore: Migrate access-automl synth.py from artman to bazel (#27) --- packages/google-cloud-automl/synth.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-automl/synth.py b/packages/google-cloud-automl/synth.py index 2009a1d0fac9..da66864c60bf 100644 --- a/packages/google-cloud-automl/synth.py +++ b/packages/google-cloud-automl/synth.py @@ -19,7 +19,7 @@ import synthtool as s from synthtool import gcp -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() versions = ["v1beta1", "v1"] @@ -28,7 +28,13 @@ # Generate automl GAPIC layer # ---------------------------------------------------------------------------- for version in versions: - library = gapic.py_library("automl", version, include_protos=True) + library = gapic.py_library( + service="automl", + version=version, + bazel_target=f"//google/cloud/automl/{version}:automl-{version}-py", + include_protos=True + ) + s.move(library / f"google/cloud/automl_{version}") s.move(library / f"tests/unit/gapic/{version}") s.move(library / f"docs/gapic/{version}")