pyproject.toml 988 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [project]
  2. name = "pdf2zh"
  3. version = "1.8.0"
  4. description = "Latex PDF Translator"
  5. authors = [{ name = "Byaidu", email = "byaidux@gmail.com" }]
  6. license = "AGPL-3.0"
  7. readme = "README.md"
  8. requires-python = ">=3.9,<3.13"
  9. classifiers = [
  10. "Programming Language :: Python :: 3",
  11. "Operating System :: OS Independent",
  12. ]
  13. dependencies = [
  14. "charset-normalizer",
  15. "cryptography",
  16. "requests",
  17. "pymupdf",
  18. "tqdm",
  19. "tenacity",
  20. "numpy",
  21. "ollama",
  22. "deepl<1.19.1",
  23. "openai",
  24. "requests",
  25. "azure-ai-translation-text<=1.0.1",
  26. "gradio",
  27. "huggingface_hub",
  28. "onnx",
  29. "onnxruntime",
  30. "opencv-python-headless",
  31. ]
  32. [project.optional-dependencies]
  33. torch = [
  34. "doclayout-yolo",
  35. "torch",
  36. ]
  37. dev = [
  38. "black",
  39. "flake8",
  40. "pre-commit"
  41. ]
  42. [project.urls]
  43. Homepage = "https://github.com/Byaidu/PDFMathTranslate"
  44. [build-system]
  45. requires = ["hatchling"]
  46. build-backend = "hatchling.build"
  47. [project.scripts]
  48. pdf2zh = "pdf2zh.pdf2zh:main"