From dbd6c8ae6e379097f4cf24c5ccb2500f20059976 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 8 Dec 2023 11:26:17 -0500 Subject: [PATCH 01/18] build: update warning filters (#219) * build: update warning filters * build: update warning filters --- pytest.ini | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/pytest.ini b/pytest.ini index 52bd2d1f..2d637278 100644 --- a/pytest.ini +++ b/pytest.ini @@ -6,14 +6,10 @@ filterwarnings = ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning # Remove once https://github.com/dateutil/dateutil/issues/1314 is fixed ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil.tz.tz - # Remove once release PR https://github.com/googleapis/proto-plus-python/pull/391 is merged - ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:proto.datetime_helpers - # Remove once release PR https://github.com/googleapis/python-api-common-protos/pull/191 is merged - ignore:.*pkg_resources.declare_namespace:DeprecationWarning - ignore:.*pkg_resources is deprecated as an API:DeprecationWarning # Remove once Python3.7 support is dropped https://github.com/googleapis/python-documentai-toolbox/issues/209 ignore:distutils Version classes are deprecated:DeprecationWarning - # Remove once release PR https://github.com/googleapis/python-api-core/pull/555 is merged - ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:google.api_core.datetime_helpers - # Remove once release PR https://github.com/googleapis/google-auth-library-python/pull/1416 is merged - ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:google.auth._helpers + # Remove after support for Python 3.7 is dropped + ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning + # Remove once the minimum supported version of `google-api-core` is 2.15.0 + ignore:.*pkg_resources.declare_namespace:DeprecationWarning + ignore:.*pkg_resources is deprecated as an API:DeprecationWarning From f9df690e5ccd5a34e78bf8f3a22dbdbf5e313f73 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sun, 10 Dec 2023 08:59:35 -0500 Subject: [PATCH 02/18] build: update actions/checkout and actions/setup-python (#220) Source-Link: https://github.com/googleapis/synthtool/commit/3551acd1261fd8f616cbfd054cda9bd6d6ac75f4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:230f7fe8a0d2ed81a519cfc15c6bb11c5b46b9fb449b8b1219b3771bcb520ad2 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- .github/workflows/docs.yml | 8 ++++---- .github/workflows/lint.yml | 4 ++-- .github/workflows/unittest.yml | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 773c1dfd..40bf9973 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:2f155882785883336b4468d5218db737bb1d10c9cea7cb62219ad16fe248c03c -# created: 2023-11-29T14:54:29.548172703Z + digest: sha256:230f7fe8a0d2ed81a519cfc15c6bb11c5b46b9fb449b8b1219b3771bcb520ad2 +# created: 2023-12-09T15:16:25.430769578Z diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 221806ce..698fbc5c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.9" - name: Install nox @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install nox diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 16d5a9e9..4866193a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Install nox diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 70b045ab..a6886305 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -11,9 +11,9 @@ jobs: python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Install nox @@ -37,9 +37,9 @@ jobs: - unit steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Install coverage From e7a5524b27fd00dbb2efe81781fc57956f2a3551 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sun, 10 Dec 2023 15:48:56 +0100 Subject: [PATCH 03/18] chore(deps): update dependency google-cloud-documentai to v2.21.0 (#221) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 6d2bd72c..e55f0b2f 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ google-cloud-bigquery==3.13.0 -google-cloud-documentai==2.20.2 +google-cloud-documentai==2.21.0 google-cloud-storage==2.13.0 google-cloud-documentai-toolbox==0.11.1a0 From 766e88689bac68a9f4bb08578b4b75ef5f3fcb55 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 12 Dec 2023 16:54:15 +0100 Subject: [PATCH 04/18] chore(deps): update dependency google-cloud-bigquery to v3.14.0 (#222) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | `==3.13.0` -> `==3.14.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/google-cloud-bigquery/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/google-cloud-bigquery/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/google-cloud-bigquery/3.13.0/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/google-cloud-bigquery/3.13.0/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-bigquery (google-cloud-bigquery) ### [`v3.14.0`](https://togithub.com/googleapis/python-bigquery/blob/HEAD/CHANGELOG.md#3140-2023-12-08) [Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v3.13.0...v3.14.0) ##### Features - Add `Client.query_and_wait` which directly returns a `RowIterator` of results ([#​1722](https://togithub.com/googleapis/python-bigquery/issues/1722)) ([89a647e](https://togithub.com/googleapis/python-bigquery/commit/89a647e19fe5d7302c0a39bba77a155635c5c29d)) - Add `job_id`, `location`, `project`, and `query_id` properties on `RowIterator` ([#​1733](https://togithub.com/googleapis/python-bigquery/issues/1733)) ([494f275](https://togithub.com/googleapis/python-bigquery/commit/494f275ab2493dc7904f685c4d12e60bef51ab21)) - Add `job_timeout_ms` to job configuration classes ([#​1675](https://togithub.com/googleapis/python-bigquery/issues/1675)) ([84d64cd](https://togithub.com/googleapis/python-bigquery/commit/84d64cdd157afef4a7bf7807e557d59452133434)) - Add support dataset.max_time_travel_hours ([#​1683](https://togithub.com/googleapis/python-bigquery/issues/1683)) ([f22eff2](https://togithub.com/googleapis/python-bigquery/commit/f22eff25f116f1c4973ac2b8b03bc8a4ae1f3f42)) - Add support for Dataset.isCaseInsensitive ([#​1671](https://togithub.com/googleapis/python-bigquery/issues/1671)) ([386fa86](https://togithub.com/googleapis/python-bigquery/commit/386fa86c89b8cff69fc02213254a1c53c02fee42)) - Add support for Python 3.12 ([#​1736](https://togithub.com/googleapis/python-bigquery/issues/1736)) ([3c0976a](https://togithub.com/googleapis/python-bigquery/commit/3c0976aecb0f917477feef4e9ed865997c2bb106)) - Removed pkg_resources from all test files and moved importlib into pandas extra ([#​1726](https://togithub.com/googleapis/python-bigquery/issues/1726)) ([1f4ebb1](https://togithub.com/googleapis/python-bigquery/commit/1f4ebb1eca4f9380a31172fc8cb2fae125f8c5a2)) - Support data_governance_type ([#​1708](https://togithub.com/googleapis/python-bigquery/issues/1708)) ([eff365d](https://togithub.com/googleapis/python-bigquery/commit/eff365dc17755d0855338e2f273428ffe2056f67)) ##### Bug Fixes - `load_table_from_dataframe` now assumes there may be local null values ([#​1735](https://togithub.com/googleapis/python-bigquery/issues/1735)) ([f05dc69](https://togithub.com/googleapis/python-bigquery/commit/f05dc69a1f8c65ac32085bfcc6950c2c83f8a843)) - Ensure query job retry has longer deadline than API request deadline ([#​1734](https://togithub.com/googleapis/python-bigquery/issues/1734)) ([5573579](https://togithub.com/googleapis/python-bigquery/commit/55735791122f97b7f67cb962b489fd1f12210af5)) - Keep `RowIterator.total_rows` populated after iteration ([#​1748](https://togithub.com/googleapis/python-bigquery/issues/1748)) ([8482f47](https://togithub.com/googleapis/python-bigquery/commit/8482f4759ce3c4b00fa06a7f306a2ac4d4ee8eb7)) - Move grpc, proto-plus and protobuf packages to extras ([#​1721](https://togithub.com/googleapis/python-bigquery/issues/1721)) ([5ce4d13](https://togithub.com/googleapis/python-bigquery/commit/5ce4d136af97b91fbe1cc56bba1021e50a9c8476)) ##### Performance Improvements - Use the first page a results when `query(api_method="QUERY")` ([#​1723](https://togithub.com/googleapis/python-bigquery/issues/1723)) ([6290517](https://togithub.com/googleapis/python-bigquery/commit/6290517d6b153a31f20098f75aee580b7915aca9))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/python-documentai-toolbox). --- samples/snippets/requirements-test.txt | 2 +- samples/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index e763bc58..64c95c87 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ pytest==7.4.3 mock==5.1.0 -google-cloud-bigquery==3.13.0 +google-cloud-bigquery==3.14.0 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index e55f0b2f..dbb9852b 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==3.13.0 +google-cloud-bigquery==3.14.0 google-cloud-documentai==2.21.0 google-cloud-storage==2.13.0 google-cloud-documentai-toolbox==0.11.1a0 From 7d30aa5000c0b42da45b9de7edf6ee75362f8e5f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 12 Dec 2023 20:34:14 +0100 Subject: [PATCH 05/18] chore(deps): update dependency google-cloud-storage to v2.14.0 (#225) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==2.13.0` -> `==2.14.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/google-cloud-storage/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/google-cloud-storage/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/google-cloud-storage/2.13.0/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/google-cloud-storage/2.13.0/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-storage (google-cloud-storage) ### [`v2.14.0`](https://togithub.com/googleapis/python-storage/blob/HEAD/CHANGELOG.md#2140-2023-12-10) [Compare Source](https://togithub.com/googleapis/python-storage/compare/v2.13.0...v2.14.0) ##### Features - Add support for Python 3.12 ([#​1187](https://togithub.com/googleapis/python-storage/issues/1187)) ([ecf4150](https://togithub.com/googleapis/python-storage/commit/ecf41504ba7f2a2c2db2e3c7e267686283d2cab3)) - Support object retention lock ([#​1188](https://togithub.com/googleapis/python-storage/issues/1188)) ([a179337](https://togithub.com/googleapis/python-storage/commit/a1793375cf038ce79d4d4b7077f6b4dcc4b4aeec)) ##### Bug Fixes - Clarify error message and docstrings in Blob class method ([#​1196](https://togithub.com/googleapis/python-storage/issues/1196)) ([92c20d3](https://togithub.com/googleapis/python-storage/commit/92c20d3f7520c6b94308ebb156202fdfd1dcd482)) - Propagate timeout in BlobWriter ([#​1186](https://togithub.com/googleapis/python-storage/issues/1186)) ([22f36da](https://togithub.com/googleapis/python-storage/commit/22f36da1ce5b04408653ddbdbf35f25ed1072af8)), closes [#​1184](https://togithub.com/googleapis/python-storage/issues/1184) - Use native namespace to avoid pkg_resources warnings ([#​1176](https://togithub.com/googleapis/python-storage/issues/1176)) ([2ed915e](https://togithub.com/googleapis/python-storage/commit/2ed915ec4b35df6fad04f42df25e48667148fcf5))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/python-documentai-toolbox). --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index dbb9852b..0272481f 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ google-cloud-bigquery==3.14.0 google-cloud-documentai==2.21.0 -google-cloud-storage==2.13.0 +google-cloud-storage==2.14.0 google-cloud-documentai-toolbox==0.11.1a0 From 22a326d06ad478370aeeb59ffd1a2481feae9670 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 13 Dec 2023 22:18:15 +0100 Subject: [PATCH 06/18] chore(deps): update dependency google-cloud-documentai to v2.21.1 (#226) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-documentai](https://togithub.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-documentai) ([source](https://togithub.com/googleapis/google-cloud-python)) | `==2.21.0` -> `==2.21.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/google-cloud-documentai/2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/google-cloud-documentai/2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/google-cloud-documentai/2.21.0/2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/google-cloud-documentai/2.21.0/2.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-cloud-python (google-cloud-documentai) ### [`v2.21.1`](https://togithub.com/googleapis/google-cloud-python/releases/tag/google-cloud-documentai-v2.21.1): google-cloud-documentai: v2.21.1 [Compare Source](https://togithub.com/googleapis/google-cloud-python/compare/google-cloud-documentai-v2.21.0...google-cloud-documentai-v2.21.1) ##### Documentation - \[google-cloud-documentai] Clarify Properties documentation ([#​12118](https://togithub.com/googleapis/google-cloud-python/issues/12118)) ([35c180e](https://togithub.com/googleapis/google-cloud-python/commit/35c180e4cb7d9e52b5f72a13b606a6004b5c8a08))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/python-documentai-toolbox). --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 0272481f..a785604f 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ google-cloud-bigquery==3.14.0 -google-cloud-documentai==2.21.0 +google-cloud-documentai==2.21.1 google-cloud-storage==2.14.0 google-cloud-documentai-toolbox==0.11.1a0 From 4a57e610e5069638d03bd979bc060fdd42b0ea2b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 14 Dec 2023 13:27:11 +0100 Subject: [PATCH 07/18] chore(deps): update dependency google-cloud-bigquery to v3.14.1 (#227) --- samples/snippets/requirements-test.txt | 2 +- samples/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 64c95c87..11835e7a 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ pytest==7.4.3 mock==5.1.0 -google-cloud-bigquery==3.14.0 +google-cloud-bigquery==3.14.1 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index a785604f..f9052c73 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==3.14.0 +google-cloud-bigquery==3.14.1 google-cloud-documentai==2.21.1 google-cloud-storage==2.14.0 google-cloud-documentai-toolbox==0.11.1a0 From 887f394eb7b3f02aaaf946b80abf50785b10e686 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:18:36 -0500 Subject: [PATCH 08/18] build: update actions/upload-artifact and actions/download-artifact (#229) Source-Link: https://github.com/googleapis/synthtool/commit/280ddaed417057dfe5b1395731de07b7d09f5058 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:346ab2efb51649c5dde7756cbbdc60dd394852ba83b9bbffc292a63549f33c17 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- .github/workflows/unittest.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 40bf9973..9bee2409 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:230f7fe8a0d2ed81a519cfc15c6bb11c5b46b9fb449b8b1219b3771bcb520ad2 -# created: 2023-12-09T15:16:25.430769578Z + digest: sha256:346ab2efb51649c5dde7756cbbdc60dd394852ba83b9bbffc292a63549f33c17 +# created: 2023-12-14T22:17:57.611773021Z diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index a6886305..87d08602 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -26,9 +26,9 @@ jobs: run: | nox -s unit-${{ matrix.python }} - name: Upload coverage results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: coverage-artifacts + name: coverage-artifact-${{ matrix.python }} path: .coverage-${{ matrix.python }} cover: @@ -47,11 +47,11 @@ jobs: python -m pip install --upgrade setuptools pip wheel python -m pip install coverage - name: Download coverage results - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: coverage-artifacts path: .coverage-results/ - name: Report coverage results run: | - coverage combine .coverage-results/.coverage* + find .coverage-results -type f -name '*.zip' -exec unzip {} \; + coverage combine .coverage-results/**/.coverage* coverage report --show-missing --fail-under=99 From 30244e2e4d989ba00c576ec0bed59562435872be Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 2 Jan 2024 18:43:00 +0100 Subject: [PATCH 09/18] chore(deps): update dependency pytest to v7.4.4 (#230) --- samples/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 11835e7a..6e913bb7 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -pytest==7.4.3 +pytest==7.4.4 mock==5.1.0 google-cloud-bigquery==3.14.1 From 1a8497c3a0d91b484075bac7d6ac0aaf6d6839be Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Jan 2024 21:06:49 +0100 Subject: [PATCH 10/18] chore(deps): update dependency google-cloud-bigquery to v3.15.0 (#232) --- samples/snippets/requirements-test.txt | 2 +- samples/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 6e913bb7..6bfcea45 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ pytest==7.4.4 mock==5.1.0 -google-cloud-bigquery==3.14.1 +google-cloud-bigquery==3.15.0 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index f9052c73..3eedb803 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==3.14.1 +google-cloud-bigquery==3.15.0 google-cloud-documentai==2.21.1 google-cloud-storage==2.14.0 google-cloud-documentai-toolbox==0.11.1a0 From 98d307477577bd8964a1752d887ec530dcd40c3e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 20:11:45 +0000 Subject: [PATCH 11/18] chore(deps): bump jinja2 from 3.1.2 to 3.1.3 in /.kokoro (#233) Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3) --- updated-dependencies: - dependency-name: jinja2 dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> From 4d4b3c0e1767468eafe79f75f8504f02258dba7e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Jan 2024 23:13:47 +0100 Subject: [PATCH 12/18] chore(deps): update dependency google-cloud-bigquery to v3.16.0 (#234) --- samples/snippets/requirements-test.txt | 2 +- samples/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 6bfcea45..06ae52d4 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ pytest==7.4.4 mock==5.1.0 -google-cloud-bigquery==3.15.0 +google-cloud-bigquery==3.16.0 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 3eedb803..8cd94816 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==3.15.0 +google-cloud-bigquery==3.16.0 google-cloud-documentai==2.21.1 google-cloud-storage==2.14.0 google-cloud-documentai-toolbox==0.11.1a0 From af9fc34a6d7ab338dfc96df6d1d3609cbd562a83 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 10:41:28 +0000 Subject: [PATCH 13/18] build(python): fix `docs` and `docfx` builds (#235) Source-Link: https://github.com/googleapis/synthtool/commit/fac8444edd5f5526e804c306b766a271772a3e2f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 6 +++--- .kokoro/requirements.txt | 6 +++--- noxfile.py | 20 +++++++++++++++++++- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9bee2409..d8a1bbca 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,4 +1,4 @@ -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:346ab2efb51649c5dde7756cbbdc60dd394852ba83b9bbffc292a63549f33c17 -# created: 2023-12-14T22:17:57.611773021Z + digest: sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa +# created: 2024-01-15T16:32:08.142785673Z diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index e5c1ffca..bb3d6ca3 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -263,9 +263,9 @@ jeepney==0.8.0 \ # via # keyring # secretstorage -jinja2==3.1.2 \ - --hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \ - --hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61 +jinja2==3.1.3 \ + --hash=sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa \ + --hash=sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90 # via gcp-releasetool keyring==24.2.0 \ --hash=sha256:4901caaf597bfd3bbd78c9a0c7c4c29fcd8310dab2cffefe749e916b6527acd6 \ diff --git a/noxfile.py b/noxfile.py index c0ef7c93..a48bb8ca 100644 --- a/noxfile.py +++ b/noxfile.py @@ -281,7 +281,16 @@ def docs(session): session.install("-e", ".") session.install( - "sphinx==4.0.1", + # We need to pin to specific versions of the `sphinxcontrib-*` packages + # which still support sphinx 4.x. + # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344 + # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345. + "sphinxcontrib-applehelp==1.0.4", + "sphinxcontrib-devhelp==1.0.2", + "sphinxcontrib-htmlhelp==2.0.1", + "sphinxcontrib-qthelp==1.0.3", + "sphinxcontrib-serializinghtml==1.1.5", + "sphinx==4.5.0", "alabaster", "recommonmark", ) @@ -307,6 +316,15 @@ def docfx(session): session.install("-e", ".") session.install( + # We need to pin to specific versions of the `sphinxcontrib-*` packages + # which still support sphinx 4.x. + # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344 + # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345. + "sphinxcontrib-applehelp==1.0.4", + "sphinxcontrib-devhelp==1.0.2", + "sphinxcontrib-htmlhelp==2.0.1", + "sphinxcontrib-qthelp==1.0.3", + "sphinxcontrib-serializinghtml==1.1.5", "gcp-sphinx-docfx-yaml", "alabaster", "recommonmark", From ccca50c2bde18ab0632fd93b93f455280ef60d0f Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Wed, 24 Jan 2024 12:14:05 -0600 Subject: [PATCH 14/18] Add ignore warning for PyArrow/Pandas (#238) --- setup.py | 1 + testing/constraints-3.9.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 5a6b31c3..fb5d5fea 100644 --- a/setup.py +++ b/setup.py @@ -55,6 +55,7 @@ "google-api-core >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0", "pandas >= 1.0.0, <3.0.0", "pandas >= 1.0.0, <2.0.0; python_version<'3.8'", + "pyarrow >= 15.0.0, <16.0.0; python_version>='3.8'", # Required by Pandas #237 "tabulate >= 0.9.0, <1.0.0", "proto-plus >= 1.22.0, <2.0.0dev", "proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'", diff --git a/testing/constraints-3.9.txt b/testing/constraints-3.9.txt index c9f0e4bb..837480d0 100644 --- a/testing/constraints-3.9.txt +++ b/testing/constraints-3.9.txt @@ -4,6 +4,7 @@ google-api-core libcst pandas +pyarrow # Required by Pandas #237 proto-plus grpc-google-iam-v1 google-cloud-bigquery From 448a91c7acb7cc5e373e9c33bd7a613407b9e346 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:25:09 +0100 Subject: [PATCH 15/18] chore(deps): update dependency google-cloud-bigquery to v3.17.0 (#242) --- samples/snippets/requirements-test.txt | 2 +- samples/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 06ae52d4..af693837 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ pytest==7.4.4 mock==5.1.0 -google-cloud-bigquery==3.16.0 +google-cloud-bigquery==3.17.0 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 8cd94816..c738c3b0 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==3.16.0 +google-cloud-bigquery==3.17.0 google-cloud-documentai==2.21.1 google-cloud-storage==2.14.0 google-cloud-documentai-toolbox==0.11.1a0 From 37e5d683ac421eed969ca3c8ad9970ea5e3629b8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 17:50:49 +0100 Subject: [PATCH 16/18] chore(deps): update dependency google-cloud-bigquery to v3.17.1 (#243) --- samples/snippets/requirements-test.txt | 2 +- samples/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index af693837..d44a3b06 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ pytest==7.4.4 mock==5.1.0 -google-cloud-bigquery==3.17.0 +google-cloud-bigquery==3.17.1 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index c738c3b0..99f2daf4 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==3.17.0 +google-cloud-bigquery==3.17.1 google-cloud-documentai==2.21.1 google-cloud-storage==2.14.0 google-cloud-documentai-toolbox==0.11.1a0 From 8f4e3ce780c11e75cb7f23e1fc41aca7c7a9d8bc Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Fri, 2 Feb 2024 10:12:02 -0600 Subject: [PATCH 17/18] fix: Add `Python37DeprecationWarning` (#241) --- README.rst | 10 ++++++++++ google/cloud/documentai_toolbox/__init__.py | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/README.rst b/README.rst index 0b8b6271..8f375a88 100644 --- a/README.rst +++ b/README.rst @@ -68,6 +68,16 @@ Python >= 3.7 .. _active: https://devguide.python.org/devcycle/#in-development-main-branch .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches +**NOTE**: +Python 3.7 was marked as `unsupported`_ by the python community in June 2023. +We recommend that all developers upgrade to Python 3.8 and newer as soon as +they can. Support for Python 3.7 will be removed from all client libraries after +January 1 2024. Client libraries that support Python 3.7 will continue to be available +for download, but releases after January 1 2024 will only target Python 3.8 and +newer. + +.. _unsupported: https://devguide.python.org/versions/#unsupported-versions + Unsupported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Python <= 3.6 diff --git a/google/cloud/documentai_toolbox/__init__.py b/google/cloud/documentai_toolbox/__init__.py index 4a1370d6..83e23ba8 100644 --- a/google/cloud/documentai_toolbox/__init__.py +++ b/google/cloud/documentai_toolbox/__init__.py @@ -14,6 +14,9 @@ # limitations under the License. # +import sys +import warnings + from google.cloud.documentai_toolbox import version as package_version __version__ = package_version.__version__ @@ -23,3 +26,19 @@ from .wrappers import document, entity, page __all__ = (document, page, entity, converter, docai_utilities, gcs_utilities) + + +class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER + """ + Deprecation warning raised when Python 3.7 runtime is detected. + Python 3.7 support will be dropped after January 1, 2024. + """ + + +# Checks if the current runtime is Python 3.7. +if sys.version_info.major == 3 and sys.version_info.minor == 7: # pragma: NO COVER + message = ( + "After January 1, 2024, new releases of this library will drop support " + "for Python 3.7." + ) + warnings.warn(message, Python37DeprecationWarning) From b7414981ead59241ff1364c7603aaae6ddae3909 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:14:57 +0000 Subject: [PATCH 18/18] chore(main): release 0.12.1-alpha (#248) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ google/cloud/documentai_toolbox/version.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea16e5b7..7a76d8f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.12.1-alpha](https://github.com/googleapis/python-documentai-toolbox/compare/v0.12.0-alpha...v0.12.1-alpha) (2024-02-02) + + +### Bug Fixes + +* Add `Python37DeprecationWarning` ([#241](https://github.com/googleapis/python-documentai-toolbox/issues/241)) ([8f4e3ce](https://github.com/googleapis/python-documentai-toolbox/commit/8f4e3ce780c11e75cb7f23e1fc41aca7c7a9d8bc)) + ## [0.12.0-alpha](https://github.com/googleapis/python-documentai-toolbox/compare/v0.11.2-alpha...v0.12.0-alpha) (2023-11-30) diff --git a/google/cloud/documentai_toolbox/version.py b/google/cloud/documentai_toolbox/version.py index 743bb870..6952c7e2 100644 --- a/google/cloud/documentai_toolbox/version.py +++ b/google/cloud/documentai_toolbox/version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.12.0-alpha" +__version__ = "0.12.1-alpha"