Skip to content

Commit

Permalink
chore: Migrate access-automl synth.py from artman to bazel (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
vam-google authored Apr 22, 2020
1 parent d0dabd1 commit 5a78859
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/google-cloud-automl/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import synthtool as s
from synthtool import gcp

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

Expand All @@ -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}")
Expand Down

0 comments on commit 5a78859

Please sign in to comment.