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

Commit 5af9e7c

Browse files
committed
tests: add Python 3.15 pre-release testing
1 parent 604c2bb commit 5af9e7c

File tree

10 files changed

+19
-43
lines changed

10 files changed

+19
-43
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@ env:
1818
PROTOC_VERSION: 3.20.2
1919
OLDEST_PYTHON: 3.7
2020
LATEST_STABLE_PYTHON: 3.14
21-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
22-
# Switch this to Python 3.15 alpha1 pre-release
23-
# https://peps.python.org/pep-0790/
24-
PREVIEW_PYTHON_VERSION: 3.14
25-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
26-
# Add Python 3.15 alpha1 pre-release
27-
# https://peps.python.org/pep-0790/
28-
ALL_PYTHON: "['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']"
21+
PREVIEW_PYTHON_VERSION: 3.15
22+
ALL_PYTHON: "['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15']"
2923

3024
permissions:
3125
contents: read

gapic/ads-templates/noxfile.py.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import os
77
import nox # type: ignore
88

99

10-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
11-
# Add tests for Python 3.15 alpha1
12-
# https://peps.python.org/pep-0790/
1310
ALL_PYTHON = [
1411
"3.7",
1512
"3.8",
@@ -19,6 +16,7 @@ ALL_PYTHON = [
1916
"3.12",
2017
"3.13",
2118
"3.14",
19+
"3.15",
2220
]
2321

2422
@nox.session(python=ALL_PYTHON)

gapic/templates/noxfile.py.j2

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@ ALL_PYTHON = [
3030
"3.12",
3131
"3.13",
3232
"3.14",
33+
"3.15",
3334
]
3435

3536
DEFAULT_PYTHON_VERSION = "3.14"
3637

37-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
38-
# Switch this to Python 3.15 alpha1
39-
# https://peps.python.org/pep-0790/
40-
PREVIEW_PYTHON_VERSION = "3.14"
38+
PREVIEW_PYTHON_VERSION = "3.15"
4139

4240
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4341

tests/integration/goldens/asset/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
"3.12",
3838
"3.13",
3939
"3.14",
40+
"3.15",
4041
]
4142

4243
DEFAULT_PYTHON_VERSION = "3.14"
4344

44-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
45-
# Switch this to Python 3.15 alpha1
46-
# https://peps.python.org/pep-0790/
47-
PREVIEW_PYTHON_VERSION = "3.14"
45+
PREVIEW_PYTHON_VERSION = "3.15"
4846

4947
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
5048

tests/integration/goldens/credentials/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
"3.12",
3838
"3.13",
3939
"3.14",
40+
"3.15",
4041
]
4142

4243
DEFAULT_PYTHON_VERSION = "3.14"
4344

44-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
45-
# Switch this to Python 3.15 alpha1
46-
# https://peps.python.org/pep-0790/
47-
PREVIEW_PYTHON_VERSION = "3.14"
45+
PREVIEW_PYTHON_VERSION = "3.15"
4846

4947
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
5048

tests/integration/goldens/eventarc/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
"3.12",
3838
"3.13",
3939
"3.14",
40+
"3.15",
4041
]
4142

4243
DEFAULT_PYTHON_VERSION = "3.14"
4344

44-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
45-
# Switch this to Python 3.15 alpha1
46-
# https://peps.python.org/pep-0790/
47-
PREVIEW_PYTHON_VERSION = "3.14"
45+
PREVIEW_PYTHON_VERSION = "3.15"
4846

4947
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
5048

tests/integration/goldens/logging/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
"3.12",
3838
"3.13",
3939
"3.14",
40+
"3.15",
4041
]
4142

4243
DEFAULT_PYTHON_VERSION = "3.14"
4344

44-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
45-
# Switch this to Python 3.15 alpha1
46-
# https://peps.python.org/pep-0790/
47-
PREVIEW_PYTHON_VERSION = "3.14"
45+
PREVIEW_PYTHON_VERSION = "3.15"
4846

4947
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
5048

tests/integration/goldens/logging_internal/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
"3.12",
3838
"3.13",
3939
"3.14",
40+
"3.15",
4041
]
4142

4243
DEFAULT_PYTHON_VERSION = "3.14"
4344

44-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
45-
# Switch this to Python 3.15 alpha1
46-
# https://peps.python.org/pep-0790/
47-
PREVIEW_PYTHON_VERSION = "3.14"
45+
PREVIEW_PYTHON_VERSION = "3.15"
4846

4947
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
5048

tests/integration/goldens/redis/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
"3.12",
3838
"3.13",
3939
"3.14",
40+
"3.15",
4041
]
4142

4243
DEFAULT_PYTHON_VERSION = "3.14"
4344

44-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
45-
# Switch this to Python 3.15 alpha1
46-
# https://peps.python.org/pep-0790/
47-
PREVIEW_PYTHON_VERSION = "3.14"
45+
PREVIEW_PYTHON_VERSION = "3.15"
4846

4947
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
5048

tests/integration/goldens/redis_selective/noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
"3.12",
3838
"3.13",
3939
"3.14",
40+
"3.15",
4041
]
4142

4243
DEFAULT_PYTHON_VERSION = "3.14"
4344

44-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
45-
# Switch this to Python 3.15 alpha1
46-
# https://peps.python.org/pep-0790/
47-
PREVIEW_PYTHON_VERSION = "3.14"
45+
PREVIEW_PYTHON_VERSION = "3.15"
4846

4947
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
5048

0 commit comments

Comments
 (0)