Skip to content

Commit 88bbe47

Browse files
authored
Skip IoT tests, add deprecation notice to readme (GoogleCloudPlatform#9498)
1 parent c3fde0d commit 88bbe47

6 files changed

Lines changed: 224 additions & 0 deletions

File tree

iot/api-client/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Cloud IoT Core Python Samples
22

3+
## DEPRECATION NOTICE
4+
5+
Please see the [release notes](https://cloud.google.com/iot/docs/release-notes) for information on the upcoming deprecation of IoT Core
6+
37
[![Open in Cloud Shell][shell_img]][shell_link]
48

59
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright 2021 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+
# Default TEST_CONFIG_OVERRIDE for python repos.
16+
17+
# You can copy this file into your directory, then it will be imported from
18+
# the noxfile.py.
19+
20+
# The source of truth:
21+
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
22+
23+
TEST_CONFIG_OVERRIDE = {
24+
# You can opt out from the test for specific Python versions.
25+
# Disable all tests, IoT core is being deprecated in August 2023
26+
# and these samples will be removed
27+
"ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"],
28+
# Old samples are opted out of enforcing Python type hints
29+
# All new samples should feature them
30+
"enforce_type_hints": False,
31+
# An envvar key for determining the project id to use. Change it
32+
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
33+
# build specific Cloud project. You can also use your own string
34+
# to use your own Cloud project.
35+
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
36+
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
37+
# If you need to use a specific version of pip,
38+
# change pip_version_override to the string representation
39+
# of the version number, for example, "20.2.4"
40+
"pip_version_override": None,
41+
# A dictionary you want to inject into your test. Don't put any
42+
# secrets here. These values will override predefined values.
43+
"envs": {},
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright 2021 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+
# Default TEST_CONFIG_OVERRIDE for python repos.
16+
17+
# You can copy this file into your directory, then it will be imported from
18+
# the noxfile.py.
19+
20+
# The source of truth:
21+
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
22+
23+
TEST_CONFIG_OVERRIDE = {
24+
# You can opt out from the test for specific Python versions.
25+
# Disable all tests, IoT core is being deprecated in August 2023
26+
# and these samples will be removed
27+
"ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"],
28+
# Old samples are opted out of enforcing Python type hints
29+
# All new samples should feature them
30+
"enforce_type_hints": False,
31+
# An envvar key for determining the project id to use. Change it
32+
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
33+
# build specific Cloud project. You can also use your own string
34+
# to use your own Cloud project.
35+
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
36+
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
37+
# If you need to use a specific version of pip,
38+
# change pip_version_override to the string representation
39+
# of the version number, for example, "20.2.4"
40+
"pip_version_override": None,
41+
# A dictionary you want to inject into your test. Don't put any
42+
# secrets here. These values will override predefined values.
43+
"envs": {},
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright 2021 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+
# Default TEST_CONFIG_OVERRIDE for python repos.
16+
17+
# You can copy this file into your directory, then it will be imported from
18+
# the noxfile.py.
19+
20+
# The source of truth:
21+
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
22+
23+
TEST_CONFIG_OVERRIDE = {
24+
# You can opt out from the test for specific Python versions.
25+
# Disable all tests, IoT core is being deprecated in August 2023
26+
# and these samples will be removed
27+
"ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"],
28+
# Old samples are opted out of enforcing Python type hints
29+
# All new samples should feature them
30+
"enforce_type_hints": False,
31+
# An envvar key for determining the project id to use. Change it
32+
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
33+
# build specific Cloud project. You can also use your own string
34+
# to use your own Cloud project.
35+
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
36+
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
37+
# If you need to use a specific version of pip,
38+
# change pip_version_override to the string representation
39+
# of the version number, for example, "20.2.4"
40+
"pip_version_override": None,
41+
# A dictionary you want to inject into your test. Don't put any
42+
# secrets here. These values will override predefined values.
43+
"envs": {},
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright 2021 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+
# Default TEST_CONFIG_OVERRIDE for python repos.
16+
17+
# You can copy this file into your directory, then it will be imported from
18+
# the noxfile.py.
19+
20+
# The source of truth:
21+
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
22+
23+
TEST_CONFIG_OVERRIDE = {
24+
# You can opt out from the test for specific Python versions.
25+
# Disable all tests, IoT core is being deprecated in August 2023
26+
# and these samples will be removed
27+
"ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"],
28+
# Old samples are opted out of enforcing Python type hints
29+
# All new samples should feature them
30+
"enforce_type_hints": False,
31+
# An envvar key for determining the project id to use. Change it
32+
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
33+
# build specific Cloud project. You can also use your own string
34+
# to use your own Cloud project.
35+
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
36+
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
37+
# If you need to use a specific version of pip,
38+
# change pip_version_override to the string representation
39+
# of the version number, for example, "20.2.4"
40+
"pip_version_override": None,
41+
# A dictionary you want to inject into your test. Don't put any
42+
# secrets here. These values will override predefined values.
43+
"envs": {},
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright 2021 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+
# Default TEST_CONFIG_OVERRIDE for python repos.
16+
17+
# You can copy this file into your directory, then it will be imported from
18+
# the noxfile.py.
19+
20+
# The source of truth:
21+
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
22+
23+
TEST_CONFIG_OVERRIDE = {
24+
# You can opt out from the test for specific Python versions.
25+
# Disable all tests, IoT core is being deprecated in August 2023
26+
# and these samples will be removed
27+
"ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"],
28+
# Old samples are opted out of enforcing Python type hints
29+
# All new samples should feature them
30+
"enforce_type_hints": False,
31+
# An envvar key for determining the project id to use. Change it
32+
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
33+
# build specific Cloud project. You can also use your own string
34+
# to use your own Cloud project.
35+
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
36+
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
37+
# If you need to use a specific version of pip,
38+
# change pip_version_override to the string representation
39+
# of the version number, for example, "20.2.4"
40+
"pip_version_override": None,
41+
# A dictionary you want to inject into your test. Don't put any
42+
# secrets here. These values will override predefined values.
43+
"envs": {},
44+
}

0 commit comments

Comments
 (0)