Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
chore: Migrate python-vision synth.py from artman to bazel (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
vam-google committed Apr 28, 2020
1 parent c523632 commit d8ec6e2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions synth.py
Expand Up @@ -17,7 +17,7 @@
import synthtool as s
from synthtool import gcp

gapic = gcp.GAPICGenerator()
gapic = gcp.GAPICBazel()
common = gcp.CommonTemplates()
versions = ["v1", "v1p1beta1", "v1p2beta1", "v1p3beta1", "v1p4beta1"]

Expand All @@ -26,7 +26,12 @@
# Generate vision GAPIC layer
# ----------------------------------------------------------------------------
for version in versions:
library = gapic.py_library("vision", version, include_protos=True)
library = gapic.py_library(
service="vision",
version=version,
bazel_target=f"//google/cloud/vision/{version}:vision-{version}-py",
include_protos=True
)

s.move(library / f"google/cloud/vision_{version}/gapic")
s.move(library / f"google/cloud/vision_{version}/__init__.py")
Expand Down

0 comments on commit d8ec6e2

Please sign in to comment.