Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fd6d21

Browse files
gcf-owl-bot[bot]parthea
authored andcommitted
chore: new owl bot post processor docker image (#202)
gcr.io/repo-automation-bots/owlbot-python:latest@sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479
1 parent c0f5162 commit 4fd6d21

File tree

7 files changed

+32
-9
lines changed

7 files changed

+32
-9
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
docker:
2-
digest: sha256:4c981a6b6f2b8914a448d7b3a01688365be03e3ed26dfee399a6aa77fb112eaa
3-
image: gcr.io/repo-automation-bots/owlbot-python:latest
4-
2+
image: gcr.io/repo-automation-bots/owlbot-python:latest
3+
digest: sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/types/arrow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ArrowSchema(proto.Message):
4040

4141
class ArrowRecordBatch(proto.Message):
4242
r"""Arrow RecordBatch.
43+
4344
Attributes:
4445
serialized_record_batch (bytes):
4546
IPC-serialized Arrow RecordBatch.
@@ -53,6 +54,7 @@ class ArrowRecordBatch(proto.Message):
5354

5455
class ArrowSerializationOptions(proto.Message):
5556
r"""Contains options specific to Arrow Serialization.
57+
5658
Attributes:
5759
buffer_compression (google.cloud.bigquery_storage_v1.types.ArrowSerializationOptions.CompressionCodec):
5860
The compression codec to use for Arrow

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1beta2/types/arrow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ArrowSchema(proto.Message):
4040

4141
class ArrowRecordBatch(proto.Message):
4242
r"""Arrow RecordBatch.
43+
4344
Attributes:
4445
serialized_record_batch (bytes):
4546
IPC-serialized Arrow RecordBatch.
@@ -50,6 +51,7 @@ class ArrowRecordBatch(proto.Message):
5051

5152
class ArrowSerializationOptions(proto.Message):
5253
r"""Contains options specific to Arrow Serialization.
54+
5355
Attributes:
5456
format_ (google.cloud.bigquery_storage_v1beta2.types.ArrowSerializationOptions.Format):
5557
The Arrow IPC format to use.

packages/google-cloud-bigquery-storage/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def docs(session):
186186
"""Build the docs for this library."""
187187

188188
session.install("-e", ".")
189-
session.install("sphinx<3.0.0", "alabaster", "recommonmark")
189+
session.install("sphinx==4.0.1", "alabaster", "recommonmark")
190190

191191
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
192192
session.run(
@@ -209,7 +209,7 @@ def docfx(session):
209209

210210
session.install("-e", ".")
211211
session.install(
212-
"sphinx<3.0.0", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
212+
"sphinx==4.0.1", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
213213
)
214214

215215
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)

packages/google-cloud-bigquery-storage/owlbot.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
default_version = "v1"
2626

2727
for library in s.get_staging_dirs(default_version):
28+
# Work around gapic generator bug https://github.com/googleapis/gapic-generator-python/issues/902
29+
s.replace(library / f"google/cloud/bigquery_storage_{library.name}/types/arrow.py",
30+
r""".
31+
Attributes:""",
32+
r""".\n
33+
Attributes:""",
34+
)
35+
2836
# We don't want the generated client to be accessible through
2937
# "google.cloud.bigquery_storage", replace it with the hand written client that
3038
# wraps it.
@@ -140,7 +148,5 @@
140148

141149
python.py_samples(skip_readmes=True)
142150

143-
# TODO(busunkim): Use latest sphinx after microgenerator transition
144-
s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"')
145151

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

packages/google-cloud-bigquery-storage/samples/quickstart/noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
# to use your own Cloud project.
4949
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
5050
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
51+
# If you need to use a specific version of pip,
52+
# change pip_version_override to the string representation
53+
# of the version number, for example, "20.2.4"
54+
"pip_version_override": None,
5155
# A dictionary you want to inject into your test. Don't put any
5256
# secrets here. These values will override predefined values.
5357
"envs": {},
@@ -172,6 +176,9 @@ def blacken(session: nox.sessions.Session) -> None:
172176
def _session_tests(
173177
session: nox.sessions.Session, post_install: Callable = None
174178
) -> None:
179+
if TEST_CONFIG["pip_version_override"]:
180+
pip_version = TEST_CONFIG["pip_version_override"]
181+
session.install(f"pip=={pip_version}")
175182
"""Runs py.test for a particular project."""
176183
if os.path.exists("requirements.txt"):
177184
if os.path.exists("constraints.txt"):
@@ -198,7 +205,7 @@ def _session_tests(
198205
# on travis where slow and flaky tests are excluded.
199206
# See http://doc.pytest.org/en/latest/_modules/_pytest/main.html
200207
success_codes=[0, 5],
201-
env=get_pytest_env_vars()
208+
env=get_pytest_env_vars(),
202209
)
203210

204211

packages/google-cloud-bigquery-storage/samples/to_dataframe/noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
# to use your own Cloud project.
4949
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
5050
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
51+
# If you need to use a specific version of pip,
52+
# change pip_version_override to the string representation
53+
# of the version number, for example, "20.2.4"
54+
"pip_version_override": None,
5155
# A dictionary you want to inject into your test. Don't put any
5256
# secrets here. These values will override predefined values.
5357
"envs": {},
@@ -172,6 +176,9 @@ def blacken(session: nox.sessions.Session) -> None:
172176
def _session_tests(
173177
session: nox.sessions.Session, post_install: Callable = None
174178
) -> None:
179+
if TEST_CONFIG["pip_version_override"]:
180+
pip_version = TEST_CONFIG["pip_version_override"]
181+
session.install(f"pip=={pip_version}")
175182
"""Runs py.test for a particular project."""
176183
if os.path.exists("requirements.txt"):
177184
if os.path.exists("constraints.txt"):
@@ -198,7 +205,7 @@ def _session_tests(
198205
# on travis where slow and flaky tests are excluded.
199206
# See http://doc.pytest.org/en/latest/_modules/_pytest/main.html
200207
success_codes=[0, 5],
201-
env=get_pytest_env_vars()
208+
env=get_pytest_env_vars(),
202209
)
203210

204211

0 commit comments

Comments
 (0)