Skip to content

Commit b81b88f

Browse files
committed
fix: require Protobuf 6.33.5+
1 parent de53298 commit b81b88f

31 files changed

Lines changed: 50 additions & 143 deletions

File tree

.librarian/generator-input/client-post-processing/storage-integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ replacements:
603603
"grpcio-status >= 1.75.1, < 2.0.0; python_version >= '3.14'",
604604
"proto-plus >= 1.22.3, <2.0.0; python_version < '3.13'",
605605
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
606-
"protobuf >= 4.25.8, < 8.0.0",
606+
"protobuf >= 6.33.5, < 8.0.0",
607607
"grpc-google-iam-v1 >= 0.14.0, <1.0.0",
608608
],
609609
"protobuf": ["protobuf >= 3.20.2, < 7.0.0"],
@@ -656,7 +656,7 @@ replacements:
656656
grpcio==1.59.0
657657
grpcio-status==1.59.0
658658
proto-plus==1.22.3
659-
protobuf==4.25.8
659+
protobuf==6.33.5
660660
grpc-google-iam-v1==0.14.0
661661
opentelemetry-api==1.1.0
662662
requests==2.22.0

packages/bigframes/setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"google-cloud-bigquery[bqstorage,pandas] >=3.36.0",
4343
# 2.30 needed for arrow support.
4444
"google-cloud-bigquery-storage >= 2.30.0, < 3.0.0",
45-
"google-cloud-functions >=1.12.0",
46-
"google-cloud-bigquery-connection >=1.12.0",
47-
"google-cloud-resource-manager >=1.10.3",
45+
"google-cloud-functions >=1.20.2",
46+
"google-cloud-bigquery-connection >=1.18.2",
47+
"google-cloud-resource-manager >=1.14.2",
4848
"google-cloud-storage >=2.0.0",
4949
"google-crc32c >=1.0.0,<2.0.0",
5050
"grpc-google-iam-v1 >= 0.14.2",
@@ -73,8 +73,8 @@
7373
"tests": [
7474
"freezegun",
7575
"pytest-snapshot",
76-
"google-cloud-bigtable >=2.24.0",
77-
"google-cloud-pubsub >=2.21.4",
76+
"google-cloud-bigtable >=2.30.0",
77+
"google-cloud-pubsub >=2.29.0",
7878
"tzdata",
7979
],
8080
# used for local engine

packages/bigframes/testing/constraints-3.10.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ fsspec==2023.3.0
44
gcsfs==2023.3.0
55
geopandas==0.12.2
66
google-auth==2.15.0
7-
google-cloud-bigtable==2.24.0
8-
google-cloud-pubsub==2.21.4
7+
google-cloud-bigtable==2.30.0
8+
google-cloud-pubsub==2.29.0
99
google-cloud-bigquery==3.36.0
10-
google-cloud-functions==1.12.0
11-
google-cloud-bigquery-connection==1.12.0
12-
google-cloud-iam==2.12.1
13-
google-cloud-resource-manager==1.10.3
10+
google-cloud-functions==1.20.2
11+
google-cloud-bigquery-connection==1.18.2
12+
google-cloud-iam==2.18.2
13+
google-cloud-resource-manager==1.14.2
1414
google-cloud-storage==2.0.0
1515
grpc-google-iam-v1==0.14.2
1616
numpy==1.24.0
@@ -95,7 +95,7 @@ pluggy==1.6.0
9595
prompt_toolkit==3.0.52
9696
propcache==0.4.1
9797
proto-plus==1.27.1
98-
protobuf==4.25.8
98+
protobuf==6.33.5
9999
psygnal==0.15.1
100100
ptyprocess==0.7.0
101101
pure_eval==0.2.3

packages/bigframes/testing/constraints-3.11.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ prompt_toolkit==3.0.51
401401
propcache==0.3.2
402402
prophet==1.1.7
403403
proto-plus==1.26.1
404-
protobuf==5.29.5
404+
protobuf==6.33.5
405405
psutil==5.9.5
406406
psycopg2==2.9.10
407407
psygnal==0.14.0

packages/google-api-core/google/api_core/_python_package_support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
_PACKAGE_DEPENDENCY_WARNINGS = [
3636
DependencyConstraint(
3737
"google.protobuf",
38-
minimum_fully_supported_version="4.25.8",
38+
minimum_fully_supported_version="6.33.5",
3939
recommended_version="6.x",
4040
)
4141
]
@@ -50,7 +50,7 @@
5050
def parse_version_to_tuple(version_string: str) -> ParsedVersion:
5151
"""Safely converts a semantic version string to a comparable tuple of integers.
5252
53-
Example: "4.25.8" -> (4, 25, 8)
53+
Example: "6.33.5" -> (6, 33, 5)
5454
Ignores non-numeric parts and handles common version formats.
5555
5656
Args:

packages/google-api-core/noxfile.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -307,51 +307,36 @@ def default(
307307

308308
@nox.session(python=ALL_PYTHON)
309309
@nox.parametrize(
310-
["install_grpc", "install_async_rest", "python_versions", "legacy_proto"],
310+
["install_grpc", "install_async_rest", "python_versions"],
311311
[
312-
(True, False, None, None), # Run unit tests with grpcio installed
313-
(False, False, None, None), # Run unit tests without grpcio installed
312+
(True, False, None), # Run unit tests with grpcio installed
313+
(False, False, None), # Run unit tests without grpcio installed
314314
(
315315
True,
316316
True,
317317
None,
318-
None,
319318
), # Run unit tests with grpcio and async rest installed
320319
# TODO: Remove once we stop support for protobuf 4.x.
321320
(
322321
True,
323322
False,
324323
["3.10", "3.11"],
325-
4,
326324
), # Run proto4 tests with grpcio/grpcio-gcp installed
327325
],
328326
)
329327
def unit(
330-
session, install_grpc, install_async_rest, python_versions=None, legacy_proto=None
328+
session, install_grpc, install_async_rest, python_versions=None
331329
):
332330
"""Run the unit test suite with the given configuration parameters.
333331
334332
If `python_versions` is provided, the test suite only runs when the Python version (xx.yy) is
335333
one of the values in `python_versions`.
336-
337-
If `legacy_proto` is provided, this test suite will explicitly install the proto library at
338-
that major version. Only a few values are supported at any one time; the intent is to test
339-
deprecated but noyet abandoned versions.
340334
"""
341335

342336
if python_versions and session.python not in python_versions:
343337
session.log(f"Skipping session for Python {session.python}")
344338
session.skip()
345339

346-
match legacy_proto:
347-
case 4:
348-
# Pin protobuf to a 4.x version to ensure coverage for the legacy code path.
349-
session.install("protobuf>=4.25.8,<5.0.0")
350-
case None | False:
351-
pass
352-
case _:
353-
assert False, f"Unknown legacy_proto: {legacy_proto}"
354-
355340
default(
356341
session=session,
357342
install_grpc=install_grpc,

packages/google-api-core/testing/constraints-3.10.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# e.g., if pyproject.toml has "foo >= 1.14.0, < 2.0.0dev",
77
# Then this file should have foo==1.14.0
88
googleapis-common-protos==1.63.2
9-
protobuf==5.29.6
9+
protobuf==6.33.5
1010
google-auth==2.14.1
1111
requests==2.33.0
1212
grpcio==1.41.0

packages/google-api-core/testing/constraints-async-rest-3.10.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# e.g., if pyproject.toml has "foo >= 1.14.0, < 2.0.0dev",
77
# Then this file should have foo==1.14.0
88
googleapis-common-protos==1.63.2
9-
protobuf==5.29.6
9+
protobuf==6.33.5
1010
google-auth==2.14.1
1111
requests==2.33.0
1212
grpcio==1.41.0

packages/google-cloud-access-context-manager/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
release_status = "Development Status :: 4 - Beta"
3131
dependencies = [
3232
"google-api-core[grpc] >= 2.11.0, <3.0.0",
33-
"protobuf >= 4.25.8, < 8.0.0",
33+
"protobuf >= 6.33.5, < 8.0.0",
3434
]
3535

3636
# Setup boilerplate below this line.

packages/google-cloud-access-context-manager/testing/constraints-3.9.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
#
66
# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev",
77
# Then this file should have foo==1.14.0
8-
protobuf==4.25.8
8+
protobuf==6.33.5
99
google-api-core==2.11.0

0 commit comments

Comments
 (0)