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-billingbudgets synth.py from artman to bazel (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
vam-google committed May 2, 2020
1 parent 3c8a7eb commit c74cb97
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions synth.py
Expand Up @@ -20,16 +20,16 @@

logging.basicConfig(level=logging.DEBUG)

gapic = gcp.GAPICGenerator()
gapic = gcp.GAPICBazel()
common = gcp.CommonTemplates()

# ----------------------------------------------------------------------------
# Generate billing budgets GAPIC layer
# ----------------------------------------------------------------------------
library = gapic.py_library(
"billingbudgets",
"v1beta1",
config_path="/google/cloud/billing/budgets/artman_billingbudgets_v1beta1.yaml",
service="billing_budgets",
version="v1beta1",
bazel_target="//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py",
include_protos=True,
)

Expand All @@ -38,15 +38,9 @@
"setup.py",
"README.rst",
library / "docs/index.rst",
library
/ "google/cloud/billingbudgets_v1beta1/proto", # proto files are copied to the wrong place
]

s.move(library, excludes=excludes)
s.move(
library / "google/cloud/billingbudgets_v1beta1/proto/*.proto",
"google/cloud/billing_budgets_v1beta1/proto",
)

# Fix namespace
s.replace(
Expand Down

0 comments on commit c74cb97

Please sign in to comment.