Skip to content

Commit 9937233

Browse files
chalmerlowegcf-owl-bot[bot]parthea
authored
feat: Add support for Python 3.13 and 3.14 (#485)
Towards b/375664027 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 75dbecf commit 9937233

File tree

6 files changed

+21
-7
lines changed

6 files changed

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

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.10"
4949
- name: Install coverage
5050
run: |
5151
python -m pip install --upgrade setuptools pip wheel

noxfile.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,20 @@
2424
SYSTEM_TEST_ENV_VARS = ("GOOGLE_APPLICATION_CREDENTIALS",)
2525
BLACK_VERSION = "black==22.3.0"
2626

27-
DEFAULT_PYTHON_VERSION = "3.8"
28-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"]
29-
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
27+
DEFAULT_PYTHON_VERSION = "3.10"
28+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.10"]
29+
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
3030

3131
# Error if a python version is missing
3232
nox.options.error_on_missing_interpreters = True
3333

34+
nox.options.sessions = [
35+
"system",
36+
"blacken",
37+
"mypy",
38+
"doctest",
39+
]
40+
3441

3542
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
3643
def unit(session):
@@ -150,7 +157,12 @@ def doctest(session):
150157
session.install("-e", ".[requests,aiohttp]")
151158
session.install("sphinx==4.0.1", "alabaster", "recommonmark")
152159
session.install(
153-
"sphinx==4.0.1",
160+
"sphinxcontrib-applehelp==1.0.4",
161+
"sphinxcontrib-devhelp==1.0.2",
162+
"sphinxcontrib-htmlhelp==2.0.1",
163+
"sphinxcontrib-qthelp==1.0.3",
164+
"sphinxcontrib-serializinghtml==1.1.5",
165+
"sphinx==4.5.0",
154166
"sphinx_rtd_theme",
155167
"sphinx-docstring-typing >= 0.0.3",
156168
"mock",

owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# ----------------------------------------------------------------------------
77
# Add templated .kokoro files
88
# ----------------------------------------------------------------------------
9-
templated_files = common.py_library()
9+
templated_files = common.py_library(default_python_version="3.10")
1010
s.move(templated_files / ".kokoro")
1111
s.move(templated_files / ".trampolinerc")
1212
s.move(templated_files / ".github")

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
'Programming Language :: Python :: 3.10',
6565
'Programming Language :: Python :: 3.11',
6666
'Programming Language :: Python :: 3.12',
67+
'Programming Language :: Python :: 3.13',
68+
'Programming Language :: Python :: 3.14',
6769
'Topic :: Internet',
6870
],
6971
)

testing/constraints-3.14.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)