Skip to content

Commit 75ef9ac

Browse files
fix: Ensure repo install (#741)
* Sets cache support to false, removes upper req limit * fix: adds logic to ensure repo installation * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * edits to owlbot to ensure that changes persist * more edits to owlbot to ensure that changes persist * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0780b37 commit 75ef9ac

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

owlbot.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
# dependency of grpc''',
9595
)
9696

97+
98+
9799
def place_before(path, text, *before_text, escape=None):
98100
replacement = "\n".join(before_text) + "\n" + text
99101
if escape:
@@ -211,6 +213,17 @@ def compliance(session):
211213

212214
python.py_samples(skip_readmes=True)
213215

216+
s.replace(
217+
["./samples/snippets/noxfile.py"],
218+
"""session.install\("-e", _get_repo_root\(\)\)""",
219+
"""session.install("-e", _get_repo_root())
220+
else:
221+
# ensure that sqlalchemy_bigquery gets installed
222+
# for tests that are not based on source
223+
session.install("sqlalchemy_bigquery")""",
224+
)
225+
226+
214227
# ----------------------------------------------------------------------------
215228
# Final cleanup
216229
# ----------------------------------------------------------------------------

samples/snippets/noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ def _session_tests(
220220

221221
if INSTALL_LIBRARY_FROM_SOURCE:
222222
session.install("-e", _get_repo_root())
223+
else:
224+
# ensure that sqlalchemy_bigquery gets installed
225+
# for tests that are not based on source
226+
session.install("sqlalchemy_bigquery")
223227

224228
if post_install:
225229
post_install(session)

0 commit comments

Comments
 (0)