From 6f0dabe26d343394e110ca7d02318e8c99343b51 Mon Sep 17 00:00:00 2001 From: Michele Dolfi Date: Wed, 24 Jul 2024 10:45:11 +0200 Subject: [PATCH] fix: expose ocr as extra Signed-off-by: Michele Dolfi --- poetry.lock | 6 +++++- pyproject.toml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index 9873ebd5..992e1fd9 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4874,7 +4874,11 @@ files = [ doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] 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 = [] + [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "2e6880e3db1832a307518044dec3256d3abb8244217d5287ccc764088f2962be" +content-hash = "73028669d2cdf3926d52d02543d1dcfd9987fd4eba1a0cff3c5d17717963f04d" diff --git a/pyproject.toml b/pyproject.toml index 286785ba..64ba36f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,10 @@ types-requests = "^2.31.0.2" flake8-pyproject = "^1.2.3" pylint = "^2.17.5" +[tool.poetry.extras] +easyocr = ["easyocr"] +ocr = ["easyocr"] + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"