Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
chore: Migrate python-dataproc synth.py from artman to bazel (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
  • Loading branch information
vam-google and busunkim96 committed May 2, 2020
1 parent 6d6d13a commit ac2cc78
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions synth.py
Expand Up @@ -19,15 +19,20 @@
import synthtool as s
from synthtool import gcp

gapic = gcp.GAPICGenerator()
gapic = gcp.GAPICBazel()
common = gcp.CommonTemplates()
versions = ["v1beta2", "v1"]

# ----------------------------------------------------------------------------
# Generate dataproc GAPIC layer
# ----------------------------------------------------------------------------
for version in versions:
library = gapic.py_library("dataproc", version, include_protos=True,)
library = gapic.py_library(
service="dataproc",
version=version,
bazel_target=f"//google/cloud/dataproc/{version}:dataproc-{version}-py",
include_protos=True,
)
s.move(library, excludes=["docs/index.rst", "nox.py", "README.rst", "setup.py"])

s.replace(
Expand Down

0 comments on commit ac2cc78

Please sign in to comment.