From a8d0be3d42e166b642358c7009ee649946b69f63 Mon Sep 17 00:00:00 2001 From: Rachel Goldfinger Date: Mon, 6 Jul 2026 11:06:59 -0700 Subject: [PATCH] Add deprecation warning for internal_py_proto_library prior to Q1 2027 breaking changes. PiperOrigin-RevId: 943389220 --- protobuf.bzl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protobuf.bzl b/protobuf.bzl index 2c51c04bf5..6243bbf881 100644 --- a/protobuf.bzl +++ b/protobuf.bzl @@ -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,