pyproject.toml 949 B

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