fix: add easyocr to main deps for valid extra

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2024-07-24 12:38:09 +02:00
parent 3e92f0bfba
commit f4d5bd4336
3 changed files with 11 additions and 3 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

6
poetry.lock generated
View File

@ -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 = "e480591202d3ed9f8be512efa02d10962a3842eedb67d06eaaeca17e08b15920"

View File

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