pyproject.toml 933 B

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