setup.py 856 B

1234567891011121314151617181920212223242526272829303132
  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. include_package_data=True,
  20. classifiers=[
  21. "Programming Language :: Python :: 3",
  22. "Operating System :: OS Independent",
  23. ],
  24. entry_points={
  25. 'console_scripts': [
  26. 'pdf2zh=pdf2zh.pdf2zh:main',
  27. ]
  28. },
  29. )