Skip to content

Commit 07e3d17

Browse files
committed
BUG#34231226: Generated classes do not work with the latest Protobuf
The latest Python Protobuf package 4.21.0 introduced a breaking change in the compatibility between the resulting generated classes from protoc and the runtime library. To keep backward compatibility, Python Protobuf is now required to be >=3.11.0 and <=3.20.1. The setup.py `install_requires` option and documentation got updated accordingly (added by Git revision 4fb79de). Optional dependencies updated to the approved versions. Change-Id: I0ff9dae7c5fc59dece8b7919c04d3163373e96d3
1 parent 5de2df5 commit 07e3d17

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ v8.0.30
1717
- WL#15035: Enforce PEP 7 and PEP 8 coding style
1818
- WL#14822: Refactor the authentication plugin mechanism
1919
- WL#14815: Support OpenSSL 3.0
20+
- BUG#34231226: Generated classes do not work with the latest Protobuf
2021
- BUG#34228442: Fix NO_BACKSLASH_ESCAPES SQL mode support in c-ext
2122
- BUG#34223015: Invalidate the usage of non-compatible cursor types
2223
- BUG#34127959: Add isolation level support in Django backend

docs/mysqlx/requirements.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ Requirements
33

44
* MySQL 8.0.0 or higher, with the X Plugin enabled
55
* Python >= 3.7
6-
* Protobuf C++ (version >= 3.0.0)
7-
* Python Protobuf (version >= 3.11.0)
8-
* dnspython (version >= 1.16.0) for DNS SRV support
9-
* lz4 (version >= 2.1.6) for connection compression support
10-
* zstandard (version >= 0.12.0) for connection compression support
6+
* Protobuf C++ (version >= 3.11.0, <= 3.20.1)
7+
* Python Protobuf (version >= 3.11.0, <= 3.20.1)
8+
* dnspython (version >= 1.16.0, <= 2.1.0) for DNS SRV support
9+
* lz4 (version >= 2.1.6, <= 3.1.3) for connection compression support
10+
* zstandard (version >= 0.12.0, <= 0.15.2) for connection compression support
11+
* gssapi (version gssapi==1.6.9) for Kerberos and LDAP SASL authentication support

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140
cmdclass=COMMAND_CLASSES,
141141
install_requires=["protobuf>=3.11.0,<=3.20.1"],
142142
extras_require={
143-
"dns-srv": ["dnspython>=1.16.0"],
144-
"compression": ["lz4>=2.1.6", "zstandard>=0.12.0"],
145-
"gssapi": ["gssapi>=1.6.9"],
143+
"dns-srv": ["dnspython>=1.16.0,<=2.1.0"],
144+
"compression": ["lz4>=2.1.6,<=3.1.3", "zstandard>=0.12.0,<=0.15.2"],
145+
"gssapi": ["gssapi==1.6.9"],
146146
},
147147
)

0 commit comments

Comments
 (0)