Skip to content

Commit

Permalink
chore: Migrate python-texttospeech synth.py from artman to bazel (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
vam-google authored Apr 21, 2020
1 parent 014cf89 commit 33bbcee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/google-cloud-texttospeech/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@
import synthtool as s
from synthtool import gcp

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

# ----------------------------------------------------------------------------
# Generate texttospeech GAPIC layer
# ----------------------------------------------------------------------------
for version in versions:
library = gapic.py_library("texttospeech", version, include_protos=True)
library = gapic.py_library(
service="texttospeech",
version=version,
bazel_target=f"//google/cloud/texttospeech/{version}:texttospeech-{version}-py",
include_protos=True,
)
s.move(library / f"google/cloud/texttospeech_{version}")
s.move(library / f"tests/unit/gapic/{version}")
s.move(library / f"docs/gapic/{version}")
Expand Down

0 comments on commit 33bbcee

Please sign in to comment.