fix: add easyocr to main deps for valid extra (#19)

* fix: add easyocr to main deps for valid extra

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* remove group

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2024-07-24 14:11:26 +02:00 committed by GitHub
parent 3e92f0bfba
commit 54b3dda141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 16 deletions

View File

@ -32,3 +32,10 @@ repos:
# pass_filenames: false
# language: system
# files: '\.py$'
- repo: local
hooks:
- id: system
name: Poetry check
entry: poetry check --lock
pass_filenames: false
language: system

26
poetry.lock generated
View File

@ -872,7 +872,7 @@ pgp = ["gpg"]
name = "easyocr"
version = "1.7.1"
description = "End-to-End Multi-Lingual Optical Character Recognition (OCR) Solution"
optional = false
optional = true
python-versions = "*"
files = [
{file = "easyocr-1.7.1-py3-none-any.whl", hash = "sha256:5b0a2e7cfdfc6c1ec99d9583663e570e4189dca6fbf373f074b21b8809e44d2b"},
@ -1242,7 +1242,7 @@ files = [
name = "imageio"
version = "2.34.2"
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats."
optional = false
optional = true
python-versions = ">=3.8"
files = [
{file = "imageio-2.34.2-py3-none-any.whl", hash = "sha256:a0bb27ec9d5bab36a9f4835e51b21d2cb099e1f78451441f94687ff3404b79f8"},
@ -1666,7 +1666,7 @@ files = [
name = "lazy-loader"
version = "0.4"
description = "Makes it easy to load subpackages and functions on demand."
optional = false
optional = true
python-versions = ">=3.7"
files = [
{file = "lazy_loader-0.4-py3-none-any.whl", hash = "sha256:342aa8e14d543a154047afb4ba8ef17f5563baad3fc610d7b15b213b0f119efc"},
@ -2295,7 +2295,7 @@ files = [
name = "ninja"
version = "1.11.1.1"
description = "Ninja is a small build system with a focus on speed"
optional = false
optional = true
python-versions = "*"
files = [
{file = "ninja-1.11.1.1-py2.py3-none-macosx_10_9_universal2.macosx_10_9_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl", hash = "sha256:376889c76d87b95b5719fdd61dd7db193aa7fd4432e5d52d2e44e4c497bdbbee"},
@ -3037,7 +3037,7 @@ global = ["pybind11-global (==2.13.1)"]
name = "pyclipper"
version = "1.3.0.post5"
description = "Cython wrapper for the C++ translation of the Angus Johnson's Clipper library (ver. 6.4.2)"
optional = false
optional = true
python-versions = "*"
files = [
{file = "pyclipper-1.3.0.post5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3c45f99b8180dd4df4c86642657ca92b7d5289a5e3724521822e0f9461961fe2"},
@ -3439,7 +3439,7 @@ testing = ["filelock"]
name = "python-bidi"
version = "0.4.2"
description = "Pure python implementation of the BiDi layout algorithm"
optional = false
optional = true
python-versions = "*"
files = [
{file = "python-bidi-0.4.2.tar.gz", hash = "sha256:5347f71e82b3e9976dc657f09ded2bfe39ba8d6777ca81a5b2c56c30121c496e"},
@ -3927,7 +3927,7 @@ files = [
name = "scikit-image"
version = "0.24.0"
description = "Image processing in Python"
optional = false
optional = true
python-versions = ">=3.9"
files = [
{file = "scikit_image-0.24.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cb3bc0264b6ab30b43c4179ee6156bc18b4861e78bb329dd8d16537b7bbf827a"},
@ -3975,7 +3975,7 @@ test = ["asv", "numpydoc (>=1.7)", "pooch (>=1.6.0)", "pytest (>=7.0)", "pytest-
name = "scipy"
version = "1.14.0"
description = "Fundamental algorithms for scientific computing in Python"
optional = false
optional = true
python-versions = ">=3.10"
files = [
{file = "scipy-1.14.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7e911933d54ead4d557c02402710c2396529540b81dd554fc1ba270eb7308484"},
@ -4058,7 +4058,7 @@ test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "importlib-metadata
name = "shapely"
version = "2.0.5"
description = "Manipulation and analysis of geometric objects"
optional = false
optional = true
python-versions = ">=3.7"
files = [
{file = "shapely-2.0.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:89d34787c44f77a7d37d55ae821f3a784fa33592b9d217a45053a93ade899375"},
@ -4311,7 +4311,7 @@ files = [
name = "tifffile"
version = "2024.7.2"
description = "Read and write TIFF files"
optional = false
optional = true
python-versions = ">=3.9"
files = [
{file = "tifffile-2024.7.2-py3-none-any.whl", hash = "sha256:5a2ee608c9cc1f2e044d943dacebddc71d4827b6fad150ef4c644b7aefbe2d1a"},
@ -4875,10 +4875,10 @@ doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linke
test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
[extras]
easyocr = []
ocr = []
easyocr = ["easyocr"]
ocr = ["easyocr"]
[metadata]
lock-version = "2.0"
python-versions = "^3.10"
content-hash = "73028669d2cdf3926d52d02543d1dcfd9987fd4eba1a0cff3c5d17717963f04d"
content-hash = "3ffc5161fd49fe2186ee2afbb3319922964661c769c434fc7386aae40f4aab19"

View File

@ -30,9 +30,7 @@ filetype = "^1.2.0"
pypdfium2 = "^4.30.0"
pydantic-settings = "^2.3.0"
huggingface_hub = ">=0.23,<1"
[tool.poetry.group.ocr.dependencies]
easyocr = "^1.7"
easyocr = { version = "^1.7", optional = true }
[tool.poetry.group.dev.dependencies]
black = {extras = ["jupyter"], version = "^24.4.2"}