setup.py 948 B

12345678910111213141516171819202122232425262728293031323334353637
  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 >= 2.0.0",
  20. "cryptography >= 36.0.0",
  21. "mtranslate",
  22. "pymupdf",
  23. "tqdm",
  24. "tenacity",
  25. ],
  26. classifiers=[
  27. "Programming Language :: Python :: 3",
  28. "Operating System :: OS Independent",
  29. ],
  30. entry_points={
  31. 'console_scripts': [
  32. 'pdf2zh=pdf2zh.pdf2zh:main',
  33. ]
  34. },
  35. )