pyproject.toml 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. "azure-ai-translation-text<=1.0.1",
  25. "gradio",
  26. "huggingface_hub",
  27. "onnx",
  28. "onnxruntime",
  29. "opencv-python-headless",
  30. ]
  31. [project.optional-dependencies]
  32. torch = [
  33. "doclayout-yolo",
  34. "torch",
  35. ]
  36. dev = [
  37. "black",
  38. "flake8",
  39. "pre-commit"
  40. ]
  41. [project.urls]
  42. Homepage = "https://github.com/Byaidu/PDFMathTranslate"
  43. [build-system]
  44. requires = ["hatchling"]
  45. build-backend = "hatchling.build"
  46. [project.scripts]
  47. pdf2zh = "pdf2zh.pdf2zh:main"