pyproject.toml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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",
  31. "pikepdf",
  32. ]
  33. [project.optional-dependencies]
  34. dev = [
  35. "black",
  36. "flake8",
  37. "pre-commit",
  38. "pytest",
  39. "build"
  40. ]
  41. backend = [
  42. "flask",
  43. "celery",
  44. "redis"
  45. ]
  46. [project.urls]
  47. Homepage = "https://github.com/Byaidu/PDFMathTranslate"
  48. [build-system]
  49. requires = ["hatchling"]
  50. build-backend = "hatchling.build"
  51. [project.scripts]
  52. pdf2zh = "pdf2zh.pdf2zh:main"