Skip to content

Commit

Permalink
chore: Migrate pubsub synth.py to bazel
Browse files Browse the repository at this point in the history
This PR migrates only synth.py but does not commit the regenerated files. The generation was tested and it works, the updated files are not commited due to breaking changes not related to bazel migration.

This PR should be pushed after the an already open PR with the braking changes: googleapis#113
  • Loading branch information
vam-google committed Mar 30, 2020
1 parent 26aec5d commit ba05f0b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions synth.py
Expand Up @@ -15,24 +15,19 @@
"""This script is used to synthesize generated parts of this library."""

import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

gapic = gcp.GAPICGenerator()

service = 'pubsub'
versions = ['v1']
config_pattern = '/google/pubsub/artman_pubsub.yaml'

for version in versions:
java.gapic_library(
java.bazel_library(
service=service,
version=version,
config_pattern=config_pattern,
package_pattern='com.google.{service}.{version}',
gapic=gapic,
proto_path=f'google/{service}/{version}',
bazel_target=f'//google/{service}/{version}:google-cloud-{service}-{version}-java',
)
s.replace(
'**/stub/SubscriberStubSettings.java',
Expand Down

0 comments on commit ba05f0b

Please sign in to comment.