Add deprecated python proto alias (#10515)

pull/10516/head
Mike Kruskal 2 years ago committed by GitHub
parent ad6cd54b1e
commit d20e9a92eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      protobuf.bzl

@ -555,6 +555,21 @@ def internal_py_proto_library(
**kargs
)
def py_proto_library(
*args,
**kwargs):
"""Deprecated alias for use before Bazel 5.3.
Args:
*args: the name of the py_proto_library.
**kwargs: other keyword arguments that are passed to py_library.
Deprecated:
This is provided for backwards compatibility only. Bazel 5.3 will
introduce support for py_proto_library, which should be used instead.
"""
internal_py_proto_library(*args, **kwargs)
def _source_proto_library(
name,
srcs = [],

Loading…
Cancel
Save