Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 331c06a

Browse files
committed
Update deps for 3.12+
1 parent 28b9a05 commit 331c06a

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

gapic/templates/noxfile.py.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ def unit(session, protobuf_implementation):
291291

292292

293293
def install_systemtest_dependencies(session, *constraints):
294-
if session.python >= "3.14":
294+
{# Note that grpcio<=1.62.2 works on Python 3.11 but fails on 3.12+ because it requires pkg_resources for its source build. #}
295+
if session.python >= "3.12":
295296
session.install("--pre", "grpcio>=1.75.1")
296297
else:
297298
session.install("--pre", "grpcio<=1.62.2")
@@ -517,7 +518,7 @@ def prerelease_deps(session, protobuf_implementation):
517518
"google-api-core",
518519
"google-auth",
519520
"grpc-google-iam-v1",
520-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
521+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
521522
"grpcio-status",
522523
"protobuf",
523524
"proto-plus",

tests/integration/goldens/asset/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def unit(session, protobuf_implementation):
284284

285285

286286
def install_systemtest_dependencies(session, *constraints):
287-
if session.python >= "3.14":
287+
if session.python >= "3.12":
288288
session.install("--pre", "grpcio>=1.75.1")
289289
else:
290290
session.install("--pre", "grpcio<=1.62.2")
@@ -510,7 +510,7 @@ def prerelease_deps(session, protobuf_implementation):
510510
"google-api-core",
511511
"google-auth",
512512
"grpc-google-iam-v1",
513-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
513+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
514514
"grpcio-status",
515515
"protobuf",
516516
"proto-plus",

tests/integration/goldens/credentials/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def unit(session, protobuf_implementation):
284284

285285

286286
def install_systemtest_dependencies(session, *constraints):
287-
if session.python >= "3.14":
287+
if session.python >= "3.12":
288288
session.install("--pre", "grpcio>=1.75.1")
289289
else:
290290
session.install("--pre", "grpcio<=1.62.2")
@@ -510,7 +510,7 @@ def prerelease_deps(session, protobuf_implementation):
510510
"google-api-core",
511511
"google-auth",
512512
"grpc-google-iam-v1",
513-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
513+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
514514
"grpcio-status",
515515
"protobuf",
516516
"proto-plus",

tests/integration/goldens/eventarc/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def unit(session, protobuf_implementation):
284284

285285

286286
def install_systemtest_dependencies(session, *constraints):
287-
if session.python >= "3.14":
287+
if session.python >= "3.12":
288288
session.install("--pre", "grpcio>=1.75.1")
289289
else:
290290
session.install("--pre", "grpcio<=1.62.2")
@@ -510,7 +510,7 @@ def prerelease_deps(session, protobuf_implementation):
510510
"google-api-core",
511511
"google-auth",
512512
"grpc-google-iam-v1",
513-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
513+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
514514
"grpcio-status",
515515
"protobuf",
516516
"proto-plus",

tests/integration/goldens/logging/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def unit(session, protobuf_implementation):
284284

285285

286286
def install_systemtest_dependencies(session, *constraints):
287-
if session.python >= "3.14":
287+
if session.python >= "3.12":
288288
session.install("--pre", "grpcio>=1.75.1")
289289
else:
290290
session.install("--pre", "grpcio<=1.62.2")
@@ -510,7 +510,7 @@ def prerelease_deps(session, protobuf_implementation):
510510
"google-api-core",
511511
"google-auth",
512512
"grpc-google-iam-v1",
513-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
513+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
514514
"grpcio-status",
515515
"protobuf",
516516
"proto-plus",

tests/integration/goldens/logging_internal/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def unit(session, protobuf_implementation):
284284

285285

286286
def install_systemtest_dependencies(session, *constraints):
287-
if session.python >= "3.14":
287+
if session.python >= "3.12":
288288
session.install("--pre", "grpcio>=1.75.1")
289289
else:
290290
session.install("--pre", "grpcio<=1.62.2")
@@ -510,7 +510,7 @@ def prerelease_deps(session, protobuf_implementation):
510510
"google-api-core",
511511
"google-auth",
512512
"grpc-google-iam-v1",
513-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
513+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
514514
"grpcio-status",
515515
"protobuf",
516516
"proto-plus",

tests/integration/goldens/redis/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def unit(session, protobuf_implementation):
284284

285285

286286
def install_systemtest_dependencies(session, *constraints):
287-
if session.python >= "3.14":
287+
if session.python >= "3.12":
288288
session.install("--pre", "grpcio>=1.75.1")
289289
else:
290290
session.install("--pre", "grpcio<=1.62.2")
@@ -510,7 +510,7 @@ def prerelease_deps(session, protobuf_implementation):
510510
"google-api-core",
511511
"google-auth",
512512
"grpc-google-iam-v1",
513-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
513+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
514514
"grpcio-status",
515515
"protobuf",
516516
"proto-plus",

tests/integration/goldens/redis_selective/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def unit(session, protobuf_implementation):
284284

285285

286286
def install_systemtest_dependencies(session, *constraints):
287-
if session.python >= "3.14":
287+
if session.python >= "3.12":
288288
session.install("--pre", "grpcio>=1.75.1")
289289
else:
290290
session.install("--pre", "grpcio<=1.62.2")
@@ -510,7 +510,7 @@ def prerelease_deps(session, protobuf_implementation):
510510
"google-api-core",
511511
"google-auth",
512512
"grpc-google-iam-v1",
513-
"grpcio>=1.75.1" if session.python >= "3.14" else "grpcio<=1.62.2",
513+
"grpcio>=1.75.1" if session.python >= "3.12" else "grpcio<=1.62.2",
514514
"grpcio-status",
515515
"protobuf",
516516
"proto-plus",

0 commit comments

Comments
 (0)