pyproject.toml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. [build-system]
  2. requires = ["setuptools>=61.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "mineru"
  6. dynamic = ["version"]
  7. license = {text = "AGPL-3.0"}
  8. description = "A practical tool for converting PDF to Markdown"
  9. readme = "README.md"
  10. requires-python = ">=3.10,<3.14"
  11. keywords = ["magic-pdf", "mineru", "MinerU", "convert", "pdf", "markdown"]
  12. classifiers = [
  13. "Programming Language :: Python :: 3.10",
  14. "Programming Language :: Python :: 3.11",
  15. "Programming Language :: Python :: 3.12",
  16. "Programming Language :: Python :: 3.13",
  17. ]
  18. dependencies = [
  19. "boto3>=1.28.43",
  20. "click>=8.1.7",
  21. "loguru>=0.7.2",
  22. "numpy>=1.21.6",
  23. "pdfminer.six==20250506",
  24. "tqdm>=4.67.1",
  25. "requests",
  26. "httpx",
  27. "pillow>=11.0.0",
  28. "pypdfium2>=4.30.0",
  29. "pypdf>=5.6.0",
  30. "reportlab",
  31. "pdftext>=0.6.2",
  32. "modelscope>=1.26.0",
  33. "huggingface-hub>=0.32.4",
  34. "json-repair>=0.46.2",
  35. "opencv-python>=4.11.0.86",
  36. "fast-langdetect>=0.2.3,<0.3.0",
  37. ]
  38. [project.optional-dependencies]
  39. vlm = [
  40. "transformers>=4.51.1",
  41. "torch>=2.6.0",
  42. "accelerate>=1.5.1",
  43. "pydantic",
  44. ]
  45. sglang = [
  46. "sglang[all]>=0.4.8,<0.4.9",
  47. ]
  48. pipeline = [
  49. "matplotlib>=3.10,<4",
  50. "ultralytics>=8.3.48,<9",
  51. "doclayout_yolo==0.0.4",
  52. "dill>=0.3.8,<1",
  53. "rapid_table>=1.0.5,<2.0.0",
  54. "PyYAML>=6.0.2,<7",
  55. "ftfy>=6.3.1,<7",
  56. "openai>=1.70.0,<2",
  57. "shapely>=2.0.7,<3",
  58. "pyclipper>=1.3.0,<2",
  59. "omegaconf>=2.3.0,<3",
  60. "torch>=2.2.2,!=2.5.0,!=2.5.1,<3",
  61. "torchvision",
  62. "transformers>=4.49.0,!=4.51.0,<5.0.0",
  63. ]
  64. api = [
  65. "fastapi",
  66. "python-multipart",
  67. "uvicorn",
  68. ]
  69. gradio = [
  70. "gradio>=5.34,<6",
  71. "gradio-pdf>=0.0.22",
  72. ]
  73. core = [
  74. "mineru[vlm]",
  75. "mineru[pipeline]",
  76. "mineru[api]",
  77. "mineru[gradio]",
  78. ]
  79. all = [
  80. "mineru[core]",
  81. "mineru[sglang]",
  82. ]
  83. pipeline_old_linux = [
  84. "matplotlib>=3.10,<=3.10.1",
  85. "ultralytics>=8.3.48,<=8.3.104",
  86. "doclayout_yolo==0.0.4",
  87. "dill==0.3.8",
  88. "PyYAML==6.0.2",
  89. "ftfy==6.3.1",
  90. "openai==1.71.0",
  91. "shapely==2.1.0",
  92. "pyclipper==1.3.0.post6",
  93. "omegaconf==2.3.0",
  94. "albumentations==1.4.20",
  95. "rapid_table==1.0.3",
  96. "torch>=2.2.2,!=2.5.0,!=2.5.1,<3",
  97. "torchvision",
  98. "transformers>=4.49.0,!=4.51.0,<5.0.0",
  99. ]
  100. [project.urls]
  101. Home = "https://mineru.net/"
  102. Repository = "https://github.com/opendatalab/MinerU"
  103. [project.scripts]
  104. mineru = "mineru.cli:client.main"
  105. mineru-sglang-server = "mineru.cli.vlm_sglang_server:main"
  106. mineru-models-download = "mineru.cli.models_download:download_models"
  107. mineru-api = "mineru.cli.fast_api:main"
  108. mineru-gradio = "mineru.cli.gradio_app:main"
  109. [tool.setuptools.dynamic]
  110. version = {attr = "mineru.version.__version__"}
  111. [tool.setuptools.packages.find]
  112. include = ["mineru*"]
  113. namespaces = false
  114. [tool.setuptools.package-data]
  115. "mineru" = ["resources/**"]
  116. "mineru.model.ocr.paddleocr2pytorch.pytorchocr.utils" = ["resources/**"]
  117. [tool.setuptools]
  118. include-package-data = true
  119. zip-safe = false