Skip to content

Commit 54d1d36

Browse files
authored
tests: update default python runtime used in tests to 3.14 (#870)
This change is needed as part of b/463296248
1 parent 9340408 commit 54d1d36

File tree

15 files changed

+14
-21
lines changed

15 files changed

+14
-21
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.14"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.14"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Setup Python
6767
uses: actions/setup-python@v5
6868
with:
69-
python-version: "3.10"
69+
python-version: "3.14"
7070
- name: Install coverage
7171
run: |
7272
python -m pip install --upgrade setuptools pip wheel

CONTRIBUTING.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In order to add a feature:
2121
documentation.
2222

2323
- The feature must work fully on the following CPython versions:
24-
3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.
24+
3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
2525

2626
- The feature must not add unnecessary dependencies (where
2727
"unnecessary" is of course subjective, but new dependencies should
@@ -204,6 +204,7 @@ We support:
204204
- `Python 3.11`_
205205
- `Python 3.12`_
206206
- `Python 3.13`_
207+
- `Python 3.14`_
207208

208209
.. _Python 3.7: https://docs.python.org/3.7/
209210
.. _Python 3.8: https://docs.python.org/3.8/
@@ -212,6 +213,7 @@ We support:
212213
.. _Python 3.11: https://docs.python.org/3.11/
213214
.. _Python 3.12: https://docs.python.org/3.12/
214215
.. _Python 3.13: https://docs.python.org/3.13/
216+
.. _Python 3.14: https://docs.python.org/3.14/
215217

216218

217219
Supported versions can be found in our ``noxfile.py`` `config`_.

google/api_core/grpc_helpers_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def create_channel(
220220
default_host=None,
221221
compression=None,
222222
attempt_direct_path: Optional[bool] = False,
223-
**kwargs
223+
**kwargs,
224224
):
225225
"""Create an AsyncIO secure channel with credentials.
226226

google/api_core/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
result_type,
7979
metadata_type=None,
8080
polling=polling.DEFAULT_POLLING,
81-
**kwargs
81+
**kwargs,
8282
):
8383
super(Operation, self).__init__(polling=polling, **kwargs)
8484
self._operation = operation

google/api_core/operations_v1/pagers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
request: operations_pb2.ListOperationsRequest,
4949
response: operations_pb2.ListOperationsResponse,
5050
*,
51-
metadata: Sequence[Tuple[str, str]] = ()
51+
metadata: Sequence[Tuple[str, str]] = (),
5252
):
5353
super().__init__(
5454
method=method, request=request, response=response, metadata=metadata

google/api_core/operations_v1/pagers_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
request: operations_pb2.ListOperationsRequest,
4949
response: operations_pb2.ListOperationsResponse,
5050
*,
51-
metadata: Sequence[Tuple[str, str]] = ()
51+
metadata: Sequence[Tuple[str, str]] = (),
5252
):
5353
super().__init__(
5454
method=method, request=request, response=response, metadata=metadata

google/api_core/operations_v1/pagers_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
request: operations_pb2.ListOperationsRequest,
4848
response: operations_pb2.ListOperationsResponse,
4949
*,
50-
metadata: Sequence[Tuple[str, str]] = ()
50+
metadata: Sequence[Tuple[str, str]] = (),
5151
):
5252
"""Instantiate the pager.
5353

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
import nox # pytype: disable=import-error
2424

2525

26-
BLACK_VERSION = "black==22.3.0"
26+
BLACK_VERSION = "black==23.7.0"
2727
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2828
# Black and flake8 clash on the syntax for ignoring flake8's F401 in this file.
2929
BLACK_EXCLUDES = ["--exclude", "^/google/api_core/operations_v1/__init__.py"]
3030

3131
PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
3232

33-
DEFAULT_PYTHON_VERSION = "3.10"
33+
DEFAULT_PYTHON_VERSION = "3.14"
3434
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
3535

3636
# 'docfx' is excluded since it only needs to run in 'docs-presubmit'
@@ -261,7 +261,7 @@ def unit_w_async_rest_extra(session):
261261
def lint_setup_py(session):
262262
"""Verify that setup.py is valid (including RST check)."""
263263

264-
session.install("docutils", "Pygments")
264+
session.install("docutils", "Pygments", "setuptools")
265265
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
266266

267267

0 commit comments

Comments
 (0)