pyproject.toml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [project]
  2. name = "pdf2zh"
  3. version = "1.9.0"
  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.10,<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-tmt",
  30. "pdfminer.six>=20240706",
  31. "gradio_pdf>=0.0.21",
  32. "pikepdf",
  33. "peewee>=3.17.8",
  34. "argostranslate",
  35. "fontTools",
  36. "yadt>=0.0.1a20, <0.2.0",
  37. ]
  38. [project.optional-dependencies]
  39. dev = [
  40. "black",
  41. "flake8",
  42. "pre-commit",
  43. "pytest",
  44. "build"
  45. ]
  46. backend = [
  47. "flask",
  48. "celery",
  49. "redis"
  50. ]
  51. [project.urls]
  52. Homepage = "https://github.com/Byaidu/PDFMathTranslate"
  53. [build-system]
  54. requires = ["hatchling"]
  55. build-backend = "hatchling.build"
  56. [project.scripts]
  57. pdf2zh = "pdf2zh.pdf2zh:main"
  58. [tool.flake8]
  59. ignore = ["E203", "E261", "E501", "W503", "E741"]
  60. max-line-length = 88
  61. [tool.poetry.group.dev.dependencies]
  62. pyinstaller = "^6.11.1"