Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .kokoro/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ RUN set -ex \
&& export GNUPGHOME="$(mktemp -d)" \
&& echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" \
&& /tmp/fetch_gpg_keys.sh \
&& for PYTHON_VERSION in 2.7.18 3.7.16 3.8.16 3.9.16 3.10.9 3.11.1; do \
&& for PYTHON_VERSION in 2.7.18 3.7.12 3.8.13 3.9.13 3.10.5 3.11.1; do \
wget --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
&& wget --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
&& gpg --batch --verify python-${PYTHON_VERSION}.tar.xz.asc python-${PYTHON_VERSION}.tar.xz \
Expand Down
66 changes: 0 additions & 66 deletions .kokoro/python3.11/common.cfg

This file was deleted.

21 changes: 0 additions & 21 deletions .kokoro/python3.11/continuous.cfg

This file was deleted.

32 changes: 0 additions & 32 deletions .kokoro/python3.11/periodic.cfg

This file was deleted.

21 changes: 0 additions & 21 deletions .kokoro/python3.11/presubmit.cfg

This file was deleted.

20 changes: 8 additions & 12 deletions MAC_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,21 @@ test their code.
```console
$ pyenv install 3.6.13
```
* 3.7.16 (latest 3.7.x release)
* 3.7.13 (latest 3.7.x release)
```console
$ pyenv install 3.7.16
$ pyenv install 3.7.13
```
* 3.8.16 (latest 3.8.x release)
* 3.8.13 (latest 3.8.x release)
```console
$ pyenv install 3.8.16
$ pyenv install 3.8.13
```
* 3.9.16 (latest 3.9.x release)
* 3.9.12 (latest 3.9.x release)
```console
$ pyenv install 3.9.16
$ pyenv install 3.9.12
```
* 3.10.9 (latest 3.10.x release)
* 3.10.4 (latest 3.10.x release)
```console
$ pyenv install 3.10.9
```
* 3.11.1 (latest 3.11.x release)
```console
$ pyenv install 3.11.1
$ pyenv install 3.10.4
```

> ℹ️ *Note*: If you are using an M1 Mac,
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Python samples for [Google Cloud Platform products][cloud].

[![Build Status][py-2.7-shield]][py-2.7-link] [![Build Status][py-3.7-shield]][py-3.7-link] [![Build Status][py-3.8-shield]][py-3.8-link] [![Build Status][py-3.9-shield]][py-3.9-link] [![Build Status][py-3.10-shield]][py-3.10-link] [![Build Status][py-3.11-shield]][py-3.11-link]
[![Build Status][py-2.7-shield]][py-2.7-link] [![Build Status][py-3.7-shield]][py-3.7-link] [![Build Status][py-3.8-shield]][py-3.8-link] [![Build Status][py-3.9-shield]][py-3.9-link] [![Build Status][py-3.10-shield]][py-3.10-link]

## Google Cloud Samples

Expand Down Expand Up @@ -77,5 +77,3 @@ Contributions welcome! See the [Contributing Guide](CONTRIBUTING.md).
[py-3.9-link]: https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.9.html
[py-3.10-shield]: https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-310.svg
[py-3.10-link]: https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.10.html
[py-3.11-shield]: https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-311.svg
[py-3.11-link]: https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.11.html
2 changes: 1 addition & 1 deletion appengine/flexible/django_cloudsql/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Django==4.0.4; python_version >= '3.8'
Django==3.2.14; python_version < '3.8'
gunicorn==20.1.0
psycopg2-binary==2.9.5
psycopg2-binary==2.9.4
django-environ==0.9.0
google-cloud-secret-manager==2.12.0
django-storages[google]==1.13
2 changes: 1 addition & 1 deletion appengine/flexible/scipy/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7", "3.6", "3.11"],
"ignored_versions": ["2.7", "3.6"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/scipy/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ imageio==2.14.0
numpy==1.22.0; python_version > "3.7"
numpy==1.21.4; python_version <= "3.7"
pillow==9.2.0
scipy==1.10.0; python_version > "3.7"
scipy==1.8.0; python_version > "3.7"
scipy==1.7.3; python_version <= "3.7"
4 changes: 2 additions & 2 deletions appengine/standard/noxfile-template.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def get_pytest_env_vars():

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

# Any default versions that should be ignored.
IGNORED_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
IGNORED_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]

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

Expand Down
2 changes: 1 addition & 1 deletion appengine/standard_python3/bigquery/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
# There's no google-cloud-bigquery package for Python 3.9.
"ignored_versions": ["2.7", "3.6", "3.9", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.9"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7", "3.6", "3.10", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.10"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion appengine/standard_python3/cloudsql/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flask==2.1.0
# psycopg2==2.8.4
psycopg2-binary==2.9.5 # you will need either the binary or the regular - for more info see http://initd.org/psycopg/docs/install.html
psycopg2-binary==2.9.4 # you will need either the binary or the regular - for more info see http://initd.org/psycopg/docs/install.html
PyMySQL==1.0.2
SQLAlchemy==1.4.38
2 changes: 1 addition & 1 deletion appengine/standard_python3/django/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Django==4.0.4; python_version >= '3.8'
Django==3.2.14; python_version < '3.8'
django-environ==0.9.0
psycopg2-binary==2.9.5
psycopg2-binary==2.9.4
google-cloud-secret-manager==2.12.0
2 changes: 1 addition & 1 deletion bigquery/bqml/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
# Skipping for Python 3.9 due to pyarrow compilation failure.
"ignored_versions": ["2.7", "3.6", "3.9", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.9"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion bigquery/datalab-migration/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
# Skipping 3.6 and 3.7 to avoid needing a vulnerable version of IPython
"ignored_versions": ["2.7", "3.6", "3.7", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.7"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion bigquery/pandas-gbq-migration/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
# Skipping for Python 3.9 due to pyarrow compilation failure.
"ignored_versions": ["2.7", "3.6", "3.9", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.9"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/mysql/client-side-encryption/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7", "3.6", "3.10", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.10"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7", "3.6", "3.10", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.10"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7", "3.6", "3.10", "3.11"],
"ignored_versions": ["2.7", "3.6", "3.10"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion composer/2022_airflow_summit/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ prompt-toolkit==3.0.30
proto-plus==1.19.6
protobuf==3.20.0
psutil==5.9.1
psycopg2-binary==2.9.5
psycopg2-binary==2.9.3
ptyprocess==0.7.0
pure-eval==0.2.2
pure-sasl==0.6.2
Expand Down
2 changes: 1 addition & 1 deletion composer/2022_airflow_summit/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
'ignored_versions': ["2.7", "3.6", "3.7", "3.9", "3.10", "3.11"], # Composer w/ Airflow 2 only supports Python 3.8
'ignored_versions': ["2.7", "3.6", "3.7", "3.9", "3.10"], # Composer w/ Airflow 2 only supports Python 3.8
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion composer/airflow_1_samples/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
# Skipping for Python 3.9 due to numpy compilation failure.
"ignored_versions": ["2.7", "3.9", "3.10", "3.11"],
"ignored_versions": ["2.7", "3.9", "3.10"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ prompt-toolkit==3.0.30
proto-plus==1.19.6
protobuf==3.20.0
psutil==5.9.1
psycopg2-binary==2.9.5
psycopg2-binary==2.9.3
ptyprocess==0.7.0
pure-eval==0.2.2
pure-sasl==0.6.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"3.6",
"3.7",
"3.9",
"3.10",
"3.11",
"3.10"
], # Composer w/ Airflow 2 only supports Python 3.8
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
# Skipping for Python 3.9 due to numpy compilation failure.
"ignored_versions": ["2.7", "3.9", "3.10", "3.11"],
"ignored_versions": ["2.7", "3.9", "3.10"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": False,
Expand Down
2 changes: 1 addition & 1 deletion composer/cicd_sample/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ prompt-toolkit==3.0.30
proto-plus==1.19.6
protobuf==3.20.0
psutil==5.9.1
psycopg2-binary==2.9.5
psycopg2-binary==2.9.3
ptyprocess==0.7.0
pure-eval==0.2.2
pure-sasl==0.6.2
Expand Down
1 change: 0 additions & 1 deletion composer/cicd_sample/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"3.7",
"3.9",
"3.10",
"3.11",
], # Composer w/ Airflow 2 only supports Python 3.8
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
Expand Down
Loading