Skip to content

Commit 5dff177

Browse files
committed
Bump the protobuf and grpcio versions
The `protobuf` version 4.25.x will go out of support soon(ish), on 31 Mar 2025. Since we don't need to keep compatibility to any legacy code, we can bump it in advance as a preparation. https://protobuf.dev/support/version-support/#python Signed-off-by: Leandro Lucarella <[email protected]>
1 parent a76abc3 commit 5dff177

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ requires = [
1010
# sure the code is generated using the minimum supported versions, as older
1111
# versions can't work with code that was generated with newer versions.
1212
# https://protobuf.dev/support/cross-version-runtime-guarantee/#backwards
13-
"protobuf == 4.25.3",
14-
"grpcio-tools == 1.51.1",
15-
"grpcio == 1.51.1",
13+
"protobuf == 5.28.0",
14+
"grpcio-tools == 1.66.1",
15+
"grpcio == 1.66.1",
1616
]
1717
build-backend = "setuptools.build_meta"
1818

@@ -33,13 +33,14 @@ classifiers = [
3333
]
3434
requires-python = ">= 3.11, < 4"
3535
dependencies = [
36-
# We can't widen beyond 6 because of protobuf cross-version runtime guarantees
36+
# We can't widen beyond the current value unless we bump the minimum
37+
# requirements too because of protobuf cross-version runtime guarantees:
3738
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major
38-
"protobuf >= 4.25.3, < 6", # Do not widen beyond 6!
39+
"protobuf >= 5.28.0, < 7", # Do not widen beyond 7!
3940
# We couldn't find any document with a spec about the cross-version runtime
4041
# guarantee for grpcio, so unless we find one in the future, we'll assume
4142
# major version jumps are not compatible
42-
"grpcio >= 1.51.1, < 2", # Do not widen beyond 2!
43+
"grpcio >= 1.66.1, < 2", # Do not widen beyond 2!
4344
]
4445
dynamic = ["version"]
4546

0 commit comments

Comments
 (0)