setup.py 825 B

12345678910111213141516171819202122232425262728293031
  1. from pdf2zh import __version__, __author__
  2. from setuptools import setup
  3. with open("README.md", encoding='utf-8') as f:
  4. readme = f.read()
  5. with open("requirements.txt", encoding='utf-8') as f:
  6. requirements = f.readlines()
  7. setup(
  8. name="pdf2zh",
  9. long_description=readme,
  10. long_description_content_type="text/markdown",
  11. description="Latex PDF Translator",
  12. license="AGPLv3",
  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=requirements,
  19. classifiers=[
  20. "Programming Language :: Python :: 3",
  21. "Operating System :: OS Independent",
  22. ],
  23. entry_points={
  24. 'console_scripts': [
  25. 'pdf2zh=pdf2zh.pdf2zh:main',
  26. ]
  27. },
  28. )