Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-documentai-toolbox
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.8.0-alpha
Choose a base ref
...
head repository: googleapis/python-documentai-toolbox
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.9.0-alpha
Choose a head ref
  • 13 commits
  • 30 files changed
  • 6 contributors

Commits on Jun 12, 2023

  1. chore(deps): update dependency pytest to v7.3.2 (#126)

    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [pytest](https://docs.pytest.org/en/latest/) ([source](https://togithub.com/pytest-dev/pytest), [changelog](https://docs.pytest.org/en/stable/changelog.html)) | `==7.3.1` -> `==7.3.2` | [![age](https://badges.renovateapi.com/packages/pypi/pytest/7.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pytest/7.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pytest/7.3.2/compatibility-slim/7.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pytest/7.3.2/confidence-slim/7.3.1)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>pytest-dev/pytest</summary>
    
    ### [`v7.3.2`](https://togithub.com/pytest-dev/pytest/releases/tag/7.3.2)
    
    [Compare Source](https://togithub.com/pytest-dev/pytest/compare/7.3.1...7.3.2)
    
    # pytest 7.3.2 (2023-06-10)
    
    ## Bug Fixes
    
    -   [#&#8203;10169](https://togithub.com/pytest-dev/pytest/issues/10169): Fix bug where very long option names could cause pytest to break with `OSError: [Errno 36] File name too long` on some systems.
    -   [#&#8203;10894](https://togithub.com/pytest-dev/pytest/issues/10894): Support for Python 3.12 (beta at the time of writing).
    -   [#&#8203;10987](https://togithub.com/pytest-dev/pytest/issues/10987): `testpaths`{.interpreted-text role="confval"} is now honored to load root `conftests`.
    -   [#&#8203;10999](https://togithub.com/pytest-dev/pytest/issues/10999): The \[monkeypatch]{.title-ref} \[setitem]{.title-ref}/\[delitem]{.title-ref} type annotations now allow \[TypedDict]{.title-ref} arguments.
    -   [#&#8203;11028](https://togithub.com/pytest-dev/pytest/issues/11028): Fixed bug in assertion rewriting where a variable assigned with the walrus operator could not be used later in a function call.
    -   [#&#8203;11054](https://togithub.com/pytest-dev/pytest/issues/11054): Fixed `--last-failed`'s "(skipped N files)" functionality for files inside of packages (directories with \[\__init\_\_.py]{.title-ref} files).
    
    </details>
    
    ---
    
    ### 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.
    
    ---
    
     - [ ] <!-- rebase-check -->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://app.renovatebot.com/dashboard#github/googleapis/python-documentai-toolbox).
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
    renovate-bot authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    3974a4d View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    c184381 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. Configuration menu
    Copy the full SHA
    7798aac View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. refactor: Restructuring of classes to reduce duplication and increase…

    … readibility (#110)
    
    * refactor: Change classes to avoid extra copies
    
    * Fix `default_factory` error
    
    * Update to fix tests
    
    * docs: Update Doc Strings
    
    * Changed other `documentai_` fields to InitVar
    - Fixed table sample
    
    * Addressed some code review comments
    
    - Add incomplete shard check
    - refactor some of the vision helpers to simplify imports
    - Fix documentation formatting issue
    
    * fix test errors
    
    * Fix regex in test
    
    * Change crop_image() return type to optional
    
    * Update Table to use initVar
    
    * Update table sample test
    
    * Add post init for formfields
    
    * Add postinit to Block, Line, Paragraph
    
    * Update Tests
    
    * refactor: Re-added documentai elements as ful members of dataclasses
    
    - Avoids some backwards incompatibility issues
    - Fixed bug where Entity page numbers would not line up with multi-shard documents
    
    * fix: Removed referebce to removed function
    
    * refactor: Moved more vision conversion to vision_helpers.py
    
    * Removed extra import
    
    * Addressed review comments
    
    - Added a more specific type for dictionary. `Dict[str, Union[str, List[str]]]`
    - Rewrote Docstring for `Entity.page_offset`
    - Wrote unit test for `page_offset`
    
    * Update tests to improve coverage
    holtskinner authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    778e433 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. chore(deps): update all dependencies (#131)

    Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
    renovate-bot and holtskinner authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    ec4c88b View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. chore: remove pinned Sphinx version [autoapprove] (#133)

    Source-Link: googleapis/synthtool@909573c
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ddf4551385d566771dc713090feb7b4c1164fb8a698fe52bbe7670b24236565b
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    98fea64 View commit details
    Browse the repository at this point in the history
  2. chore(deps): update dependency google-cloud-storage to v2.10.0 (#132)

    Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
    renovate-bot and holtskinner authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    6faecec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    554aeb0 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. chore: store artifacts in placer (#135)

    Source-Link: googleapis/synthtool@cb96037
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2d816f26f728ac8b24248741e7d4c461c09764ef9f7be3684d557c9632e46dbd
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    646ab69 View commit details
    Browse the repository at this point in the history
  2. feat: added hOCR export functionality (#123)

    * chore: edit get_storage_client to add module name
    
    * added module name to get_bytes
    
    * fixed failing test
    
    * chore: added hocr
    
    * removed test files
    
    * revised code per comments
    
    * feat: added hOCR export functionality
    
    * changed line_text to use line.text
    
    * added tests
    
    * fix lint failure
    
    * revised code
    
    * revise code
    
    * refactored code
    
    * refactored code
    
    * expanded test_Page
    
    * refactored code
    
    * refactored code
    
    * refactored code
    
    * fix failing tests
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * refactored code
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * templated hocr file format
    
    * refactored code
    
    * fixed failing test
    
    * 🦉 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 <gcf-owl-bot[bot]@users.noreply.github.com>
    Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
    3 people authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    87d2fc1 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Configuration menu
    Copy the full SHA
    a38b68c View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. refactor: Refactor of hocr functions and fixing lost changes (#137)

    * refactor: Reorganize hocr functions
    
    - Use more jinja templating instead of hardcoding strings
    - Simplified bounding box function
    - Changed parameter name for `_get_hocr_bounding_box` to `page_dimension` for more clarity.
    
    * samples: Added sample for convert to hocr
    
    * refactor: Reordering of classes in page.py
    
    * refactor: Re-added refactoring to remove extra `get_*()` methods in page.py
    
    - Added in #110 Lost in Merge
    
    * fix: Moved `templates` directory into package.
    - Required for template to work in installed library
    holtskinner authored Jul 7, 2023
    Configuration menu
    Copy the full SHA
    4f7ba1b View commit details
    Browse the repository at this point in the history
  2. chore(main): release 0.9.0-alpha (#136)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Jul 7, 2023
    Configuration menu
    Copy the full SHA
    1b2223f View commit details
    Browse the repository at this point in the history
Loading