You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2022/05/31 09:39:11 UTC

[pulsar] branch branch-2.8 updated: [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package (#15846)

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch branch-2.8
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.8 by this push:
     new 945cc75d2c1 [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package (#15846)
945cc75d2c1 is described below

commit 945cc75d2c18494cf785e89ec1fdcbb128cbcf16
Author: Christophe Bornet <cb...@hotmail.com>
AuthorDate: Tue May 31 11:14:48 2022 +0200

    [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package (#15846)
    
    * [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package
    Protobuf latest 4.21 (v21) version broke compatibility with files generated with protoc < 3.19
    This fix downgrades protobuf python package to 3.20.1.
    See https://developers.google.com/protocol-buffers/docs/news/2022-05-06
    
    * Limit protobuf version to 3.20.* in setup.py
    
    Co-authored-by: Lari Hotari <lh...@apache.org>
    (cherry picked from commit 7800fbd5d8cdbeb307f98a8d9408bb5309f41c0d)
    (cherry picked from commit 7fb23cf735c5994c427e290d74d87e1e033cf80c)
---
 pulsar-client-cpp/python/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-client-cpp/python/setup.py b/pulsar-client-cpp/python/setup.py
index d012dfc13df..3f172fe3d21 100644
--- a/pulsar-client-cpp/python/setup.py
+++ b/pulsar-client-cpp/python/setup.py
@@ -82,7 +82,7 @@ extras_require = {}
 # functions dependencies
 extras_require["functions"] = sorted(
     {
-      "protobuf>=3.6.1",
+      "protobuf>=3.6.1,<=3.20.*",
       "grpcio<1.28,>=1.8.2",
       "apache-bookkeeper-client>=4.9.2",
       "prometheus_client",