Skip to content

Commit 6fd04d5

Browse files
partheaohmayr
andauthored
fix: explicitly declare support for Python 3.13 (#1741)
* fix: explicitly declare support for Python 3.13 * Add config for samples * skip 2 tests due to oauth2client incompatibility * bump google-cloud-storage in samples test * bump google-auth in samples test * coverage --------- Co-authored-by: ohmayr <[email protected]>
1 parent 83d2e0f commit 6fd04d5

File tree

12 files changed

+89
-6
lines changed

12 files changed

+89
-6
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Specify which tests to run
11+
env_vars: {
12+
key: "RUN_TESTS_SESSION"
13+
value: "unit-3.13"
14+
}
15+
16+
# Download trampoline resources.
17+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
18+
19+
# Download resources for system tests (service account key, etc.)
20+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-auth-library-python"
21+
22+
# Use the trampoline script to run in docker.
23+
build_file: "google-auth-library-python/.kokoro/trampoline.sh"
24+
25+
# Configure the docker image for kokoro-trampoline.
26+
env_vars: {
27+
key: "TRAMPOLINE_IMAGE"
28+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
29+
}
30+
env_vars: {
31+
key: "TRAMPOLINE_BUILD_FILE"
32+
value: "github/google-auth-library-python/.kokoro/build.sh"
33+
}
34+
env_vars: {
35+
key: "TRAMPOLINE_BUILD_FILE"
36+
value: "github/google-auth-library-python/.kokoro/samples-test-setup.sh"
37+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
7+
8+
env_vars: {
9+
key: "TRAMPOLINE_BUILD_FILE"
10+
value: "github/google-auth-library-python/.kokoro/test-samples-against-head.sh"
11+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "False"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A few notes on making changes to ``google-auth-library-python``.
1919
using ``nox -s docs``.
2020

2121
- The change must work fully on the following CPython versions:
22-
3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 across macOS, Linux, and Windows.
22+
3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 across macOS, Linux, and Windows.
2323

2424
- The codebase *must* have 100% test statement coverage after each commit.
2525
You can test coverage via ``nox -e cover``.

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def mypy(session):
8484
session.run("mypy", "-p", "google", "-p", "tests", "-p", "tests_async")
8585

8686

87-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
87+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"])
8888
def unit(session):
8989
constraints_path = str(
9090
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"

samples/cloud-client/snippets/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
]
6161

6262

63-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
63+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"])
6464
def unit(session):
6565
# constraints_path = str(
6666
# CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
google-cloud-compute==1.5.1
2-
google-cloud-storage==2.5.0
3-
google-auth==2.11.0
4-
pytest==7.1.2
2+
google-cloud-storage==3.1.0
3+
google-auth==2.38.0
4+
pytest==7.1.2

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"Programming Language :: Python :: 3.10",
129129
"Programming Language :: Python :: 3.11",
130130
"Programming Language :: Python :: 3.12",
131+
"Programming Language :: Python :: 3.13",
131132
"Development Status :: 5 - Production/Stable",
132133
"Intended Audience :: Developers",
133134
"License :: OSI Approved :: Apache Software License",

0 commit comments

Comments
 (0)