pyproject.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [project]
  2. name = "pdf2zh"
  3. version = "1.8.8"
  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. "requests",
  15. "pymupdf",
  16. "tqdm",
  17. "tenacity",
  18. "numpy",
  19. "ollama",
  20. "deepl",
  21. "openai",
  22. "azure-ai-translation-text<=1.0.1",
  23. "gradio",
  24. "huggingface_hub",
  25. "onnx",
  26. "onnxruntime",
  27. "opencv-python-headless",
  28. "tencentcloud-sdk-python",
  29. "pdfminer.six>=20240706",
  30. "gradio_pdf>=0.0.21",
  31. "pikepdf",
  32. "tortoise-orm>=0.22.2",
  33. ]
  34. [project.optional-dependencies]
  35. dev = [
  36. "black",
  37. "flake8",
  38. "pre-commit",
  39. "pytest",
  40. "build"
  41. ]
  42. backend = [
  43. "flask",
  44. "celery",
  45. "redis"
  46. ]
  47. [project.urls]
  48. Homepage = "https://github.com/Byaidu/PDFMathTranslate"
  49. [build-system]
  50. requires = ["hatchling"]
  51. build-backend = "hatchling.build"
  52. [project.scripts]
  53. pdf2zh = "pdf2zh.pdf2zh:main"