8000 chore: update owlbot script to prevent silent failures at s.replace by chelsea-lin · Pull Request #889 · googleapis/python-bigquery-dataframes · GitHub
[go: up one dir, main page]

Skip to content
Merged
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
17 changes: 5 additions & 12 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# ----------------------------------------------------------------------------

# Encourage sharring all relevant versions in bug reports.
s.replace(
assert 1 == s.replace(
[".github/ISSUE_TEMPLATE/bug_report.md"],
re.escape("#### Steps to reproduce\n"),
textwrap.dedent(
Expand Down Expand Up @@ -90,23 +90,23 @@
)

# Make sure build includes all necessary files.
s.replace(
assert 1 == s.replace(
["MANIFEST.in"],
re.escape("recursive-include google"),
"recursive-include third_party/bigframes_vendored *\nrecursive-include bigframes",
)

# Even though BigQuery DataFrames isn't technically a client library, we are
# opting into Cloud RAD for docs hosting.
s.replace(
assert 1 == s.replace(
[".kokoro/docs/common.cfg"],
re.escape('value: "docs-staging-v2-staging"'),
'value: "docs-staging-v2"',
)

# Use a custom table of contents since the default one isn't organized well
# enough for the number of classes we have.
s.replace(
assert 1 == s.replace(
[".kokoro/publish-docs.sh"],
(
re.escape("# upload docs")
Expand All @@ -124,19 +124,12 @@
)

# Fixup the documentation.
s.replace(
assert 1 == s.replace(
["docs/conf.py"],
re.escape("Google Cloud Client Libraries for bigframes"),
"BigQuery DataFrames provides DataFrame APIs on the BigQuery engine",
)

# Update the contributing guide to reflect some differences in this repo.
s.replace(
["CONTRIBUTING.rst"],
re.escape("blacken"),
"format",
)

# ----------------------------------------------------------------------------
# Samples templates
# ----------------------------------------------------------------------------
Expand Down
0