From e633c0335e8a0c61a9b72868cac345424d6db716 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 19 Sep 2023 17:34:33 +0200 Subject: [PATCH] chore: Make whoosh database optional dependency --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8ee68a7..8f52f48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,17 +12,19 @@ pymupdf = "^1.23.1" levenshtein = "^0.21.1" papis = "^0.13" click = "^8.1.7" -whoosh = "^2.7.4" +whoosh = { version = "^2.7.4", optional = true } python-magic = "^0.4.27" chevron = "^0.14.0" -[tool.poetry.plugins."papis.command"] -extract = "papis_extract:main" - +[tool.poetry.extras] +whoosh = ["whoosh"] [tool.poetry.group.dev.dependencies] pytest = "^7.4.0" +[tool.poetry.plugins."papis.command"] +extract = "papis_extract:main" + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"