51 lines
968 B
TOML
51 lines
968 B
TOML
[project]
|
|
name = "md-vector-db"
|
|
version = "0.1.0"
|
|
description = "Markdown 文档向量数据库,支持语义检索"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"chromadb>=0.5.0",
|
|
"sentence-transformers>=3.0.0",
|
|
"fastapi>=0.115.0",
|
|
"uvicorn[standard]>=0.30.0",
|
|
"pyyaml>=6.0",
|
|
"markdown-it-py>=3.0.0",
|
|
"typer>=0.12.0",
|
|
"python-dotenv>=1.2.2",
|
|
]
|
|
|
|
[project.scripts]
|
|
md-vector-db = "src.cli.main:app"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"httpx>=0.27.0",
|
|
]
|
|
pdf = [
|
|
"pymupdf>=1.24.0",
|
|
]
|
|
html = [
|
|
"beautifulsoup4>=4.12.0",
|
|
]
|
|
all = [
|
|
"md-vector-db[pdf,html]",
|
|
"requests>=2.31.0",
|
|
"openai>=1.0.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/"]
|
|
|
|
[tool.uv]
|
|
find-links = ["D:/settings/Language/Python/库"]
|
|
index-strategy = "unsafe-best-match"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["src"]
|