GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Adding Python 3.12 support (#10946) · muralidhar9e/python-docs-samples@0f0def7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • sync-repo-settings.yaml
  • .kokoro/python3.12
    • common.cfg
    • continuous.cfg
    • periodic.cfg
    • presubmit.cfg
  • AUTHORING_GUIDE.md
  • appengine
    • flexible/django_cloudsql
      • noxfile_config.py
    • standard_python3
      • bundled-services
        • blobstore
          • django
            • noxfile_config.py
          • flask
            • noxfile_config.py
          • wsgi
            • noxfile_config.py
        • deferred
          • django
            • noxfile_config.py
          • flask
            • noxfile_config.py
          • wsgi
            • noxfile_config.py
        • mail
          • django
            • noxfile_config.py
          • flask
            • noxfile_config.py
          • wsgi
            • noxfile_config.py
      • django
        • noxfile_config.py
    • standard
      • noxfile-template.py
  • asset/snippets
    • noxfile_config.py
  • bigquery-connection/snippets
    • noxfile_config.py
  • bigquery-datatransfer/snippets
    • noxfile_config.py
  • bigquery-migration/snippets
    • noxfile_config.py
  • bigquery
    • pandas-gbq-migration
      • requirements.txt
    • remote-function
      • document
        • noxfile_config.py
      • translate
        • noxfile_config.py
      • vision
        • noxfile_config.py
  • blog/introduction_to_data_models_in_cloud_datastore
    • noxfile_config.py
  • cloud-media-livestream/keypublisher
    • noxfile_config.py
    • requirements.txt
  • cloud_scheduler/snippets
    • noxfile_config.py
  • cloud_tasks/snippets
    • noxfile_config.py
  • cloudbuild/snippets
    • noxfile_config.py
  • composer
    • 2022_airflow_summit
      • constraints.txt
      • noxfile_config.py
    • airflow_1_samples
      • noxfile_config.py
    • blog/gcp-tech-blog/data-orchestration-with-composer
      • constraints.txt
    • cicd_sample
      • constraints.txt
      • utils
        • noxfile_config.py
    • workflows
      • airflow_db_cleanup.py
      • constraints.txt
      • noxfile_config.py
  • compute
    • auth
      • noxfile_config.py
    • encryption
      • noxfile_config.py
  • contact-center-insights/snippets
    • noxfile_config.py
    • requirements.txt
  • container/snippets
    • noxfile_config.py
  • datalabeling/snippets
    • noxfile_config.py
  • dataproc/snippets
    • noxfile_config.py
    • requirements.txt
  • dialogflow-cx
    • noxfile_config.py
  • dlp/snippets
    • Deidentify
      • deidentify_cloud_storage.py
      • deidentify_cloud_storage_test.py
      • deidentify_date_shift.py
      • deidentify_deterministic.py
      • deidentify_fpe.py
      • deidentify_fpe_test.py
      • deidentify_free_text_with_fpe_using_surrogate.py
      • deidentify_free_text_with_fpe_using_surrogate_test.py
      • deidentify_masking.py
      • deidentify_redact.py
      • deidentify_replace.py
      • deidentify_replace_infotype.py
      • deidentify_table_condition_infotypes.py
      • deidentify_table_condition_masking.py
      • deidentify_table_fpe.py
      • deidentify_table_infotypes.py
      • deidentify_table_with_crypto_hash.py
      • deidentify_table_with_multiple_crypto_hash.py
      • deidentify_time_extract.py
      • reidentify_deterministic.py
      • reidentify_fpe.py
      • reidentify_fpe_test.py
      • reidentify_free_text_with_fpe_using_surrogate.py
      • reidentify_free_text_with_fpe_using_surrogate_test.py
      • reidentify_table_fpe.py
      • reidentify_text_fpe.py
    • Inspect
      • inspect_augment_infotypes.py
      • inspect_bigquery.py
      • inspect_bigquery_with_sampling.py
      • inspect_column_values_w_custom_hotwords.py
      • inspect_datastore.py
      • inspect_datastore_send_to_scc.py
      • inspect_file.py
      • inspect_gcs.py
      • inspect_gcs_send_to_scc.py
      • inspect_gcs_with_sampling.py
      • inspect_image_all_infotypes.py
      • inspect_image_file.py
      • inspect_image_listed_infotypes.py
      • inspect_send_data_to_hybrid_job_trigger.py
      • inspect_string.py
      • inspect_table.py
    • Jobs
      • create_job.py
      • delete_job.py
      • get_job.py
      • list_jobs.py
    • Redact
      • redact_image.py
      • redact_image_listed_infotypes.py
    • Risk
      • categorical_stats.py
      • k_anonymity.py
      • k_anonymity_with_entity_id.py
      • l_diversity.py
      • numerical_stats.py
    • Stored_InfoType
      • create_stored_infotype.py
      • update_stored_infotype.py
    • Templates
      • create_inspect_template.py
      • delete_inspect_template.py
      • list_inspect_templates.py
    • Triggers
      • create_trigger.py
      • update_trigger.py
    • noxfile_config.py
  • functions
    • ocr/app
      • noxfile_config.py
    • v2
      • ocr
        • noxfile_config.py
      • storage
        • noxfile_config.py
  • generative_ai
    • noxfile_config.py
  • healthcare/api-client/v1
    • consent
      • noxfile_config.py
    • datasets
      • noxfile_config.py
    • dicom
      • noxfile_config.py
    • fhir
      • noxfile_config.py
    • hl7v2
      • noxfile_config.py
  • iam
    • api-client
      • noxfile_config.py
    • cloud-client/snippets
      • noxfile_config.py
  • jobs/v3/api_client
    • noxfile_config.py
  • kms
    • attestations
      • noxfile_config.py
    • snippets
      • noxfile_config.py
  • media-translation/snippets
    • noxfile_config.py
    • requirements.txt
  • monitoring/snippets/v3
    • alerts-client
      • noxfile_config.py
    • cloud-client
      • noxfile_config.py
    • uptime-check-client
      • noxfile_config.py
  • noxfile-template.py
  • noxfile_config.py
  • opencensus
    • requirements.txt
  • optimization/snippets
    • noxfile_config.py
  • privateca/snippets
    • noxfile_config.py
  • recaptcha_enterprise/snippets
    • noxfile_config.py
  • retail/interactive-tutorials
    • events
      • noxfile_config.py
    • search
      • noxfile_config.py
  • run
    • noxfile_config.py
  • secretmanager/snippets
    • noxfile_config.py
  • securitycenter/snippets
    • noxfile_config.py
  • servicedirectory
    • noxfile_config.py
  • speech
    • noxfile_config.py
  • storagetransfer
    • noxfile_config.py
  • talent
    • noxfile_config.py
  • translate/samples/snippets
    • noxfile_config.py
  • video
    • live-stream
      • noxfile_config.py
      • requirements.txt
    • stitcher
      • noxfile_config.py
      • requirements.txt
    • transcoder
      • noxfile_config.py
      • requirements.txt
  • vision/snippets
    • crop_hints
      • noxfile_config.py
    • document_text
      • noxfile_config.py
    • face_detection
      • noxfile_config.py
  • vmwareengine/cloud-client
    • noxfile_config.py
  • webrisk/snippets
    • noxfile_config.py
  • workflows/cloud-client
    • noxfile_config.py

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/sync-repo-settings.yaml‎

Copy file name to clipboardExpand all lines: .github/sync-repo-settings.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ branchProtectionRules:
4545
- "Kokoro CI - Lint"
4646
- "Kokoro CI - Python 2.7 (App Engine Standard Only)"
4747
- "Kokoro CI - Python 3.8"
48-
- "Kokoro CI - Python 3.11"
48+
- "Kokoro CI - Python 3.12"
4949
- "cla/google"
5050
- "snippet-bot check"
5151
# List of explicit permissions to add (additive only)
Collapse file

‎.kokoro/python3.12/common.cfg‎

Copy file name to clipboard
+61Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Format: //devtools/kokoro/config/proto/build.proto
16+
17+
timeout_mins: 300
18+
19+
# Configure the docker image for kokoro-trampoline.
20+
env_vars: {
21+
key: "TRAMPOLINE_IMAGE"
22+
value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
23+
}
24+
25+
# Download trampoline resources.
26+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
27+
28+
# Use the trampoline script to run in docker.
29+
build_file: "python-docs-samples/.kokoro/trampoline_v2.sh"
30+
31+
# Download secrets from Cloud Storage.
32+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
33+
34+
# Access btlr binaries used in the tests
35+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/btlr"
36+
37+
# Copy results for Resultstore
38+
action {
39+
define_artifacts {
40+
regex: "**/*sponge_log.xml"
41+
}
42+
}
43+
44+
# Specify which tests to run
45+
env_vars: {
46+
key: "RUN_TESTS_SESSION"
47+
value: "py-3.12"
48+
}
49+
50+
# Declare build specific Cloud project. It still uses the common one,
51+
# but we'll update the value once we have more Cloud projects.
52+
env_vars: {
53+
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
54+
value: "python-docs-samples-tests-312"
55+
}
56+
57+
# Number of test workers.
58+
env_vars: {
59+
key: "NUM_TEST_WORKERS"
60+
value: "10"
61+
}
Collapse file

‎.kokoro/python3.12/continuous.cfg‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Format: //devtools/kokoro/config/proto/build.proto
16+
17+
# Tell the trampoline which build file to use.
18+
env_vars: {
19+
key: "TRAMPOLINE_BUILD_FILE"
20+
value: ".kokoro/tests/run_tests_diff_head.sh"
21+
}
Collapse file

‎.kokoro/python3.12/periodic.cfg‎

Copy file name to clipboard
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Format: //devtools/kokoro/config/proto/build.proto
16+
17+
# Tell the trampoline which build file to use.
18+
env_vars: {
19+
key: "TRAMPOLINE_BUILD_FILE"
20+
value: ".kokoro/tests/run_tests.sh"
21+
}
22+
23+
env_vars: {
24+
key: "REPORT_TO_BUILD_COP_BOT"
25+
value: "true"
26+
}
27+
28+
# Tell Trampoline to upload the Docker image after successfull build.
29+
env_vars: {
30+
key: "TRAMPOLINE_IMAGE_UPLOAD"
31+
value: "true"
32+
}
Collapse file

‎.kokoro/python3.12/presubmit.cfg‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Format: //devtools/kokoro/config/proto/build.proto
16+
17+
# Tell the trampoline which build file to use.
18+
env_vars: {
19+
key: "TRAMPOLINE_BUILD_FILE"
20+
value: ".kokoro/tests/run_tests_diff_main.sh"
21+
}
Collapse file

‎AUTHORING_GUIDE.md‎

Copy file name to clipboardExpand all lines: AUTHORING_GUIDE.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ Add the new environment variables to the `envs` dictionary.
923923
```py
924924
TEST_CONFIG_OVERRIDE = {
925925
# You can opt out from the test for specific Python versions.
926-
"ignored_versions": ["2.7", "3.7", "3.9", "3.10"],
926+
"ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.11"],
927927
# Old samples are opted out of enforcing Python type hints
928928
# All new samples should feature them
929929
"enforce_type_hints": True,
Collapse file

‎appengine/flexible/django_cloudsql/noxfile_config.py‎

Copy file name to clipboardExpand all lines: appengine/flexible/django_cloudsql/noxfile_config.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7", "3.9", "3.10"],
25+
"ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.12"],
2626
# An envvar key for determining the project id to use. Change it
2727
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
2828
# build specific Cloud project. You can also use your own string
Collapse file

‎appengine/standard/noxfile-template.py‎

Copy file name to clipboardExpand all lines: appengine/standard/noxfile-template.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
TEST_CONFIG = {
3939
# You can opt out from the test for specific Python versions.
40-
"ignored_versions": ["2.7", "3.7", "3.9", "3.10"],
40+
"ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.12"],
4141
# An envvar key for determining the project id to use. Change it
4242
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
4343
# build specific Cloud project. You can also use your own string
@@ -79,10 +79,10 @@ def get_pytest_env_vars():
7979

8080
# DO NOT EDIT - automatically generated.
8181
# All versions used to tested samples.
82-
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
82+
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
8383

8484
# Any default versions that should be ignored.
85-
IGNORED_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
85+
IGNORED_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
8686

8787
TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS])
8888

Collapse file

‎appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py‎

Copy file name to clipboardExpand all lines: appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7", "3.9", "3.10"],
25+
"ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.12"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
2828
"enforce_type_hints": False,
Collapse file

‎appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py‎

Copy file name to clipboardExpand all lines: appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7", "3.9", "3.10"],
25+
"ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.12"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
2828
"enforce_type_hints": False,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.