Skip to content

Commit

Permalink
[Backport 1.6.latest] Restrict protobuf to 4.* versions (#9706)
Browse files Browse the repository at this point in the history
* Restrict protobuf to 4.* versions (#9630)

Protobuf v5 has breaking changes. Here we are limiting the protobuf
dependency to one major version, 4, so that we don't have to patch
over handling 2 different major versions of protobuf.

(cherry picked from commit e4fe839)

---------

Co-authored-by: Quigley Malcolm <[email protected]>
Co-authored-by: Quigley Malcolm <[email protected]>
  • Loading branch information
3 people authored Mar 11, 2024
1 parent 89ba054 commit a2223d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Dependencies-20240222-102947.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Dependencies
body: Restrict protobuf to 4.* versions
time: 2024-02-22T10:29:47.595435-08:00
custom:
Author: QMalcolm
PR: "9566"
2 changes: 1 addition & 1 deletion core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
# ----
# Expect compatibility with all new versions of these packages, so lower bounds only.
"packaging>20.9",
"protobuf>=4.0.0",
"protobuf>=4.0.0,<5",
"pytz>=2015.7",
"pyyaml>=6.0",
"typing-extensions>=3.7.4",
Expand Down

0 comments on commit a2223d6

Please sign in to comment.