setup.py 978 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. from pathlib import Path
  2. from pdf2zh import __version__, __author__
  3. from setuptools import setup
  4. root_dir = Path(__file__).parent
  5. with open(root_dir / "README.md", encoding='utf-8') as f:
  6. readme = f.read()
  7. setup(
  8. name="pdf2zh",
  9. long_description=readme,
  10. long_description_content_type="text/markdown",
  11. description="Latex PDF Translator",
  12. license="MIT",
  13. version=__version__,
  14. author=__author__,
  15. author_email="byaidux@gmail.com",
  16. url="https://github.com/Byaidu/PDFMathTranslate",
  17. packages=["pdf2zh"],
  18. install_requires=[
  19. "charset-normalizer",
  20. "cryptography",
  21. "mtranslate",
  22. "pymupdf",
  23. "tqdm",
  24. "tenacity",
  25. "layoutparser[effdet]",
  26. "numpy",
  27. ],
  28. classifiers=[
  29. "Programming Language :: Python :: 3",
  30. "Operating System :: OS Independent",
  31. ],
  32. entry_points={
  33. 'console_scripts': [
  34. 'pdf2zh=pdf2zh.pdf2zh:main',
  35. ]
  36. },
  37. )