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

Commit 5ff43ff

Browse files
committed
Edited client library files for 3.14 support
1 parent 9ee84f1 commit 5ff43ff

5 files changed

Lines changed: 33 additions & 6 deletions

File tree

noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
ISORT_VERSION = "isort==5.11.0"
3333
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
3434

35-
DEFAULT_PYTHON_VERSION = "3.8"
35+
DEFAULT_PYTHON_VERSION = "3.13"
3636

3737
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
3838
"3.7",
@@ -42,6 +42,7 @@
4242
"3.11",
4343
"3.12",
4444
"3.13",
45+
"3.14",
4546
]
4647
UNIT_TEST_STANDARD_DEPENDENCIES = [
4748
"mock",
@@ -60,7 +61,7 @@
6061
UNIT_TEST_EXTRAS: List[str] = []
6162
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6263

63-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.12"]
64+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.14"]
6465
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
6566
"mock",
6667
"pytest",
@@ -81,7 +82,12 @@
8182
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
8283

8384
nox.options.sessions = [
84-
"unit",
85+
"unit-3.9",
86+
"unit-3.10",
87+
"unit-3.11",
88+
"unit-3.12",
89+
"unit-3.13",
90+
"unit-3.14",
8591
"system",
8692
"cover",
8793
"lint",
@@ -184,8 +190,8 @@ def install_unittest_dependencies(session, *constraints):
184190
)
185191
def unit(session, protobuf_implementation):
186192
# Install all test dependencies, then install this package in-place.
187-
188-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
193+
py_version = tuple([int(v) for v in session.python.split(".")])
194+
if protobuf_implementation == "cpp" and py_version >= (3, 11):
189195
session.skip("cpp implementation is not supported in python 3.11+")
190196

191197
constraints_path = str(

owlbot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def place_before(path, text, *before_text, escape=None):
9595
"google-cloud-testutils",
9696
"opentelemetry-sdk"
9797
],
98-
system_test_python_versions=["3.12"],
98+
system_test_python_versions=["3.19"],
99+
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"],
99100
unit_test_external_dependencies=["flask", "webob", "django"],
100101
samples=True,
101102
)

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ filterwarnings =
2727
ignore:.*Please use message_factory.GetMessageClass\(\) instead. SymbolDatabase.GetPrototype\(\) will be removed soon.:UserWarning
2828
# Remove warning once https://github.com/googleapis/gapic-generator-python/issues/2046 is fixed
2929
ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning
30+
# Remove once credential file support is removed
31+
ignore:.*The \`credentials_file\` argument is deprecated.*:DeprecationWarning

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
"Programming Language :: Python :: 3.10",
8686
"Programming Language :: Python :: 3.11",
8787
"Programming Language :: Python :: 3.12",
88+
"Programming Language :: Python :: 3.13",
89+
"Programming Language :: Python :: 3.14",
8890
"Operating System :: OS Independent",
8991
"Topic :: Internet",
9092
],

testing/constraints-3.14.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# This constraints file is required for unit tests.
3+
# List all library dependencies and extras in this file.
4+
google-api-core
5+
google-auth
6+
proto-plus
7+
protobuf
8+
google-cloud-core
9+
google-cloud-appengine-logging
10+
google-cloud-audit-log
11+
grpc-google-iam-v1
12+
opentelemetry-api
13+
14+
# optional dependencies
15+
django
16+
flask

0 commit comments

Comments
 (0)