Skip to content

Commit cd21df1

Browse files
chore: drop mention of Python 2.7 from templates (#877)
Source-Link: googleapis/synthtool@facee4c Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:9743664022bd63a8084be67f144898314c7ca12f0a03e422ac17c733c129d803 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e3704c3 commit cd21df1

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.github/.OwlBot.lock.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/repo-automation-bots/owlbot-python:latest
3-
digest: sha256:50e35228649c47b6ca82aa0be3ff9eb2afce51c82b66c4a03fe4afeb5ff6c0fc
3+
digest: sha256:9743664022bd63a8084be67f144898314c7ca12f0a03e422ac17c733c129d803

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
# directories to ignore when looking for source files.
111111
exclude_patterns = [
112112
"_build",
113+
"**/.nox/**/*",
113114
"samples/AUTHORING_GUIDE.md",
114115
"samples/CONTRIBUTING.md",
115116
"samples/snippets/README.rst",

samples/geography/noxfile.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
TEST_CONFIG = {
4141
# You can opt out from the test for specific Python versions.
42-
"ignored_versions": ["2.7"],
42+
"ignored_versions": [],
4343
# Old samples are opted out of enforcing Python type hints
4444
# All new samples should feature them
4545
"enforce_type_hints": False,
@@ -86,8 +86,8 @@ def get_pytest_env_vars() -> Dict[str, str]:
8686

8787

8888
# DO NOT EDIT - automatically generated.
89-
# All versions used to tested samples.
90-
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9"]
89+
# All versions used to test samples.
90+
ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
9191

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

samples/snippets/noxfile.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
TEST_CONFIG = {
4141
# You can opt out from the test for specific Python versions.
42-
"ignored_versions": ["2.7"],
42+
"ignored_versions": [],
4343
# Old samples are opted out of enforcing Python type hints
4444
# All new samples should feature them
4545
"enforce_type_hints": False,
@@ -86,8 +86,8 @@ def get_pytest_env_vars() -> Dict[str, str]:
8686

8787

8888
# DO NOT EDIT - automatically generated.
89-
# All versions used to tested samples.
90-
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9"]
89+
# All versions used to test samples.
90+
ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
9191

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

scripts/readme-gen/templates/install_deps.tmpl.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Install Dependencies
1212
.. _Python Development Environment Setup Guide:
1313
https://cloud.google.com/python/setup
1414

15-
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
15+
#. Create a virtualenv. Samples are compatible with Python 3.6+.
1616

1717
.. code-block:: bash
1818

0 commit comments

Comments
 (0)