Skip to content

Commit

Permalink
chore(deps): update all dependencies (#297)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Holt Skinner <holtskinner@google.com>
  • Loading branch information
3 people authored Apr 2, 2024
1 parent b6edc3d commit bbf4c1a
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@

from typing import Callable, List, Optional

from google.cloud import documentai
from google.cloud.documentai_toolbox.converters.config.block import Block

from intervaltree import intervaltree

from google.cloud import documentai
from google.cloud.documentai_toolbox.converters.config.block import Block

PIXEL_CONVERSION_RATES = {
"pxl": 1,
Expand Down
1 change: 0 additions & 1 deletion google/cloud/documentai_toolbox/wrappers/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from google.api_core.operation import from_gapic as operation_from_gapic
from google.cloud.vision import AnnotateFileResponse
from google.longrunning.operations_pb2 import GetOperationRequest

from jinja2 import Environment, PackageLoader
from pikepdf import Pdf

Expand Down
3 changes: 1 addition & 2 deletions google/cloud/documentai_toolbox/wrappers/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
"""Wrappers for Document AI Page type."""

from abc import ABC

import dataclasses
from typing import cast, List, Optional, Type
from typing import List, Optional, Type, cast

import pandas as pd

Expand Down
3 changes: 1 addition & 2 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import synthtool as s
from synthtool import gcp
from synthtool.languages import python

REPO_ROOT = pathlib.Path(__file__).parent.absolute()

Expand All @@ -41,4 +40,4 @@
# Run blacken session
# ----------------------------------------------------------------------------

s.shell.run(["nox", "-s", "blacken"], hide_output=False)
s.shell.run(["nox", "-s", "format"], hide_output=False)
1 change: 1 addition & 0 deletions samples/snippets/create_batches_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def create_batches_sample(
request = documentai.BatchProcessRequest(
name="processor_name", input_documents=batch
)
print(request)


# [END documentai_toolbox_create_batches]
4 changes: 1 addition & 3 deletions samples/snippets/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import annotations
from __future__ import print_function
from __future__ import annotations, print_function

import glob
import os
Expand All @@ -23,7 +22,6 @@

import nox


# WARNING - WARNING - WARNING - WARNING - WARNING
# WARNING - WARNING - WARNING - WARNING - WARNING
# DO NOT EDIT THIS FILE EVER!
Expand Down
3 changes: 1 addition & 2 deletions samples/snippets/quickstart_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
from typing import Optional

from google.cloud import documentai
from google.cloud.documentai_toolbox import document
from google.cloud.documentai_toolbox import gcs_utilities
from google.cloud.documentai_toolbox import document, gcs_utilities

# TODO(developer): Uncomment these variables before running the sample.
# Given a Document JSON or sharded Document JSON in path gs://bucket/path/to/folder
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==8.1.1
mock==5.1.0
google-cloud-bigquery==3.20.0
google-cloud-bigquery==3.20.1
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
google-cloud-bigquery==3.20.0
google-cloud-bigquery==3.20.1
google-cloud-documentai==2.24.2
google-cloud-storage==2.16.0
google-cloud-documentai-toolbox==0.13.1a0
1 change: 1 addition & 0 deletions samples/snippets/test_convert_document_to_vision_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import os

import pytest

from samples.snippets import convert_document_to_vision_sample

location = "us"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import os

import pytest

from samples.snippets import convert_external_annotations_sample

location = "us"
Expand Down
1 change: 1 addition & 0 deletions samples/snippets/test_create_batches_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@


import pytest

from samples.snippets import create_batches_sample

gcs_bucket_name = "cloud-samples-data"
Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/test_entities_to_bigquery_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import os
import uuid

from google.cloud import bigquery
import pytest
from samples.snippets import entities_to_bigquery_sample

from google.cloud import bigquery
from samples.snippets import entities_to_bigquery_sample

location = "us"
project_id = os.environ["GOOGLE_CLOUD_PROJECT"]
Expand Down
1 change: 1 addition & 0 deletions samples/snippets/test_export_images_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import shutil

import pytest

from samples.snippets import export_images_sample

document_path = "../../tests/unit/resources/images/dl3-0.json"
Expand Down
1 change: 1 addition & 0 deletions samples/snippets/test_merge_document_shards_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import shutil

import pytest

from samples.snippets import merge_document_shards_sample

gcs_bucket_name = "documentai_toolbox_samples"
Expand Down
7 changes: 4 additions & 3 deletions samples/snippets/test_quickstart_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

import os

from google.cloud import documentai
from google.longrunning.operations_pb2 import \
ListOperationsRequest # type: ignore
import pytest
from samples.snippets import quickstart_sample

from google.cloud import documentai
from google.longrunning.operations_pb2 import ListOperationsRequest # type: ignore
from samples.snippets import quickstart_sample

location = "us"
project_id = os.environ["GOOGLE_CLOUD_PROJECT"]
Expand Down
1 change: 1 addition & 0 deletions samples/snippets/test_split_pdf_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import shutil

import pytest

from samples.snippets import split_pdf_sample

document_path = "../../tests/unit/resources/splitter/procurement_splitter_output.json"
Expand Down
1 change: 1 addition & 0 deletions samples/snippets/test_table_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import os

import pytest

from samples.snippets import table_sample

document_path = "resources/form_with_tables.json"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#
import io
import os

import setuptools # type: ignore

package_root = os.path.abspath(os.path.dirname(__file__))
Expand Down

0 comments on commit bbf4c1a

Please sign in to comment.