pyproject.toml 902 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [project]
  2. name = "pdf2zh"
  3. version = "1.8.3"
  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. "pdfminer.six>=20240706",
  29. ]
  30. [project.optional-dependencies]
  31. dev = [
  32. "black",
  33. "flake8",
  34. "pre-commit"
  35. ]
  36. [project.urls]
  37. Homepage = "https://github.com/Byaidu/PDFMathTranslate"
  38. [build-system]
  39. requires = ["hatchling"]
  40. build-backend = "hatchling.build"
  41. [project.scripts]
  42. pdf2zh = "pdf2zh.pdf2zh:main"