PDFTranslator / pyproject.toml
hoang.nguyen6
deploy
f66643d unverified
Raw
History Blame Contribute Delete
1.97 kB
[project]
name = "pdf2zh"
version = "1.9.11"
description = "Latex PDF Translator"
authors = [{ name = "Byaidu", email = "byaidux@gmail.com" }]
license = "AGPL-3.0"
readme = "README.md"
requires-python = ">=3.10,<3.13"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"requests",
# for arm64 linux whells
"pymupdf<1.25.3",
"tqdm",
"tenacity",
"numpy",
"ollama",
"xinference-client",
"deepl",
"openai>=1.0.0",
"azure-ai-translation-text<=1.0.1",
# 5.36 has a bug, webui starts with a white screen
"gradio<5.36",
"huggingface_hub",
"onnx",
"onnxruntime",
"opencv-python-headless",
"tencentcloud-sdk-python-tmt<3.1.129",
"pdfminer-six==20250416",
"gradio_pdf>=0.0.21",
"pikepdf",
"peewee>=3.17.8",
"fontTools",
"babeldoc>=0.1.22, <0.3.0",
"rich",
"json-repair",
"httpx",
"python-dotenv",
"Pillow",
"pydantic_settings",
]
[project.optional-dependencies]
backend = [
"flask",
"celery",
"redis"
]
argostranslate = [
"argostranslate"
]
mcp = [
"mcp>=1.6.0",
"starlette",
]
dev = [
"black",
"ruff",
"pre-commit",
"pytest",
"build",
"bumpver>=2024.1130",
"respx",
"torch",
]
[project.urls]
Homepage = "https://github.com/Byaidu/PDFMathTranslate"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
pdf2zh = "pdf2zh.pdf2zh:main"
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["E", "W", "F", "I"]
ignore = ["E203", "E501"]
[tool.black]
line-length = 88
target-version = ["py310", "py311"]
[bumpver]
current_version = "1.9.11"
version_pattern = "MAJOR.MINOR.PATCH[.PYTAGNUM]"
[bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
'version = "{version}"'
]
"pdf2zh/__init__.py" = [
'__version__ = "{version}"'
]