Skip to content

Commit

Permalink
feat: add bazel support for gapic metadata (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
software-dov authored Mar 11, 2021
1 parent 2e7ea11 commit 7ced24a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rules_python_gapic/py_gapic.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ def py_gapic_library(
name,
srcs,
grpc_service_config = None,
plugin_args = [],
opt_args = [],
plugin_args = None,
opt_args = None,
metadata = False,
**kwargs):
# srcjar_target_name = "%s_srcjar" % name
srcjar_target_name = name
srcjar_output_suffix = ".srcjar"

plugin_args = plugin_args or []
opt_args = opt_args or []

if metadata:
plugin_args.append("metadata")

file_args = {}
if grpc_service_config:
file_args[grpc_service_config] = "retry-config"
Expand Down

0 comments on commit 7ced24a

Please sign in to comment.