Skip to content

Commit 8ee73ec

Browse files
authored
feat: support python 3.14 (#165)
1 parent c333e88 commit 8ee73ec

File tree

6 files changed

+36
-5
lines changed

6 files changed

+36
-5
lines changed

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
strategy:
1313
matrix:
14-
python: ['3.9', '3.11', '3.12', '3.13']
14+
python: ['3.9', '3.11', '3.12', '3.13', '3.14']
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "prerelease_deps-3.14"
7+
}

.kokoro/presubmit/system-3.14.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "system-3.14"
7+
}

noxfile.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
DEFAULT_PYTHON_VERSION = "3.10"
3636

37-
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13"]
37+
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13", "3.14"]
3838
UNIT_TEST_STANDARD_DEPENDENCIES = [
3939
"mock",
4040
"asyncmock",
@@ -67,9 +67,14 @@
6767
"bigframes",
6868
"geopandas",
6969
],
70+
"3.14": [
71+
"bqstorage",
72+
"bigframes",
73+
"geopandas",
74+
],
7075
}
7176

72-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13"]
77+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.11", "3.12", "3.13", "3.14"]
7378
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
7479
"mock",
7580
"pytest",
@@ -99,6 +104,11 @@
99104
"bigframes",
100105
"geopandas",
101106
],
107+
"3.14": [
108+
"bqstorage",
109+
"bigframes",
110+
"geopandas",
111+
],
102112
}
103113

104114
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
@@ -208,7 +218,12 @@ def install_unittest_dependencies(session, *constraints):
208218
def unit(session, protobuf_implementation):
209219
# Install all test dependencies, then install this package in-place.
210220

211-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
221+
if protobuf_implementation == "cpp" and session.python in (
222+
"3.11",
223+
"3.12",
224+
"3.13",
225+
"3.14",
226+
):
212227
session.skip("cpp implementation is not supported in python 3.11+")
213228

214229
constraints_path = str(

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
# grpc.Channel.close() method isn't added until 1.32.0.
5353
# https://github.com/grpc/grpc/pull/15254
5454
"grpcio >= 1.47.0, < 2.0.0",
55-
"grpcio >= 1.49.1, < 2.0.0; python_version>='3.11'",
55+
"grpcio >= 1.49.1, < 2.0.0; python_version >= '3.11' and python_version < '3.14'",
56+
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
5657
],
5758
"bigframes": ["bigframes >= 1.17.0"],
5859
"geopandas": ["geopandas >= 1.0.1"],
@@ -110,6 +111,7 @@
110111
"Programming Language :: Python :: 3.11",
111112
"Programming Language :: Python :: 3.12",
112113
"Programming Language :: Python :: 3.13",
114+
"Programming Language :: Python :: 3.14",
113115
"Operating System :: OS Independent",
114116
"Topic :: Internet",
115117
],

testing/constraints-3.14.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)