From c67f36e951a0c922b3df6dec6c01361df5c68780 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Tue, 21 Apr 2020 16:48:05 -0700 Subject: [PATCH] chore: Migrate python-pubsub synth.py from artman to bazel (#80) --- synth.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/synth.py b/synth.py index 8c957d732..90d15a59e 100644 --- a/synth.py +++ b/synth.py @@ -14,13 +14,10 @@ """This script is used to synthesize generated parts of this library.""" -import re -import textwrap - import synthtool as s from synthtool import gcp -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() version = "v1" @@ -28,9 +25,9 @@ # Generate pubsub GAPIC layer # ---------------------------------------------------------------------------- library = gapic.py_library( - "pubsub", - version, - config_path="/google/pubsub/artman_pubsub.yaml", + service="pubsub", + version=version, + bazel_target="//google/pubsub/v1:pubsub-v1-py", include_protos=True, ) s.move(