mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
chore: move examples extras to respective group (#103)
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,20 @@ keywords= ["docling", "convert", "document", "pdf", "layout model", "segmentatio
|
||||
packages = [{include = "docling"}]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
##############
|
||||
# constraints:
|
||||
##############
|
||||
torch = [
|
||||
{version = "^2.2.2", optional = true, markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'"},
|
||||
{version = "~2.2.2", optional = true, markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"}
|
||||
]
|
||||
torchvision = [
|
||||
{version = "^0", optional = true, markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'"},
|
||||
{version = "~0.17.2", optional = true, markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"}
|
||||
]
|
||||
######################
|
||||
# actual dependencies:
|
||||
######################
|
||||
python = "^3.10"
|
||||
pydantic = "^2.0.0"
|
||||
docling-core = "^1.6.2"
|
||||
@@ -37,29 +51,6 @@ certifi = ">=2024.7.4"
|
||||
rtree = "^1.3.0"
|
||||
scipy = "^1.14.1"
|
||||
pyarrow = "^16.1.0"
|
||||
|
||||
#########
|
||||
# extras:
|
||||
#########
|
||||
python-dotenv = { version = "^1.0.1", optional = true }
|
||||
llama-index-embeddings-huggingface = { version = "^0.3.1", optional = true }
|
||||
llama-index-llms-huggingface-api = { version = "^0.2.0", optional = true }
|
||||
llama-index-vector-stores-milvus = { version = "^0.2.1", optional = true }
|
||||
langchain-huggingface = { version = "^0.0.3", optional = true}
|
||||
langchain-milvus = { version = "^0.1.4", optional = true }
|
||||
langchain-text-splitters = { version = "^0.2.4", optional = true }
|
||||
|
||||
##############
|
||||
# constraints:
|
||||
##############
|
||||
torch = [
|
||||
{version = "^2.2.2", optional = true, markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'"},
|
||||
{version = "~2.2.2", optional = true, markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"}
|
||||
]
|
||||
torchvision = [
|
||||
{version = "^0", optional = true, markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'"},
|
||||
{version = "~0.17.2", optional = true, markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"}
|
||||
]
|
||||
typer = "^0.12.5"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
@@ -82,20 +73,13 @@ nbqa = "^1.9.0"
|
||||
|
||||
[tool.poetry.group.examples.dependencies]
|
||||
datasets = "^2.21.0"
|
||||
|
||||
[tool.poetry.extras]
|
||||
examples = [
|
||||
"python-dotenv",
|
||||
# LlamaIndex examples:
|
||||
"llama-index-embeddings-huggingface",
|
||||
"llama-index-llms-huggingface-api",
|
||||
"llama-index-vector-stores-milvus",
|
||||
# LangChain examples:
|
||||
"langchain-huggingface",
|
||||
"langchain-milvus",
|
||||
"langchain-text-splitters",
|
||||
]
|
||||
|
||||
python-dotenv = "^1.0.1"
|
||||
llama-index-embeddings-huggingface = "^0.3.1"
|
||||
llama-index-llms-huggingface-api = "^0.2.0"
|
||||
llama-index-vector-stores-milvus = "^0.2.1"
|
||||
langchain-huggingface = "^0.0.3"
|
||||
langchain-milvus = "^0.1.4"
|
||||
langchain-text-splitters = "^0.2.4"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
docling = "docling.cli.main:app"
|
||||
|
||||
Reference in New Issue
Block a user