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

Commit c74cb97

Browse files
authored
chore: Migrate python-billingbudgets synth.py from artman to bazel (#24)
1 parent 3c8a7eb commit c74cb97

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

synth.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020

2121
logging.basicConfig(level=logging.DEBUG)
2222

23-
gapic = gcp.GAPICGenerator()
23+
gapic = gcp.GAPICBazel()
2424
common = gcp.CommonTemplates()
2525

2626
# ----------------------------------------------------------------------------
2727
# Generate billing budgets GAPIC layer
2828
# ----------------------------------------------------------------------------
2929
library = gapic.py_library(
30-
"billingbudgets",
31-
"v1beta1",
32-
config_path="/google/cloud/billing/budgets/artman_billingbudgets_v1beta1.yaml",
30+
service="billing_budgets",
31+
version="v1beta1",
32+
bazel_target="//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py",
3333
include_protos=True,
3434
)
3535

@@ -38,15 +38,9 @@
3838
"setup.py",
3939
"README.rst",
4040
library / "docs/index.rst",
41-
library
42-
/ "google/cloud/billingbudgets_v1beta1/proto", # proto files are copied to the wrong place
4341
]
4442

4543
s.move(library, excludes=excludes)
46-
s.move(
47-
library / "google/cloud/billingbudgets_v1beta1/proto/*.proto",
48-
"google/cloud/billing_budgets_v1beta1/proto",
49-
)
5044

5145
# Fix namespace
5246
s.replace(

0 commit comments

Comments
 (0)