Skip to content

Commit 9b9f2b3

Browse files
speedstorm1copybara-github
authored andcommitted
feat: Add support for Python 3.15
PiperOrigin-RevId: 1003607096
1 parent 1fe32c5 commit 9b9f2b3

6 files changed

Lines changed: 35 additions & 4 deletions

File tree

‎.github/workflows/mypy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
matrix:
31-
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
31+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
3232

3333
steps:
3434
- name: Checkout code

‎.kokoro/presubmit/unit_3-15.cfg‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Run unit tests for Python 3.15
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "unit-3.15"
7+
}
8+
9+
# Run unit tests in parallel, splitting up by file
10+
env_vars: {
11+
key: "PYTEST_ADDOPTS"
12+
value: "-n=auto --dist=loadscope"
13+
}

‎noxfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"recommonmark",
6161
)
6262

63-
UNIT_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
63+
UNIT_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
6464
UNIT_TEST_TEMPLATES_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
6565
PYTHON_TO_RAY_VERSIONS = {
6666
"3.10": ["2.33.0", "2.42.0"],

‎owlbot.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
templated_files = common.py_library(
100100
cov_level=98,
101101
system_test_python_versions=["3.10"],
102-
unit_test_python_versions=["3.10", "3.11", "3.12", "3.13", "3.14"],
102+
unit_test_python_versions=["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"],
103103
unit_test_extras=["testing"],
104104
system_test_extras=["testing"],
105105
microgenerator=True,

‎setup.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@
186186
"ruamel.yaml",
187187
"pyyaml",
188188
"litellm>=1.83.7, <1.97.0; python_version<'3.14'",
189-
"litellm>=1.93.0, <1.97.0; python_version>='3.14'",
189+
# litellm does not support Python 3.15 yet (Requires-Python <3.15).
190+
"litellm>=1.93.0, <1.97.0; python_version=='3.14'",
190191
# For LiteLLM tests. Lower bound: CVE-2026-35030 plus 4 follow-on
191192
# advisories patched in 1.83.7. Upper bound <1.97.0 for stable interface only.
192193
]
@@ -372,6 +373,7 @@
372373
"Programming Language :: Python :: 3.12",
373374
"Programming Language :: Python :: 3.13",
374375
"Programming Language :: Python :: 3.14",
376+
"Programming Language :: Python :: 3.15",
375377
"Topic :: Internet",
376378
"Topic :: Software Development :: Libraries :: Python Modules",
377379
],

‎testing/constraints-3.15.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-auth==2.49.0
5+
proto-plus
6+
mock==4.0.2
7+
google-cloud-storage==3.10.0 # Updated for Python 3.14 compatibility
8+
packaging==24.1 # Increased to unbreak canonicalize_version error (b/377774673)
9+
pytest-xdist==3.3.1 # Pinned to unbreak unit tests
10+
ray==2.5.0 # Pinned until 2.9.3 is verified for Ray tests
11+
ipython==8.22.2 # Pinned to unbreak TypeAliasType import error
12+
google-adk==0.0.2
13+
google-genai>=1.10.0
14+
google-vizier==0.1.21
15+
pyarrow>=22.0.0
16+
protobuf>=7

0 commit comments

Comments
 (0)