55 lines
1.1 KiB
TOML
55 lines
1.1 KiB
TOML
[project]
|
|
name = "doc-processer"
|
|
version = "0.1.0"
|
|
description = "Document processing API - Image to LaTeX/Markdown/MathML and Markdown to DOCX"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = { text = "MIT" }
|
|
authors = [
|
|
{ name = "YogeLiu" }
|
|
]
|
|
|
|
dependencies = [
|
|
"fastapi>=0.115.0",
|
|
"uvicorn[standard]>=0.32.0",
|
|
"opencv-python>=4.10.0",
|
|
"python-multipart>=0.0.12",
|
|
"pydantic>=2.10.0",
|
|
"pydantic-settings>=2.6.0",
|
|
"httpx>=0.28.0",
|
|
"numpy>=1.26.0",
|
|
"pillow>=10.4.0",
|
|
"python-docx>=1.1.0",
|
|
"paddleocr>=2.9.0",
|
|
"doclayout-yolo>=0.0.2",
|
|
"latex2mathml>=3.77.0",
|
|
"paddle>=1.2.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.24.0",
|
|
"ruff>=0.8.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["app"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py311"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
|