Skip to content

Commit 52b2055

Browse files
feat: Add support for Python 3.14 (#1110)
1 parent 4983639 commit 52b2055

File tree

20 files changed

+93
-28
lines changed

20 files changed

+93
-28
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:25de45b58e52021d3a24a6273964371a97a4efeefe6ad3845a64e697c63b6447
17-
# created: 2025-04-14T14:34:43.260858345Z
16+
digest: sha256:4a9e5d44b98e8672e2037ee22bc6b4f8e844a2d75fcb78ea8a4b38510112abc6
17+
# created: 2025-10-07

.github/sync-repo-settings.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ branchProtectionRules:
1717
# List of required status check contexts that must pass for commits to be accepted to matching branches.
1818
requiredStatusCheckContexts:
1919
- 'Kokoro'
20-
- 'Kokoro system-3.7'
20+
- 'Kokoro system'
2121
- 'cla/google'
2222
- 'OwlBot Post Processor'
2323
- 'docs'
2424
- 'docfx'
2525
- 'lint'
26-
- 'unit (3.7)'
27-
- 'unit (3.8)'
2826
- 'unit (3.9)'
2927
- 'unit (3.10)'
3028
- 'unit (3.11)'
3129
- 'unit (3.12)'
30+
- 'unit (3.13)'
31+
- 'unit (3.14)'
3232
- 'cover'
3333
- 'run-systests'
3434
# List of explicit permissions to add (additive only)

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.13"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.13"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/system_emulated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Python
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: '3.7'
20+
python-version: '3.13'
2121

2222
# firestore emulator requires java 21+
2323
- name: Setup Java

.github/workflows/unittest.yml

Lines changed: 2 additions & 2 deletions
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.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
14+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Python
4646
uses: actions/setup-python@v5
4747
with:
48-
python-version: "3.8"
48+
python-version: "3.13"
4949
- name: Install coverage
5050
run: |
5151
python -m pip install --upgrade setuptools pip wheel

.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+
}

.kokoro/presubmit/system-3.9.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.9"
7+
}

.kokoro/presubmit/system.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.9"
7+
}

CONTRIBUTING.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7272

7373
- To run a single unit test::
7474

75-
$ nox -s unit-3.13 -- -k <name of test>
75+
$ nox -s unit-3.14 -- -k <name of test>
7676

7777

7878
.. note::
@@ -238,14 +238,15 @@ We support:
238238
- `Python 3.11`_
239239
- `Python 3.12`_
240240
- `Python 3.13`_
241+
- `Python 3.14`_
241242

242243
.. _Python 3.7: https://docs.python.org/3.7/
243244
.. _Python 3.8: https://docs.python.org/3.8/
244245
.. _Python 3.9: https://docs.python.org/3.9/
245246
.. _Python 3.10: https://docs.python.org/3.10/
246247
.. _Python 3.11: https://docs.python.org/3.11/
247248
.. _Python 3.12: https://docs.python.org/3.12/
248-
.. _Python 3.13: https://docs.python.org/3.13/
249+
.. _Python 3.14: https://docs.python.org/3.14/
249250

250251

251252
Supported versions can be found in our ``noxfile.py`` `config`_.

0 commit comments

Comments
 (0)