pyproject.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. "xinference-client",
  21. "deepl",
  22. "openai",
  23. "azure-ai-translation-text<=1.0.1",
  24. "gradio",
  25. "huggingface_hub",
  26. "onnx",
  27. "onnxruntime",
  28. "opencv-python-headless",
  29. "tencentcloud-sdk-python",
  30. "pdfminer.six>=20240706",
  31. "gradio_pdf>=0.0.21",
  32. "pikepdf",
  33. "peewee>=3.17.8",
  34. "argostranslate",
  35. "fontTools"
  36. ]
  37. [project.optional-dependencies]
  38. dev = [
  39. "black",
  40. "flake8",
  41. "pre-commit",
  42. "pytest",
  43. "build"
  44. ]
  45. backend = [
  46. "flask",
  47. "celery",
  48. "redis"
  49. ]
  50. [project.urls]
  51. Homepage = "https://github.com/Byaidu/PDFMathTranslate"
  52. [build-system]
  53. requires = ["hatchling"]
  54. build-backend = "hatchling.build"
  55. [project.scripts]
  56. pdf2zh = "pdf2zh.pdf2zh:main"
  57. [tool.flake8]
  58. ignore = ["E203", "E261", "E501", "W503", "E741"]
  59. max-line-length = 88