Skip to content

Commit 89b008d

Browse files
partheaohmayrtswastgemini-code-assist[bot]chalmerlowe
authored
feat: Add support for Python 3.14 (#976)
This PR adds support for Python 3.14 to the library. Key changes include: - Adding Python 3.14 to the test matrix in `.github/workflows/unittest.yml`. - Updating `setup.py` to include the Python 3.14 classifier. - Adding `testing/constraints-3.14.txt`. - Updating `noxfile.py` to include 3.14 sessions, and set default to 3.14. - Updating `CONTRIBUTING.rst` to list Python 3.14 as a supported version. NOTE: The Kokoro Samples 3.14 check will fail. The docker container for running that session does not yet have Python 3.14 in it. That is being done in parallel. The fact that the Samples check does not pass should not prevent this from being merged. NOTE: tweaked a set of tests to no longer use pytz which was a transient dependency in the past but the library that used to install with it no longer does. Moved timezone info from pytz to the standard library's timezone module. --------- Co-authored-by: ohmayr <omairn@google.com> Co-authored-by: Tim Sweña (Swast) <swast@google.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
1 parent a868128 commit 89b008d

File tree

18 files changed

+21
-156
lines changed

18 files changed

+21
-156
lines changed

.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.10"
15+
python-version: "3.14"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.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.9', '3.10', '3.11', '3.12', '3.13']
14+
python: ['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.10"
48+
python-version: "3.14"
4949
- name: Install coverage
5050
run: |
5151
python -m pip install --upgrade setuptools pip wheel
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run the following session(s)
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "system-3.13"
6+
value: "system-3.14"
77
}

.kokoro/samples/python3.7/common.cfg

Lines changed: 0 additions & 40 deletions
This file was deleted.

.kokoro/samples/python3.7/continuous.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.kokoro/samples/python3.7/periodic-head.cfg

Lines changed: 0 additions & 11 deletions
This file was deleted.

.kokoro/samples/python3.7/periodic.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.kokoro/samples/python3.7/presubmit.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.kokoro/samples/python3.8/common.cfg

Lines changed: 0 additions & 40 deletions
This file was deleted.

.kokoro/samples/python3.8/continuous.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)