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/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) 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"