Add deprecation warning for internal_py_proto_library prior to Q1 2027 breaking changes.

PiperOrigin-RevId: 943389220
This commit is contained in:
Rachel Goldfinger 2026-07-06 11:06:59 -07:00 committed by Copybara-Service
parent 0e069eb706
commit a8d0be3d42

View file

@ -690,6 +690,11 @@ def internal_py_proto_library(
if not _to_label(default_runtime) in labels:
py_libs = py_libs + [default_runtime]
if "deprecation" not in kargs:
kargs["deprecation"] = (
"internal_py_proto_library is deprecated and will be removed in 2027 Q1. Migrate to py_proto_library from @protobuf//bazel/py_proto_library.bzl."
)
py_library(
name = name,
testonly = testonly,