Skip to content

Commit d8c8ed4

Browse files
committed
feat: add support for Python 3.13
1 parent 94668e9 commit d8c8ed4

File tree

9 files changed

+20
-48
lines changed

9 files changed

+20
-48
lines changed

.github/sync-repo-settings.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ branchProtectionRules:
1010
requiresStrictStatusChecks: true
1111
requiredStatusCheckContexts:
1212
- 'Kokoro'
13-
- 'Kokoro system-3.12'
14-
- 'Kokoro snippets-3.12'
13+
- 'Kokoro system-3.13'
14+
- 'Kokoro snippets-3.13'
1515
- 'cla/google'
1616
- 'Samples - Lint'
1717
- 'Samples - Python 3.9'
1818
- 'Samples - Python 3.10'
1919
- 'Samples - Python 3.11'
2020
- 'Samples - Python 3.12'
21+
- 'Samples - Python 3.13'
2122
- pattern: v2
2223
requiresLinearHistory: true
2324
requiresCodeOwnerReviews: true

.kokoro/continuous/prerelease-deps-3.12.cfg renamed to .kokoro/continuous/prerelease-deps-3.13.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "prerelease_deps-3.12"
6+
value: "prerelease_deps-3.13"
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "snippets-3.12"
6+
value: "snippets-3.13"
77
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "system-3.12"
7-
}
6+
value: "system-3.13"
7+
}

CONTRIBUTING.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system-3.9 -- -k <name of test>
146+
$ nox -s system-3.13 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are configured to run under Python 3.9, 3.11, 3.12.
151+
System tests are only configured to run under Python 3.9 and 3.13.
152+
For expediency, we do not run them in older versions of Python 3.
152153

153154
This alone will not run the tests. You'll need to change some local
154155
auth settings and change some configuration in your project to
@@ -194,11 +195,11 @@ configure them just like the System Tests.
194195

195196
# Run all tests in a folder
196197
$ cd samples/snippets
197-
$ nox -s py-3.9
198+
$ nox -s py-3.8
198199

199200
# Run a single sample test
200201
$ cd samples/snippets
201-
$ nox -s py-3.9 -- -k <name of test>
202+
$ nox -s py-3.8 -- -k <name of test>
202203

203204
********************************************
204205
Note About ``README`` as it pertains to PyPI
@@ -238,7 +239,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
238239
.. _config: https://github.com/googleapis/python-bigquery/blob/main/noxfile.py
239240

240241

241-
We also explicitly decided to support Python 3 beginning with version 3.7.
242+
We also explicitly decided to support Python 3 beginning with version 3.9.
242243
Reasons for this include:
243244

244245
- Encouraging use of newest versions of Python 3

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
)
3939

4040
DEFAULT_PYTHON_VERSION = "3.9"
41-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.11", "3.12"]
42-
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.11", "3.12"]
41+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.11", "3.12", "3.13"]
42+
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.11", "3.12", "3.13"]
4343
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4444

4545

owlbot.py

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"geopandas": "https://geopandas.org/",
5656
"pandas": "https://pandas.pydata.org/pandas-docs/stable/",
5757
},
58+
system_test_python_versions=["3.9", "3.13"],
59+
unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13"],
60+
default_python_version="3.9",
5861
)
5962

6063
# BigQuery has a custom multiprocessing note
@@ -86,41 +89,7 @@
8689
python3.9 -m pip install --upgrade --quiet nox virtualenv==20.26.6""",
8790
"python3.9 -m pip install --upgrade --quiet nox virtualenv",
8891
)
89-
s.replace(
90-
"CONTRIBUTING.rst",
91-
"3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.",
92-
"3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.",
93-
)
94-
s.replace(
95-
"CONTRIBUTING.rst",
96-
r" \$ nox -s system-3.8 -- -k <name of test>",
97-
r" $ nox -s system-3.9 -- -k <name of test>",
98-
)
99-
s.replace(
100-
"CONTRIBUTING.rst",
101-
r"""System tests are only configured to run under Python 3.8.
102-
For expediency, we do not run them in older versions of Python 3.""",
103-
r"System tests are configured to run under Python 3.9, 3.11, 3.12.",
104-
)
105-
s.replace(
106-
"CONTRIBUTING.rst",
107-
r"\$ nox -s py-3.8",
108-
r"$ nox -s py-3.9",
109-
)
110-
s.replace(
111-
"CONTRIBUTING.rst",
112-
r"""- `Python 3.7`_
113-
- `Python 3.8`_
114-
""",
115-
r"",
116-
)
117-
s.replace(
118-
"CONTRIBUTING.rst",
119-
r""".. _Python 3.7: https://docs.python.org/3.7/
120-
.. _Python 3.8: https://docs.python.org/3.8/
121-
""",
122-
r"",
123-
)
92+
12493
s.replace(
12594
"scripts/readme-gen/templates/install_deps.tmpl.rst",
12695
r"Samples are compatible with Python 3.7",

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ classifiers = [
3737
"Programming Language :: Python :: 3.10",
3838
"Programming Language :: Python :: 3.11",
3939
"Programming Language :: Python :: 3.12",
40+
"Programming Language :: Python :: 3.13",
4041
"Operating System :: OS Independent",
4142
"Topic :: Internet",
4243
]

testing/constriants-3.13.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)