42 lines
837 B
TOML
42 lines
837 B
TOML
[build-system]
|
|
requires = ["setuptools>=68", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "openocr-markdown-service"
|
|
version = "0.1.0"
|
|
description = "FastAPI service that converts images or PDFs to Markdown with OpenOCR."
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"fastapi>=0.115",
|
|
"uvicorn[standard]>=0.30",
|
|
"python-multipart>=0.0.9",
|
|
"pydantic-settings>=2.4",
|
|
"openocr-python==0.1.5",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
server = [
|
|
"torch",
|
|
"torchvision",
|
|
]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"ruff>=0.6",
|
|
]
|
|
|
|
[project.scripts]
|
|
openocr-md-api = "openocr_markdown.api:main"
|
|
openocr-md = "openocr_markdown.cli:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|