From a61ab2670d26c82b4dca40b0d00d19dfe02e24a9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 17:52:18 +0200 Subject: [PATCH 1/4] chore(deps): update all dependencies (#356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [PyYAML](https://pyyaml.org/) ([source](https://togithub.com/yaml/pyyaml)) | `==5.4.1` -> `==6.0` | [![age](https://badges.renovateapi.com/packages/pypi/PyYAML/6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/PyYAML/6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/PyYAML/6.0/compatibility-slim/5.4.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/PyYAML/6.0/confidence-slim/5.4.1)](https://docs.renovatebot.com/merge-confidence/) | | [SQLAlchemy](https://www.sqlalchemy.org) ([changelog](https://docs.sqlalchemy.org/en/latest/changelog/)) | `==1.4.25` -> `==1.4.26` | [![age](https://badges.renovateapi.com/packages/pypi/SQLAlchemy/1.4.26/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/SQLAlchemy/1.4.26/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/SQLAlchemy/1.4.26/compatibility-slim/1.4.25)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/SQLAlchemy/1.4.26/confidence-slim/1.4.25)](https://docs.renovatebot.com/merge-confidence/) | | [Shapely](https://togithub.com/Toblerity/Shapely) | `==1.7.1` -> `==1.8.0` | [![age](https://badges.renovateapi.com/packages/pypi/Shapely/1.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/Shapely/1.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/Shapely/1.8.0/compatibility-slim/1.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/Shapely/1.8.0/confidence-slim/1.7.1)](https://docs.renovatebot.com/merge-confidence/) | | [cffi](http://cffi.readthedocs.org) | `==1.14.6` -> `==1.15.0` | [![age](https://badges.renovateapi.com/packages/pypi/cffi/1.15.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/cffi/1.15.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/cffi/1.15.0/compatibility-slim/1.14.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/cffi/1.15.0/confidence-slim/1.14.6)](https://docs.renovatebot.com/merge-confidence/) | | [google-api-core](https://togithub.com/googleapis/python-api-core) | `==2.1.0` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-api-core/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-api-core/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-api-core/2.1.1/compatibility-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-api-core/2.1.1/confidence-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | | [google-auth](https://togithub.com/googleapis/google-auth-library-python) | `==2.3.0` -> `==2.3.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.1/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.1/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | | [google-cloud-testutils](https://togithub.com/googleapis/python-test-utils) | `==1.1.0` -> `==1.2.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-testutils/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-testutils/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-testutils/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-testutils/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | | [google-resumable-media](https://togithub.com/googleapis/google-resumable-media-python) | `==2.0.3` -> `==2.1.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-resumable-media/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-resumable-media/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-resumable-media/2.1.0/compatibility-slim/2.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-resumable-media/2.1.0/confidence-slim/2.0.3)](https://docs.renovatebot.com/merge-confidence/) | | [grpcio](https://grpc.io) | `==1.41.0` -> `==1.41.1` | [![age](https://badges.renovateapi.com/packages/pypi/grpcio/1.41.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/grpcio/1.41.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/grpcio/1.41.1/compatibility-slim/1.41.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/grpcio/1.41.1/confidence-slim/1.41.0)](https://docs.renovatebot.com/merge-confidence/) | | [opentelemetry-api](https://togithub.com/open-telemetry/opentelemetry-python) | `==1.5.0` -> `==1.6.2` | [![age](https://badges.renovateapi.com/packages/pypi/opentelemetry-api/1.6.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/opentelemetry-api/1.6.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/opentelemetry-api/1.6.2/compatibility-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/opentelemetry-api/1.6.2/confidence-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | | [opentelemetry-sdk](https://togithub.com/open-telemetry/opentelemetry-python) | `==1.5.0` -> `==1.6.2` | [![age](https://badges.renovateapi.com/packages/pypi/opentelemetry-sdk/1.6.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/opentelemetry-sdk/1.6.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/opentelemetry-sdk/1.6.2/compatibility-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/opentelemetry-sdk/1.6.2/confidence-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | | [proto-plus](https://togithub.com/googleapis/proto-plus-python) | `==1.19.5` -> `==1.19.6` | [![age](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.6/compatibility-slim/1.19.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.6/confidence-slim/1.19.5)](https://docs.renovatebot.com/merge-confidence/) | | [protobuf](https://developers.google.com/protocol-buffers/) | `==3.18.1` -> `==3.19.0` | [![age](https://badges.renovateapi.com/packages/pypi/protobuf/3.19.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/protobuf/3.19.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/protobuf/3.19.0/compatibility-slim/3.18.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/protobuf/3.19.0/confidence-slim/3.18.1)](https://docs.renovatebot.com/merge-confidence/) | | [pyparsing](https://togithub.com/pyparsing/pyparsing) | `==2.4.7` -> `==3.0.1` | [![age](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.1/compatibility-slim/2.4.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.1/confidence-slim/2.4.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
yaml/pyyaml ### [`v6.0`](https://togithub.com/yaml/pyyaml/compare/5.4.1...6.0) [Compare Source](https://togithub.com/yaml/pyyaml/compare/5.4.1...6.0)
Toblerity/Shapely ### [`v1.8.0`](https://togithub.com/Toblerity/Shapely/blob/master/CHANGES.txt#​180-2021-10-25) [Compare Source](https://togithub.com/Toblerity/Shapely/compare/1.7.1...1.8.0) This is the final 1.8.0 release. There have been no changes since 1.8rc2.
googleapis/python-api-core ### [`v2.1.1`](https://togithub.com/googleapis/python-api-core/blob/master/CHANGELOG.md#​211-httpswwwgithubcomgoogleapispython-api-corecomparev210v211-2021-10-13) [Compare Source](https://togithub.com/googleapis/python-api-core/compare/v2.1.0...v2.1.1)
googleapis/google-auth-library-python ### [`v2.3.1`](https://togithub.com/googleapis/google-auth-library-python/blob/master/CHANGELOG.md#​231-httpswwwgithubcomgoogleapisgoogle-auth-library-pythoncomparev230v231-2021-10-21) [Compare Source](https://togithub.com/googleapis/google-auth-library-python/compare/v2.3.0...v2.3.1)
googleapis/python-test-utils ### [`v1.2.0`](https://togithub.com/googleapis/python-test-utils/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapispython-test-utilscomparev110v120-2021-10-18) [Compare Source](https://togithub.com/googleapis/python-test-utils/compare/v1.1.0...v1.2.0) ##### Features - add support for python 3.10 ([#​68](https://www.togithub.com/googleapis/python-test-utils/issues/68)) ([d93b6a1](https://www.github.com/googleapis/python-test-utils/commit/d93b6a11e3bfade2b29ab90ed3bc2c384beb01cd))
googleapis/google-resumable-media-python ### [`v2.1.0`](https://togithub.com/googleapis/google-resumable-media-python/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisgoogle-resumable-media-pythoncomparev203v210-2021-10-20) [Compare Source](https://togithub.com/googleapis/google-resumable-media-python/compare/v2.0.3...v2.1.0) ##### Features - add support for Python 3.10 ([#​279](https://www.togithub.com/googleapis/google-resumable-media-python/issues/279)) ([4dbd14a](https://www.github.com/googleapis/google-resumable-media-python/commit/4dbd14aed14b87d4d288584a59e8ea11beccaf97)) ##### Bug Fixes - Include ConnectionError and urllib3 exception as retriable ([#​282](https://www.togithub.com/googleapis/google-resumable-media-python/issues/282)) ([d33465f](https://www.github.com/googleapis/google-resumable-media-python/commit/d33465fc047f4188dd967871ea93255aefd4ac2e)) ##### [2.0.3](https://www.github.com/googleapis/google-resumable-media-python/compare/v2.0.2...v2.0.3) (2021-09-20) ##### Bug Fixes - add REQUEST_TIMEOUT 408 as retryable code ([#​270](https://www.togithub.com/googleapis/google-resumable-media-python/issues/270)) ([d0ad0aa](https://www.github.com/googleapis/google-resumable-media-python/commit/d0ad0aade5f4e7c8efed4f4339fc31fb3304fd3c)) - un-pin google-crc32c ([#​267](https://www.togithub.com/googleapis/google-resumable-media-python/issues/267)) ([6b03a13](https://www.github.com/googleapis/google-resumable-media-python/commit/6b03a13717e1d4d18186bdf2146d5b452d9e3237)) ##### [2.0.2](https://www.github.com/googleapis/google-resumable-media-python/compare/v2.0.1...v2.0.2) (2021-09-02) ##### Bug Fixes - temporarily pin google-crc32c to 1.1.2 to mitigate upstream issue affecting OS X Big Sur ([#​264](https://www.togithub.com/googleapis/google-resumable-media-python/issues/264)) ([9fa344f](https://www.github.com/googleapis/google-resumable-media-python/commit/9fa344f42a99db1af27b8ca126a2ea6b3c01d837)) ##### [2.0.1](https://www.github.com/googleapis/google-resumable-media-python/compare/v2.0.0...v2.0.1) (2021-08-30) ##### Bug Fixes - check if retry is allowed after retry wait calculation ([#​258](https://www.togithub.com/googleapis/google-resumable-media-python/issues/258)) ([00ccf71](https://www.github.com/googleapis/google-resumable-media-python/commit/00ccf7120251d3899c8d0c2eccdf3b177b5b3742)) - do not mark upload download instances invalid with retriable error codes ([#​261](https://www.togithub.com/googleapis/google-resumable-media-python/issues/261)) ([a1c5f7d](https://www.github.com/googleapis/google-resumable-media-python/commit/a1c5f7d0e3ce48d8d6eb8aced31707a881f7ee96))
open-telemetry/opentelemetry-python ### [`v1.6.2`](https://togithub.com/open-telemetry/opentelemetry-python/blob/master/CHANGELOG.md#​162-025b2-httpsgithubcomopen-telemetryopentelemetry-pythonreleasestagv162-025b2---2021-10-19) [Compare Source](https://togithub.com/open-telemetry/opentelemetry-python/compare/v1.6.1...v1.6.2) ### [`v1.6.1`](https://togithub.com/open-telemetry/opentelemetry-python/blob/master/CHANGELOG.md#​161-025b1-httpsgithubcomopen-telemetryopentelemetry-pythonreleasestagv161-025b1---2021-10-18) [Compare Source](https://togithub.com/open-telemetry/opentelemetry-python/compare/v1.6.0...v1.6.1) - Fix ReadableSpan property types attempting to create a mapping from a list ([#​2215](https://togithub.com/open-telemetry/opentelemetry-python/pull/2215)) - Upgrade GRPC/protobuf related dependency and regenerate otlp protobufs ([#​2201](https://togithub.com/open-telemetry/opentelemetry-python/pull/2201)) - Propagation: only warn about oversized baggage headers when headers exist ([#​2212](https://togithub.com/open-telemetry/opentelemetry-python/pull/2212)) - Fix parental trace relationship for opentracing `follows_from` reference ([#​2180](https://togithub.com/open-telemetry/opentelemetry-python/pull/2180)) ### [`v1.6.0`](https://togithub.com/open-telemetry/opentelemetry-python/blob/master/CHANGELOG.md#​160-025b0-httpsgithubcomopen-telemetryopentelemetry-pythonreleasestagv160-025b0---2021-10-13) [Compare Source](https://togithub.com/open-telemetry/opentelemetry-python/compare/v1.5.0...v1.6.0) - Fix race in `set_tracer_provider()` ([#​2182](https://togithub.com/open-telemetry/opentelemetry-python/pull/2182)) - Automatically load OTEL environment variables as options for `opentelemetry-instrument` ([#​1969](https://togithub.com/open-telemetry/opentelemetry-python/pull/1969)) - `opentelemetry-semantic-conventions` Update to semantic conventions v1.6.1 ([#​2077](https://togithub.com/open-telemetry/opentelemetry-python/pull/2077)) - Do not count invalid attributes for dropped ([#​2096](https://togithub.com/open-telemetry/opentelemetry-python/pull/2096)) - Fix propagation bug caused by counting skipped entries ([#​2071](https://togithub.com/open-telemetry/opentelemetry-python/pull/2071)) - Add entry point for exporters with default protocol ([#​2093](https://togithub.com/open-telemetry/opentelemetry-python/pull/2093)) - Renamed entrypoints `otlp_proto_http_span`, `otlp_proto_grpc_span`, `console_span` to remove redundant `_span` suffix. ([#​2093](https://togithub.com/open-telemetry/opentelemetry-python/pull/2093)) - Do not skip sequence attribute on decode error ([#​2097](https://togithub.com/open-telemetry/opentelemetry-python/pull/2097)) - `opentelemetry-test`: Add `HttpTestBase` to allow tests with actual TCP sockets ([#​2101](https://togithub.com/open-telemetry/opentelemetry-python/pull/2101)) - Fix incorrect headers parsing via environment variables ([#​2103](https://togithub.com/open-telemetry/opentelemetry-python/pull/2103)) - Add support for OTEL_ATTRIBUTE_COUNT_LIMIT ([#​2139](https://togithub.com/open-telemetry/opentelemetry-python/pull/2139)) - Attribute limits no longer apply to Resource attributes ([#​2138](https://togithub.com/open-telemetry/opentelemetry-python/pull/2138)) - `opentelemetry-exporter-otlp`: Add `opentelemetry-otlp-proto-http` as dependency ([#​2147](https://togithub.com/open-telemetry/opentelemetry-python/pull/2147)) - Fix validity calculation for trace and span IDs ([#​2145](https://togithub.com/open-telemetry/opentelemetry-python/pull/2145)) - Add `schema_url` to `TracerProvider.get_tracer` ([#​2154](https://togithub.com/open-telemetry/opentelemetry-python/pull/2154)) - Make baggage implementation w3c spec complaint ([#​2167](https://togithub.com/open-telemetry/opentelemetry-python/pull/2167)) - Add name to `BatchSpanProcessor` worker thread ([#​2186](https://togithub.com/open-telemetry/opentelemetry-python/pull/2186))
googleapis/proto-plus-python ### [`v1.19.6`](https://togithub.com/googleapis/proto-plus-python/blob/master/CHANGELOG.md#​1196-httpswwwgithubcomgoogleapisproto-plus-pythoncomparev1195v1196-2021-10-25) [Compare Source](https://togithub.com/googleapis/proto-plus-python/compare/v1.19.5...v1.19.6)
pyparsing/pyparsing ### [`v3.0.1`](https://togithub.com/pyparsing/pyparsing/blob/master/CHANGES#Version-301--) - Fixed bug where Word(max=n) did not match word groups less than length 'n'. Thanks to Joachim Metz for catching this! - Fixed bug where ParseResults accidentally created recursive contents. Joachim Metz on this one also! - Fixed bug where warn_on_multiple_string_args_to_oneof warning is raised even when not enabled. ### [`v3.0.0`](https://togithub.com/pyparsing/pyparsing/blob/master/CHANGES#Version-300--) - A consolidated list of all the changes in the 3.0.0 release can be found in docs/whats_new_in\_3\_0\_0.rst. (https://github.com/pyparsing/pyparsing/blob/master/docs/whats_new_in\_3\_0\_0.rst)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-bigquery-sqlalchemy). --- samples/snippets/requirements-test.txt | 4 ++-- samples/snippets/requirements.txt | 30 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 94f7ef6a..b7ccdb28 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,11 +1,11 @@ attrs==21.2.0 -google-cloud-testutils==1.1.0 +google-cloud-testutils==1.2.0 importlib-metadata==4.8.1 iniconfig==1.1.1 packaging==21.0 pluggy==1.0.0 py==1.10.0 -pyparsing==2.4.7 +pyparsing==3.0.1 pytest==6.2.5 toml==0.10.2 typing-extensions==3.10.0.2 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 5e266cdf..f6bb04fa 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -2,7 +2,7 @@ aiocontextvars==0.2.2 attrs==21.2.0 cachetools==4.2.4 certifi==2021.10.8 -cffi==1.14.6 +cffi==1.15.0 charset-normalizer==2.0.7 click==8.0.3 click-plugins==1.1.1 @@ -15,16 +15,16 @@ future==0.18.2 GeoAlchemy2==0.9.4 geopandas==0.9.0; python_version < '3.7' geopandas==0.10.0; python_version >= '3.7' -google-api-core==2.1.0 -google-auth==2.3.0 +google-api-core==2.1.1 +google-auth==2.3.1 google-cloud-bigquery==2.28.1 google-cloud-bigquery-storage==2.9.1 google-cloud-core==2.1.0 google-crc32c==1.3.0 -google-resumable-media==2.0.3 +google-resumable-media==2.1.0 googleapis-common-protos==1.53.0 greenlet==1.1.2 -grpcio==1.41.0 +grpcio==1.41.1 idna==3.3 immutables==0.16 importlib-metadata==4.8.1 @@ -33,30 +33,30 @@ munch==2.5.0 mypy-extensions==0.4.3 numpy==1.19.5; python_version < '3.7' numpy==1.21.2; python_version >= '3.7' -opentelemetry-api==1.5.0 -opentelemetry-instrumentation==0.24b0 -opentelemetry-sdk==1.5.0 -opentelemetry-semantic-conventions==0.24b0 +opentelemetry-api==1.6.2 +opentelemetry-instrumentation==0.25b2 +opentelemetry-sdk==1.6.2 +opentelemetry-semantic-conventions==0.25b2 packaging==21.0 pandas==1.1.5; python_version < '3.7' pandas==1.3.2; python_version >= '3.7' -proto-plus==1.19.5 -protobuf==3.18.1 +proto-plus==1.19.6 +protobuf==3.19.0 pyarrow==5.0.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 -pyparsing==2.4.7 +pyparsing==3.0.1 pyproj==3.0.1; python_version < '3.7' pyproj==3.1.0; python_version >= '3.7' python-dateutil==2.8.2 pytz==2021.3 -PyYAML==5.4.1 +PyYAML==6.0 requests==2.26.0 rsa==4.7.2 -Shapely==1.7.1 +Shapely==1.8.0 six==1.16.0 -SQLAlchemy==1.4.25 +SQLAlchemy==1.4.26 sqlalchemy-bigquery==1.2.0 tqdm==4.62.3 typing-extensions==3.10.0.2 From f6ad9c91d95f992f7d7854b76ad5beaa16733de9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 21:12:22 +0200 Subject: [PATCH 2/4] chore(deps): update all dependencies (#366) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-api-core](https://togithub.com/googleapis/python-api-core) | `==2.1.1` -> `==2.2.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-api-core/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-api-core/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-api-core/2.2.0/compatibility-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-api-core/2.2.0/confidence-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | | [google-auth](https://togithub.com/googleapis/google-auth-library-python) | `==2.3.1` -> `==2.3.2` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | | [proto-plus](https://togithub.com/googleapis/proto-plus-python) | `==1.19.6` -> `==1.19.7` | [![age](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.7/compatibility-slim/1.19.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/proto-plus/1.19.7/confidence-slim/1.19.6)](https://docs.renovatebot.com/merge-confidence/) | | [pyarrow](https://arrow.apache.org/) | `==5.0.0` -> `==6.0.0` | [![age](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/compatibility-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/confidence-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) | | [pyparsing](https://togithub.com/pyparsing/pyparsing) | `==3.0.1` -> `==3.0.2` | [![age](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pyparsing/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | | [sqlalchemy-bigquery](https://togithub.com/googleapis/python-bigquery-sqlalchemy) | `==1.2.0` -> `==1.2.1` | [![age](https://badges.renovateapi.com/packages/pypi/sqlalchemy-bigquery/1.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/sqlalchemy-bigquery/1.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/sqlalchemy-bigquery/1.2.1/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/sqlalchemy-bigquery/1.2.1/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-api-core ### [`v2.2.0`](https://togithub.com/googleapis/python-api-core/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapispython-api-corecomparev211v220-2021-10-25) [Compare Source](https://togithub.com/googleapis/python-api-core/compare/v2.1.1...v2.2.0) ##### Features - add 'GoogleAPICallError.error_details' property ([#​286](https://www.togithub.com/googleapis/python-api-core/issues/286)) ([ef6f0fc](https://www.github.com/googleapis/python-api-core/commit/ef6f0fcfdfe771172056e35e3c990998b3b00416)) ##### [2.1.1](https://www.github.com/googleapis/python-api-core/compare/v2.1.0...v2.1.1) (2021-10-13) ##### Bug Fixes - add mypy checking + 'py.typed' file ([#​290](https://www.togithub.com/googleapis/python-api-core/issues/290)) ([0023ee1](https://www.github.com/googleapis/python-api-core/commit/0023ee1fe0e8b80c7a9e8987e0f322a829e5d613))
googleapis/google-auth-library-python ### [`v2.3.2`](https://togithub.com/googleapis/google-auth-library-python/blob/master/CHANGELOG.md#​232-httpswwwgithubcomgoogleapisgoogle-auth-library-pythoncomparev231v232-2021-10-26) [Compare Source](https://togithub.com/googleapis/google-auth-library-python/compare/v2.3.1...v2.3.2)
googleapis/proto-plus-python ### [`v1.19.7`](https://togithub.com/googleapis/proto-plus-python/blob/master/CHANGELOG.md#​1197-httpswwwgithubcomgoogleapisproto-plus-pythoncomparev1196v1197-2021-10-27) [Compare Source](https://togithub.com/googleapis/proto-plus-python/compare/v1.19.6...v1.19.7)
pyparsing/pyparsing ### [`v3.0.2`](https://togithub.com/pyparsing/pyparsing/blob/master/CHANGES#Version-302--) - Reverted change in behavior with `LineStart` and `StringStart`, which changed the interpretation of when and how `LineStart` and `StringStart` should match when a line starts with spaces. In 3.0.0, the `xxxStart` expressions were not really treated like expressions in their own right, but as modifiers to the following expression when used like `LineStart() + expr`, so that if there were whitespace on the line before `expr` (which would match in versions prior to 3.0.0), the match would fail. 3.0.0 implemented this by automatically promoting `LineStart() + expr` to `AtLineStart(expr)`, which broke existing parsers that did not expect `expr` to necessarily be right at the start of the line, but only be the first token found on the line. This was reported as a regression in Issue [#​317](https://togithub.com/pyparsing/pyparsing/issues/317). In 3.0.2, pyparsing reverts to the previous behavior, but will retain the new `AtLineStart` and `AtStringStart` expression classes, so that parsers can chose whichever behavior applies in their specific instance. Specifically: ### matches expr if it is the first token on the line ### (allows for leading whitespace) LineStart() + expr ### matches only if expr is found in column 1 AtLineStart(expr) - Performance enhancement to `one_of` to always generate an internal `Regex`, even if `caseless` or `as_keyword` args are given as `True` (unless explicitly disabled by passing `use_regex=False`). - `IndentedBlock` class now works with `recursive` flag. By default, the results parsed by an `IndentedBlock` are grouped. This can be disabled by constructing the `IndentedBlock` with `grouped=False`.
googleapis/python-bigquery-sqlalchemy ### [`v1.2.1`](https://togithub.com/googleapis/python-bigquery-sqlalchemy/blob/master/CHANGELOG.md#​121-httpswwwgithubcomgoogleapispython-bigquery-sqlalchemycomparev120v121-2021-10-27) [Compare Source](https://togithub.com/googleapis/python-bigquery-sqlalchemy/compare/v1.2.0...v1.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-bigquery-sqlalchemy). --- samples/snippets/requirements-test.txt | 2 +- samples/snippets/requirements.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index b7ccdb28..ade1580c 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -5,7 +5,7 @@ iniconfig==1.1.1 packaging==21.0 pluggy==1.0.0 py==1.10.0 -pyparsing==3.0.1 +pyparsing==3.0.2 pytest==6.2.5 toml==0.10.2 typing-extensions==3.10.0.2 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index f6bb04fa..69731ae7 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -15,8 +15,8 @@ future==0.18.2 GeoAlchemy2==0.9.4 geopandas==0.9.0; python_version < '3.7' geopandas==0.10.0; python_version >= '3.7' -google-api-core==2.1.1 -google-auth==2.3.1 +google-api-core==2.2.0 +google-auth==2.3.2 google-cloud-bigquery==2.28.1 google-cloud-bigquery-storage==2.9.1 google-cloud-core==2.1.0 @@ -40,13 +40,13 @@ opentelemetry-semantic-conventions==0.25b2 packaging==21.0 pandas==1.1.5; python_version < '3.7' pandas==1.3.2; python_version >= '3.7' -proto-plus==1.19.6 +proto-plus==1.19.7 protobuf==3.19.0 -pyarrow==5.0.0 +pyarrow==6.0.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 -pyparsing==3.0.1 +pyparsing==3.0.2 pyproj==3.0.1; python_version < '3.7' pyproj==3.1.0; python_version >= '3.7' python-dateutil==2.8.2 @@ -57,7 +57,7 @@ rsa==4.7.2 Shapely==1.8.0 six==1.16.0 SQLAlchemy==1.4.26 -sqlalchemy-bigquery==1.2.0 +sqlalchemy-bigquery==1.2.1 tqdm==4.62.3 typing-extensions==3.10.0.2 typing-inspect==0.7.1 From 4b05d21b8dc89339a69df87183f8893bf02459c5 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Fri, 29 Oct 2021 11:26:01 -0400 Subject: [PATCH 3/4] fix: avoid aliasing known tables used in CTEs (#369) Toward #368. --- sqlalchemy_bigquery/base.py | 22 ++++++++++++++++------ tests/unit/test_compiler.py | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 6 deletions(-) diff --git a/sqlalchemy_bigquery/base.py b/sqlalchemy_bigquery/base.py index f2da562d..ae96d6f4 100644 --- a/sqlalchemy_bigquery/base.py +++ b/sqlalchemy_bigquery/base.py @@ -51,6 +51,7 @@ from sqlalchemy.engine.base import Engine from sqlalchemy.sql.schema import Column from sqlalchemy.sql.schema import Table +from sqlalchemy.sql.selectable import CTE from sqlalchemy.sql import elements, selectable import re @@ -254,6 +255,20 @@ def visit_table_valued_alias(self, element, **kw): ret = f"{aliases}, {ret}" return ret + def _known_tables(self): + known_tables = set() + + for from_ in self.compile_state.froms: + if isinstance(from_, Table): + known_tables.add(from_.name) + elif isinstance(from_, CTE): + for column in from_.original.selected_columns: + table = getattr(column, "table", None) + if table is not None: + known_tables.add(table.name) + + return known_tables + def visit_column( self, column, @@ -290,12 +305,7 @@ def visit_column( if isinstance(tablename, elements._truncated_label): tablename = self._truncated_identifier("alias", tablename) elif TABLE_VALUED_ALIAS_ALIASES in kwargs: - known_tables = set( - from_.name - for from_ in self.compile_state.froms - if isinstance(from_, Table) - ) - if tablename not in known_tables: + if tablename not in self._known_tables(): aliases = kwargs[TABLE_VALUED_ALIAS_ALIASES] if tablename not in aliases: aliases[tablename] = self.anon_map[ diff --git a/tests/unit/test_compiler.py b/tests/unit/test_compiler.py index 5da4e935..889ad63d 100644 --- a/tests/unit/test_compiler.py +++ b/tests/unit/test_compiler.py @@ -76,3 +76,39 @@ def test_no_alias_for_known_tables(faux_conn, metadata): ) found_sql = q.compile(faux_conn).string assert found_sql == expected_sql + + +@sqlalchemy_1_4_or_higher +def test_no_alias_for_known_tables_cte(faux_conn, metadata): + # See: https://github.com/googleapis/python-bigquery-sqlalchemy/issues/368 + table = setup_table( + faux_conn, + "table1", + metadata, + sqlalchemy.Column("foo", sqlalchemy.Integer), + sqlalchemy.Column("bars", sqlalchemy.ARRAY(sqlalchemy.Integer)), + ) + F = sqlalchemy.func + + # Set up initiali query + q = sqlalchemy.select(table.c.foo, F.unnest(table.c.bars).column_valued("bar")) + + expected_initial_sql = ( + "SELECT `table1`.`foo`, `bar` \n" + "FROM `table1`, unnest(`table1`.`bars`) AS `bar`" + ) + found_initial_sql = q.compile(faux_conn).string + assert found_initial_sql == expected_initial_sql + + q = q.cte("cte") + q = sqlalchemy.select(*q.columns) + + expected_cte_sql = ( + "WITH `cte` AS \n" + "(SELECT `table1`.`foo` AS `foo`, `bar` \n" + "FROM `table1`, unnest(`table1`.`bars`) AS `bar`)\n" + " SELECT `cte`.`foo`, `cte`.`bar` \n" + "FROM `cte`" + ) + found_cte_sql = q.compile(faux_conn).string + assert found_cte_sql == expected_cte_sql From 6e2fa4925b5407c9d7d66f5840d51e9bf44f5008 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 17 Nov 2021 15:28:27 -0600 Subject: [PATCH 4/4] chore: release 1.2.2 (#370) 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 8495dff3..43637720 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.2.2](https://www.github.com/googleapis/python-bigquery-sqlalchemy/compare/v1.2.1...v1.2.2) (2021-10-29) + + +### Bug Fixes + +* avoid aliasing known tables used in CTEs ([#369](https://www.github.com/googleapis/python-bigquery-sqlalchemy/issues/369)) ([4b05d21](https://www.github.com/googleapis/python-bigquery-sqlalchemy/commit/4b05d21b8dc89339a69df87183f8893bf02459c5)) + ### [1.2.1](https://www.github.com/googleapis/python-bigquery-sqlalchemy/compare/v1.2.0...v1.2.1) (2021-10-27) diff --git a/sqlalchemy_bigquery/version.py b/sqlalchemy_bigquery/version.py index 66fe5995..24e37be5 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.2.1" +__version__ = "1.2.2"