Skip to content

Commit bb98177

Browse files
authored
Bump protobuf to 5.28.* (#12689)
1 parent 4651211 commit bb98177

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ruff==0.5.4 # must match .pre-commit-config.yaml
1616
aiohttp==3.10.2
1717
# grpc install only fails on Windows, but let's avoid building sdist on other platforms
1818
# https://github.com/grpc/grpc/issues/36201
19-
grpcio-tools; python_version < "3.13"
19+
grpcio-tools; python_version < "3.13" # For grpc_tools.protoc
2020
mypy-protobuf==3.6.0
2121
packaging==24.1
2222
pathspec>=0.11.1

scripts/sync_protobuf/google_protobuf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Whenever you update PACKAGE_VERSION here, version should be updated
2020
# in stubs/protobuf/METADATA.toml and vice-versa.
21-
PACKAGE_VERSION = "27.1"
21+
PACKAGE_VERSION = "28.2"
2222

2323
STUBS_FOLDER = REPO_ROOT / "stubs" / "protobuf"
2424
ARCHIVE_FILENAME = f"protobuf-{PACKAGE_VERSION}.zip"

stubs/protobuf/METADATA.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Whenever you update version here, PACKAGE_VERSION should be updated
22
# in scripts/sync_proto/google_protobuf.py and vice-versa.
3-
version = "5.27.*"
3+
version = "5.28.*"
44
upstream_repository = "https://github.com/protocolbuffers/protobuf"
5-
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 26.1 on [protobuf v27.1](https://github.com/protocolbuffers/protobuf/releases/tag/v27.1) (python `protobuf==5.27.1`)."
5+
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 26.1 on [protobuf v28.2](https://github.com/protocolbuffers/protobuf/releases/tag/v28.2) (python `protobuf==5.28.2`)."
66
partial_stub = true
77

88
[tool.stubtest]

stubs/protobuf/google/protobuf/descriptor_pb2.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,12 +1304,13 @@ class FieldOptions(google.protobuf.message.Message):
13041304
FEATURE_SUPPORT_FIELD_NUMBER: builtins.int
13051305
UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int
13061306
ctype: global___FieldOptions.CType.ValueType
1307-
"""The ctype option instructs the C++ code generator to use a different
1307+
"""NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
1308+
The ctype option instructs the C++ code generator to use a different
13081309
representation of the field than it normally would. See the specific
13091310
options below. This option is only implemented to support use of
13101311
[ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
1311-
type "bytes" in the open source release -- sorry, we'll try to include
1312-
other types in a future version!
1312+
type "bytes" in the open source release.
1313+
TODO: make ctype actually deprecated.
13131314
"""
13141315
packed: builtins.bool
13151316
"""The packed option can be enabled for repeated primitive fields to enable

stubs/protobuf/google/protobuf/internal/well_known_types.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ _StructValueArg: TypeAlias = _StructValue | Mapping[str, _StructValueArg] | Sequ
7373

7474
class Struct:
7575
def __getitem__(self, key: str) -> _StructValue: ...
76-
def __contains__(self, item: object) -> bool: ...
7776
def __setitem__(self, key: str, value: _StructValueArg) -> None: ...
7877
def __delitem__(self, key: str) -> None: ...
7978
def __len__(self) -> int: ...

0 commit comments

Comments
 (0)