From 75ef9ac9dc1e806f3b2ef34208156c1a311750bc Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Wed, 1 Feb 2023 13:11:56 -0500 Subject: [PATCH 1/2] fix: Ensure repo install (#741) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- owlbot.py | 13 +++++++++++++ samples/snippets/noxfile.py | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/owlbot.py b/owlbot.py index aac3da31..1ea90868 100644 --- a/owlbot.py +++ b/owlbot.py @@ -94,6 +94,8 @@ # dependency of grpc''', ) + + def place_before(path, text, *before_text, escape=None): replacement = "\n".join(before_text) + "\n" + text if escape: @@ -211,6 +213,17 @@ def compliance(session): python.py_samples(skip_readmes=True) +s.replace( + ["./samples/snippets/noxfile.py"], + """session.install\("-e", _get_repo_root\(\)\)""", + """session.install("-e", _get_repo_root()) + else: + # ensure that sqlalchemy_bigquery gets installed + # for tests that are not based on source + session.install("sqlalchemy_bigquery")""", +) + + # ---------------------------------------------------------------------------- # Final cleanup # ---------------------------------------------------------------------------- diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index 1224cbe2..fa4295e4 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -220,6 +220,10 @@ def _session_tests( if INSTALL_LIBRARY_FROM_SOURCE: session.install("-e", _get_repo_root()) + else: + # ensure that sqlalchemy_bigquery gets installed + # for tests that are not based on source + session.install("sqlalchemy_bigquery") if post_install: post_install(session) From a3b8a5f0bbea79b11d5390aef547cfd87bb5808c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 14:59:27 -0500 Subject: [PATCH 2/2] chore(main): release 1.6.1 (#742) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ sqlalchemy_bigquery/version.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e106db77..1a280f8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,13 @@ Older versions of this project were distributed as [pybigquery][0]. [2]: https://pypi.org/project/pybigquery/#history +## [1.6.1](https://github.com/googleapis/python-bigquery-sqlalchemy/compare/v1.6.0...v1.6.1) (2023-02-01) + + +### Bug Fixes + +* Ensure repo install ([#741](https://github.com/googleapis/python-bigquery-sqlalchemy/issues/741)) ([75ef9ac](https://github.com/googleapis/python-bigquery-sqlalchemy/commit/75ef9ac9dc1e806f3b2ef34208156c1a311750bc)) + ## [1.6.0](https://github.com/googleapis/python-bigquery-sqlalchemy/compare/v1.5.0...v1.6.0) (2023-01-30) diff --git a/sqlalchemy_bigquery/version.py b/sqlalchemy_bigquery/version.py index 3c438711..b47d6225 100644 --- a/sqlalchemy_bigquery/version.py +++ b/sqlalchemy_bigquery/version.py @@ -17,4 +17,4 @@ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__version__ = "1.6.0" +__version__ = "1.6.1"