Skip to content

Commit 0a70cc4

Browse files
Change Python version specifiers for protobuf to >= (#2041)
The previous specifiers were too restrictive of maximum values; we _know_ the minimum version that we want to allow, but we leave it up to users to determine their maximum. (Newer versions of the `protobuf` runtime should support previous versions of gencode, [at least up to the next major version][1], but possibly further in practice.) In terms of `types-protobuf`, the versions simply match the version of the runtime, and so similarly should not have an upper bound. [1]: https://protobuf.dev/support/cross-version-runtime-guarantee/#major
1 parent 48600e9 commit 0a70cc4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugins/protocolbuffers/pyi/v32.1/buf.plugin.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ registry:
1414
requires_python: ">=3.9"
1515
deps:
1616
# https://pypi.org/project/protobuf/
17-
- "protobuf~=6.32.1"
18-
- "types-protobuf~=6.30"
17+
- "protobuf>=6.32.1"
18+
# https://pypi.org/project/types-protobuf/
19+
- "types-protobuf>=6.32"

plugins/protocolbuffers/python/v32.1/buf.plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ registry:
1616
requires_python: ">=3.9"
1717
deps:
1818
# https://pypi.org/project/protobuf/
19-
- "protobuf~=6.32.1"
19+
- "protobuf>=6.32.1"

0 commit comments

Comments
 (0)