From 53cde641d941293cde7dd8fe5b7e429ee52658bd Mon Sep 17 00:00:00 2001 From: Mike Kruskal <62662355+mkruskal-google@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:31:10 -0700 Subject: [PATCH] Add a deprecation warning to py_proto_library (#19032) * Add a deprecation warning to py_proto_library * Remove redundant 29.0 mention * Clarify warning message --- protobuf.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protobuf.bzl b/protobuf.bzl index 9a058978945f..c8d32a604f2f 100644 --- a/protobuf.bzl +++ b/protobuf.bzl @@ -647,6 +647,9 @@ def py_proto_library( This is provided for backwards compatibility only. Bazel 5.3 will introduce support for py_proto_library, which should be used instead. """ + print("The py_proto_library macro is deprecated and will be removed in the " + + "30.x release. switch to the rule defined by rules_python or the one " + + "in bazel/py_proto_library.bzl.") internal_py_proto_library(*args, **kwargs) def _source_proto_library(