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

Commit f16bd6d

Browse files
authored
chore: Migrate python-languge synth.py from artman to bazel (#15)
1 parent 2bcf0d3 commit f16bd6d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

synth.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import synthtool as s
1818
from synthtool import gcp
1919

20-
gapic = gcp.GAPICGenerator()
20+
gapic = gcp.GAPICBazel()
2121
common = gcp.CommonTemplates()
2222
versions = ["v1beta2", "v1"]
2323

@@ -27,12 +27,10 @@
2727
# ----------------------------------------------------------------------------
2828
for version in versions:
2929
library = gapic.py_library(
30-
"language",
31-
version,
32-
config_path=f"/google/cloud/language/artman_language_{version}.yaml",
33-
artman_output_name=f"language-{version}",
30+
service="language",
31+
version=version,
32+
bazel_target=f"//google/cloud/language/{version}:language-{version}-py",
3433
include_protos=True,
35-
include_samples=True
3634
)
3735

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

0 commit comments

Comments
 (0)