51 lines
1.3 KiB
TOML
51 lines
1.3 KiB
TOML
[project]
|
|
name = "docutranslate"
|
|
description = "文件翻译工具"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"fastapi[standard]>=0.115.12",
|
|
"jsonpath-ng>=1.7.0",
|
|
"openpyxl>=3.1.5",
|
|
"xlsx2html>=0.6.2",
|
|
"json-repair>=0.48.0",
|
|
"mammoth>=1.10.0",
|
|
"srt>=3.5.3",
|
|
"lxml>=5.4.0",
|
|
"python-docx>=1.2.0",
|
|
"beautifulsoup4>=4.13.4",
|
|
"markdown>=3.8.2",
|
|
"pymdown-extensions>=10.16.1",
|
|
"pysubs2>=1.8.0",
|
|
"httpx>=0.28.1",
|
|
"python-pptx>=1.0.2",
|
|
"pypdf>=6.4.2",
|
|
"regex>=2025.11.3",
|
|
"charset-normalizer>=3.4.4",
|
|
"python-dotenv>=1.0.0",
|
|
]
|
|
dynamic = ["version"]
|
|
|
|
[project.optional-dependencies]
|
|
docling = ["opencv-python>=4.12.0.88", "docling>=2.40.0", "hf-xet>=1.1.10"]
|
|
|
|
[dependency-groups]
|
|
dev = ["opencv-python>=4.12.0.88","docling>=2.40.0", "hf-xet>=1.1.10"]
|
|
[project.scripts]
|
|
docutranslate = "docutranslate.cli:main"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=80.9.0"] # 或者你需要的 setuptools 版本
|
|
build-backend = "setuptools.build_meta"
|
|
backend-path = ["."]
|
|
[tool.setuptools]
|
|
#packages = ["docutranslate"]
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["docutranslate*"]
|
|
[tool.setuptools.package-data]
|
|
docutranslate = ["static/**", "template/**"]
|
|
|
|
[tool.setuptools.dynamic]
|
|
version = { attr = "docutranslate.__version__" }
|