Skip to content

Commit

Permalink
chore(deps): Remove hocr-spec to support Python 3.12
Browse files Browse the repository at this point in the history
- Introduced in #195
  • Loading branch information
holtskinner committed Nov 27, 2023
1 parent 9bfa0f4 commit b4aafbf
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"immutabledict >= 2.0.0, < 3.0.0dev; python_version<'3.8'",
"Pillow >= 9.5.0, < 11.0.0",
"Jinja2 >= 3.1.0, <= 4.0.0",
"hocr-spec >= 0.2.0",
),
python_requires=">=3.7",
classifiers=[
Expand Down
1 change: 0 additions & 1 deletion testing/constraints-3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ google-cloud-documentai
google-cloud-storage
numpy
pikepdf
hocr-spec
1 change: 0 additions & 1 deletion testing/constraints-3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ google-cloud-documentai
google-cloud-storage
numpy
pikepdf
hocr-spec
1 change: 0 additions & 1 deletion testing/constraints-3.12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ google-cloud-documentai
google-cloud-storage
numpy
pikepdf
hocr-spec
1 change: 0 additions & 1 deletion testing/constraints-3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ google-cloud-documentai==2.20.0
google-cloud-storage==2.7.0
numpy==1.19.5
pikepdf==6.2.9
hocr-spec==0.2.0
1 change: 0 additions & 1 deletion testing/constraints-3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ google-cloud-documentai
google-cloud-storage
numpy==1.21.6
pikepdf==8.2.3
hocr-spec
1 change: 0 additions & 1 deletion testing/constraints-3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ google-cloud-documentai
google-cloud-storage
numpy
pikepdf
hocr-spec
7 changes: 0 additions & 7 deletions tests/unit/test_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from io import BytesIO
import json
import os
import shutil
Expand All @@ -33,8 +32,6 @@
from google.cloud import documentai
from google.cloud.documentai_toolbox import document, gcs_utilities

from hocr_spec import HocrValidator


def get_bytes(file_name):
result = []
Expand Down Expand Up @@ -693,10 +690,6 @@ def test_export_hocr_str():

actual_hocr = wrapped_document.export_hocr_str(title="toolbox_invoice_test-0")
assert actual_hocr
validator = HocrValidator(profile="standard")
report = validator.validate(BytesIO(actual_hocr.encode("utf-8")), parse_strict=True)

assert report.format("bool")

with open(
"tests/unit/resources/toolbox_invoice_test_0_hocr.xml", "r", encoding="utf-8"
Expand Down

0 comments on commit b4aafbf

Please sign in to comment.