Skip to content

Commit 6dde25e

Browse files
authored
chore: Migrate python-logging synth.py from artman to bazel (#35)
1 parent 692f25e commit 6dde25e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

synth.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,21 @@
1616
import synthtool as s
1717
from synthtool import gcp
1818

19-
gapic = gcp.GAPICGenerator()
19+
gapic = gcp.GAPICBazel()
2020
common = gcp.CommonTemplates()
2121

2222
# ----------------------------------------------------------------------------
2323
# Generate logging GAPIC layer
2424
# ----------------------------------------------------------------------------
2525
library = gapic.py_library(
26-
"logging",
27-
"v2",
28-
config_path="/google/logging/artman_logging.yaml",
29-
artman_output_name="logging-v2",
26+
service="logging",
27+
version="v2",
28+
bazel_target="//google/logging/v2:logging-v2-py",
3029
include_protos=True,
3130
)
3231

3332
# the structure of the logging directory is a bit different, so manually copy the protos
34-
s.move(library / "google/cloud/logging_v2/proto/cloud/logging_v2/proto", "google/cloud/logging_v2/proto")
35-
s.move(library / "google/cloud/logging_v2/proto/*.proto")
33+
s.move(library / "google/cloud/logging_v2/proto", "google/cloud/logging_v2/proto")
3634

3735
s.move(library / "google/cloud/logging_v2/gapic")
3836
s.move(library / "tests/unit/gapic/v2")

0 commit comments

Comments
 (0)