Skip to content

Commit 8a61d53

Browse files
committed
feat: Add support for Python 3.14
1 parent e6d3b0c commit 8a61d53

File tree

21 files changed

+54
-10
lines changed

21 files changed

+54
-10
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ env:
1717
SHOWCASE_VERSION: 0.35.0
1818
PROTOC_VERSION: 3.20.2
1919
OLDEST_PYTHON: 3.7
20-
LATEST_STABLE_PYTHON: 3.13
20+
LATEST_STABLE_PYTHON: 3.14
21+
# TOOD(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/
2124
PRE_RELEASE_PYTHON: 3.14
25+
# TOOD(https://github.com/googleapis/gapic-generator-python/issues/2450):
26+
# Add Python 3.15 alpha1 pre-release
27+
# https://peps.python.org/pep-0790/
2228
ALL_PYTHON: "['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']"
2329

2430
permissions:

gapic/ads-templates/noxfile.py.j2

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

99

10+
# TOOD(https://github.com/googleapis/gapic-generator-python/issues/2450):
11+
# Add tests for Python 3.15 alpha1
12+
# https://peps.python.org/pep-0790/
1013
ALL_PYTHON = [
1114
"3.7",
1215
"3.8",
@@ -15,6 +18,7 @@ ALL_PYTHON = [
1518
"3.11",
1619
"3.12",
1720
"3.13",
21+
"3.14",
1822
]
1923

2024
@nox.session(python=ALL_PYTHON)

gapic/ads-templates/setup.py.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ setuptools.setup(
7373
"Programming Language :: Python :: 3.11",
7474
"Programming Language :: Python :: 3.12",
7575
"Programming Language :: Python :: 3.13",
76+
"Programming Language :: Python :: 3.14",
7677
"Operating System :: OS Independent",
7778
"Topic :: Internet",
7879
],

gapic/templates/noxfile.py.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ ALL_PYTHON = [
3232
"3.14",
3333
]
3434

35-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
35+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
36+
# TOOD(https://github.com/googleapis/gapic-generator-python/issues/2450):
37+
# Add tests for Python 3.15 alpha1
38+
# https://peps.python.org/pep-0790/
3639
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
3740

3841
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

gapic/templates/setup.py.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ setuptools.setup(
9494
"Programming Language :: Python :: 3.11",
9595
"Programming Language :: Python :: 3.12",
9696
"Programming Language :: Python :: 3.13",
97+
"Programming Language :: Python :: 3.14",
9798
"Operating System :: OS Independent",
9899
"Topic :: Internet",
99100
],

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"3.14",
4848
)
4949

50-
NEWEST_PYTHON = ALL_PYTHON[-2]
50+
NEWEST_PYTHON = ALL_PYTHON[-1]
5151

5252

5353
@nox.session(python=ALL_PYTHON)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"Programming Language :: Python :: 3.11",
7878
"Programming Language :: Python :: 3.12",
7979
"Programming Language :: Python :: 3.13",
80+
"Programming Language :: Python :: 3.14",
8081
"Operating System :: OS Independent",
8182
"Topic :: Software Development :: Code Generators",
8283
"Topic :: Software Development :: Libraries :: Python Modules",

tests/integration/goldens/asset/noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
"3.14",
4040
]
4141

42-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
43+
# TOOD(https://github.com/googleapis/gapic-generator-python/issues/2450):
44+
# Add tests for Python 3.15 alpha1
45+
# https://peps.python.org/pep-0790/
4346
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4447

4548
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

tests/integration/goldens/asset/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"Programming Language :: Python :: 3.11",
8989
"Programming Language :: Python :: 3.12",
9090
"Programming Language :: Python :: 3.13",
91+
"Programming Language :: Python :: 3.14",
9192
"Operating System :: OS Independent",
9293
"Topic :: Internet",
9394
],

tests/integration/goldens/credentials/noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
"3.14",
4040
]
4141

42-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
43+
# TOOD(https://github.com/googleapis/gapic-generator-python/issues/2450):
44+
# Add tests for Python 3.15 alpha1
45+
# https://peps.python.org/pep-0790/
4346
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4447

4548
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

0 commit comments

Comments
 (0)