From b2617fa6c71b44bcc1a68288136fd04c08b7ecad Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Tue, 21 Apr 2020 16:58:52 -0700 Subject: [PATCH] chore: Migrate python-datalabeling synth.py from artman to bazel (#13) --- packages/google-cloud-datalabeling/synth.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/google-cloud-datalabeling/synth.py b/packages/google-cloud-datalabeling/synth.py index 85af26dc0470..232d1c72001c 100644 --- a/packages/google-cloud-datalabeling/synth.py +++ b/packages/google-cloud-datalabeling/synth.py @@ -17,17 +17,15 @@ import synthtool as s from synthtool import gcp -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() version = 'v1beta1' library = gapic.py_library( - 'datalabeling', - version, - config_path='/google/cloud/datalabeling/' - 'artman_datalabeling_v1beta1.yaml', - artman_output_name='datalabeling-v1beta1', + service='datalabeling', + version=version, + bazel_target=f"//google/cloud/datalabeling/{version}:datalabeling-{version}-py", include_protos=True, )