Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit b85e561

Browse files
chore: new owl bot post processor docker image (#151)
gcr.io/repo-automation-bots/owlbot-python:latest@sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479
1 parent a4deeb7 commit b85e561

9 files changed

Lines changed: 51 additions & 9 deletions

File tree

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
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:4c981a6b6f2b8914a448d7b3a01688365be03e3ed26dfee399a6aa77fb112eaa
3+
digest: sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479

owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@
120120
python.py_samples(skip_readmes=True)
121121

122122
# TODO(busunkim): Use latest sphinx after microgenerator transition
123-
s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"')
123+
s.replace("noxfile.py", """['"]sphinx==4.0.1['"]""", '"sphinx<3.0.0"')
124124

125125
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

samples/snippets/crop_hints/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
# to use your own Cloud project.
5151
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
5252
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
53-
53+
# If you need to use a specific version of pip,
54+
# change pip_version_override to the string representation
55+
# of the version number, for example, "20.2.4"
56+
"pip_version_override": None,
5457
# A dictionary you want to inject into your test. Don't put any
5558
# secrets here. These values will override predefined values.
5659
'envs': {},
@@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None:
170173

171174

172175
def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None:
176+
if TEST_CONFIG["pip_version_override"]:
177+
pip_version = TEST_CONFIG["pip_version_override"]
178+
session.install(f"pip=={pip_version}")
173179
"""Runs py.test for a particular project."""
174180
if os.path.exists("requirements.txt"):
175181
if os.path.exists("constraints.txt"):

samples/snippets/detect/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
# to use your own Cloud project.
5151
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
5252
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
53-
53+
# If you need to use a specific version of pip,
54+
# change pip_version_override to the string representation
55+
# of the version number, for example, "20.2.4"
56+
"pip_version_override": None,
5457
# A dictionary you want to inject into your test. Don't put any
5558
# secrets here. These values will override predefined values.
5659
'envs': {},
@@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None:
170173

171174

172175
def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None:
176+
if TEST_CONFIG["pip_version_override"]:
177+
pip_version = TEST_CONFIG["pip_version_override"]
178+
session.install(f"pip=={pip_version}")
173179
"""Runs py.test for a particular project."""
174180
if os.path.exists("requirements.txt"):
175181
if os.path.exists("constraints.txt"):

samples/snippets/document_text/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
# to use your own Cloud project.
5151
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
5252
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
53-
53+
# If you need to use a specific version of pip,
54+
# change pip_version_override to the string representation
55+
# of the version number, for example, "20.2.4"
56+
"pip_version_override": None,
5457
# A dictionary you want to inject into your test. Don't put any
5558
# secrets here. These values will override predefined values.
5659
'envs': {},
@@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None:
170173

171174

172175
def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None:
176+
if TEST_CONFIG["pip_version_override"]:
177+
pip_version = TEST_CONFIG["pip_version_override"]
178+
session.install(f"pip=={pip_version}")
173179
"""Runs py.test for a particular project."""
174180
if os.path.exists("requirements.txt"):
175181
if os.path.exists("constraints.txt"):

samples/snippets/face_detection/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
# to use your own Cloud project.
5151
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
5252
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
53-
53+
# If you need to use a specific version of pip,
54+
# change pip_version_override to the string representation
55+
# of the version number, for example, "20.2.4"
56+
"pip_version_override": None,
5457
# A dictionary you want to inject into your test. Don't put any
5558
# secrets here. These values will override predefined values.
5659
'envs': {},
@@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None:
170173

171174

172175
def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None:
176+
if TEST_CONFIG["pip_version_override"]:
177+
pip_version = TEST_CONFIG["pip_version_override"]
178+
session.install(f"pip=={pip_version}")
173179
"""Runs py.test for a particular project."""
174180
if os.path.exists("requirements.txt"):
175181
if os.path.exists("constraints.txt"):

samples/snippets/product_search/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
# to use your own Cloud project.
5151
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
5252
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
53-
53+
# If you need to use a specific version of pip,
54+
# change pip_version_override to the string representation
55+
# of the version number, for example, "20.2.4"
56+
"pip_version_override": None,
5457
# A dictionary you want to inject into your test. Don't put any
5558
# secrets here. These values will override predefined values.
5659
'envs': {},
@@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None:
170173

171174

172175
def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None:
176+
if TEST_CONFIG["pip_version_override"]:
177+
pip_version = TEST_CONFIG["pip_version_override"]
178+
session.install(f"pip=={pip_version}")
173179
"""Runs py.test for a particular project."""
174180
if os.path.exists("requirements.txt"):
175181
if os.path.exists("constraints.txt"):

samples/snippets/quickstart/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
# to use your own Cloud project.
5151
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
5252
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
53-
53+
# If you need to use a specific version of pip,
54+
# change pip_version_override to the string representation
55+
# of the version number, for example, "20.2.4"
56+
"pip_version_override": None,
5457
# A dictionary you want to inject into your test. Don't put any
5558
# secrets here. These values will override predefined values.
5659
'envs': {},
@@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None:
170173

171174

172175
def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None:
176+
if TEST_CONFIG["pip_version_override"]:
177+
pip_version = TEST_CONFIG["pip_version_override"]
178+
session.install(f"pip=={pip_version}")
173179
"""Runs py.test for a particular project."""
174180
if os.path.exists("requirements.txt"):
175181
if os.path.exists("constraints.txt"):

samples/snippets/web/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
# to use your own Cloud project.
5151
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
5252
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
53-
53+
# If you need to use a specific version of pip,
54+
# change pip_version_override to the string representation
55+
# of the version number, for example, "20.2.4"
56+
"pip_version_override": None,
5457
# A dictionary you want to inject into your test. Don't put any
5558
# secrets here. These values will override predefined values.
5659
'envs': {},
@@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None:
170173

171174

172175
def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None:
176+
if TEST_CONFIG["pip_version_override"]:
177+
pip_version = TEST_CONFIG["pip_version_override"]
178+
session.install(f"pip=={pip_version}")
173179
"""Runs py.test for a particular project."""
174180
if os.path.exists("requirements.txt"):
175181
if os.path.exists("constraints.txt"):

0 commit comments

Comments
 (0)