From 48970828361b67443e97eb6f1be505d3d7cd1e65 Mon Sep 17 00:00:00 2001 From: vam-google Date: Mon, 20 Apr 2020 22:43:13 -0700 Subject: [PATCH] chore: Migrate python-pubsub synth.py from artman to bazel --- synth.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/synth.py b/synth.py index cc45712ad..1da7bf271 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(