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

chore: Migrate python-vision synth.py from artman to bazel #19

Merged
merged 2 commits into from
Apr 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions synth.py
Original file line number Diff line number Diff line change
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