Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitecf4150

Browse files
gcf-owl-bot[bot]partheacojenco
authored
feat: Add support for Python 3.12 (#1187)
* chore(python): Add Python 3.12Source-Link:googleapis/synthtool@af16e6dPost-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bacc3af03bff793a03add584537b36b5644342931ad989e3ba1171d3bd5399f5* Add trove classifier for python 3.12* Update contributing.rst, noxfile and constraints to include python 3.12* remove usage of deprecated assertDictContainsSubsetpython/cpython#28268* update tests KMS key settings---------Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>Co-authored-by: Anthonios Partheniou <partheniou@google.com>Co-authored-by: Cathy Ouyang <cathyo@google.com>
1 parent73d033d commitecf4150

File tree

15 files changed

+87
-9
lines changed

15 files changed

+87
-9
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:caffe0a9277daeccc4d1de5c9b55ebba0901b57c2f713ec9c876b0d4ec064f61
17-
# created: 2023-11-08T19:46:45.022803742Z
16+
digest:sha256:bacc3af03bff793a03add584537b36b5644342931ad989e3ba1171d3bd5399f5
17+
# created: 2023-11-23T18:17:28.105124211Z
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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:"py-3.12"
14+
}
15+
16+
# Declare build specific Cloud project.
17+
env_vars: {
18+
key:"BUILD_SPECIFIC_GCLOUD_PROJECT"
19+
value:"python-docs-samples-tests-312"
20+
}
21+
22+
env_vars: {
23+
key:"TRAMPOLINE_BUILD_FILE"
24+
value:"github/python-storage/.kokoro/test-samples.sh"
25+
}
26+
27+
# Configure the docker image for kokoro-trampoline.
28+
env_vars: {
29+
key:"TRAMPOLINE_IMAGE"
30+
value:"gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
31+
}
32+
33+
# Download secrets for samples
34+
gfile_resources:"/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
35+
36+
# Download trampoline resources.
37+
gfile_resources:"/bigstore/cloud-devrel-kokoro-resources/trampoline"
38+
39+
# Use the trampoline script to run in docker.
40+
build_file:"python-storage/.kokoro/trampoline_v2.sh"
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/python-storage/.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
@@ -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.10and 3.11 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11and 3.12 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

‎noxfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
DEFAULT_PYTHON_VERSION="3.8"
3131
SYSTEM_TEST_PYTHON_VERSIONS= ["3.8"]
32-
UNIT_TEST_PYTHON_VERSIONS= ["3.7","3.8","3.9","3.10","3.11"]
32+
UNIT_TEST_PYTHON_VERSIONS= ["3.7","3.8","3.9","3.10","3.11","3.12"]
3333
CONFORMANCE_TEST_PYTHON_VERSIONS= ["3.8"]
3434

3535
_DEFAULT_STORAGE_HOST="https://storage.googleapis.com"

‎samples/snippets/encryption_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
importstorage_upload_encrypted_file
3030

3131
BUCKET=os.environ["CLOUD_STORAGE_BUCKET"]
32-
KMS_KEY=os.environ["CLOUD_KMS_KEY"]
32+
KMS_KEY=os.environ["MAIN_CLOUD_KMS_KEY"]
3333

3434
TEST_ENCRYPTION_KEY="brtJUWneL92g5q0N2gyDSnlPSYAiIVZ/cWgjyZNeMy0="
3535
TEST_ENCRYPTION_KEY_DECODED=base64.b64decode(TEST_ENCRYPTION_KEY)

‎samples/snippets/noxfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8989

9090
# DO NOT EDIT - automatically generated.
9191
# All versions used to test samples.
92-
ALL_VERSIONS= ["3.7","3.8","3.9","3.10","3.11"]
92+
ALL_VERSIONS= ["3.7","3.8","3.9","3.10","3.11","3.12"]
9393

9494
# Any default versions that should be ignored.
9595
IGNORED_VERSIONS=TEST_CONFIG["ignored_versions"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp