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

Commit

Permalink
chore: Migrate python-languge synth.py from artman to bazel (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
vam-google committed Apr 21, 2020
1 parent 2bcf0d3 commit f16bd6d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 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 = ["v1beta2", "v1"]

Expand All @@ -27,12 +27,10 @@
# ----------------------------------------------------------------------------
for version in versions:
library = gapic.py_library(
"language",
version,
config_path=f"/google/cloud/language/artman_language_{version}.yaml",
artman_output_name=f"language-{version}",
service="language",
version=version,
bazel_target=f"//google/cloud/language/{version}:language-{version}-py",
include_protos=True,
include_samples=True
)

s.move(library / f"google/cloud/language_{version}/proto")
Expand Down

0 comments on commit f16bd6d

Please sign in to comment.