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:41:17 UTC

[pulsar] branch branch-2.7 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.7
in repository https://gitbox.apache.org/repos/asf/pulsar.git


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

commit 6a744def0260fa84c890bdfea9675be884111b8e
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 5b98dde1839..408cf7b2da7 100644
--- a/pulsar-client-cpp/python/setup.py
+++ b/pulsar-client-cpp/python/setup.py
@@ -74,7 +74,7 @@ class my_build_ext(build_ext.build_ext):
 dependencies = [
     'fastavro==0.24.0',
     'grpcio',
-    'protobuf>=3.6.1',
+    'protobuf>=3.6.1,<=3.20.*',
     'six',
     'certifi',
     'enum34>=1.1.9; python_version < "3.4"',