Skip to content

Commit a54113f

Browse files
committed
Update protobuf dependency <= 4.22 and >= 4.21.6 for python 3.9 and 3.10 versions
PiperOrigin-RevId: 738520174
1 parent a68ce72 commit a54113f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RELEASE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
## Bug Fixes and Other Changes
88

9+
* Depends on `protobuf>=4.25.2,<6.0.0` for Python 3.11 and on `protobuf>=4.21.6,<4.22` for 3.9 and 3.10.
10+
911
## Breaking Changes
1012

1113
## Deprecations

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def select_constraint(default, nightly=None, git_master=None):
7979
# TODO(b/263060885): Remove the explicit numpy dependency once TF works
8080
# with numpy>=1.24.
8181
'numpy>=1.22',
82-
'protobuf>=4.25.2,<6;python_version>="3.11"',
83-
'protobuf>=3.20.3,<5;python_version<"3.11"',
82+
'protobuf>=4.25.2,<6.0.0;python_version>="3.11"',
83+
'protobuf>=4.21.6,<4.22;python_version<"3.11"',
8484
'tensorflow>=2.17,<2.18',
8585
'tensorflow-metadata'
8686
+ select_constraint(

0 commit comments

Comments
 (0)