Skip to content

Commit

Permalink
Merge pull request #18 from deepopinion/fix/grpc_heisenbug
Browse files Browse the repository at this point in the history
  • Loading branch information
phschoepf authored Apr 23, 2024
2 parents 3b1b044 + 4d25000 commit ff43f9b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 29 deletions.
2 changes: 1 addition & 1 deletion devops/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

echo "Build package"
python setup.py bdist_wheel
python -m build
46 changes: 45 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,46 @@
[project]
name = "ocr_wrapper"
version = "0.0.24"
license.file = "LICENSE.md"
authors = [{ name = "DeepOpinion", email = "hello@deepopinion.ai" }]
urls.repository = "https://github.com/deepopinion/ocr_wrapper"

dependencies = [
"Pillow",
"Shapely>=2.0,<3.0",
"pdf2image",
"rtree",
"opencv-python-headless",
"torch",
"torchvision",
"numpy",
]

classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]

[project.optional-dependencies]
azure = ["azure-cognitiveservices-vision-computervision"]
google = [
"google-cloud-vision",
"grpcio!=1.59.*,!=1.60.*,!=1.61.*,!=1.62.0,!=1.62.1", # https://github.com/deepopinion/ocr_wrapper/issues/17
]
googleazure = ["ocr_wrapper[google,azure]", "google-cloud-documentai"]
aws = ["boto3"]
easy = ["easyocr"]
paddle = ["paddleocr>=2.0.1"]

dev = ["black~=24.4", "hypothesis", "pytest"]
all = ["ocr_wrapper[azure,google,googleazure,aws,easy,paddle]"]

[build-system]
requires = ["setuptools>=67.1.0", "wheel>=0.38.4"]

[tool.black]
line-length = 119
line-length = 119

[tool.setuptools]
packages = ["ocr_wrapper"]
package-data = { ocr_wrapper = ["*.json"]}
27 changes: 0 additions & 27 deletions setup.py

This file was deleted.

0 comments on commit ff43f9b

Please sign in to comment.