setup.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. '''
  2. Function:
  3. Implementation of Setup
  4. Author:
  5. Zhenchao Jin
  6. WeChat Official Account (微信公众号):
  7. Charles的皮卡丘
  8. GitHub:
  9. https://github.com/CharlesPikachu/imagedl
  10. '''
  11. import imagedl
  12. from setuptools import setup, find_packages
  13. '''readme'''
  14. with open('README.md', 'r', encoding='utf-8') as f:
  15. long_description = f.read()
  16. '''setup'''
  17. setup(
  18. name=imagedl.__title__,
  19. version=imagedl.__version__,
  20. description=imagedl.__description__,
  21. long_description=long_description,
  22. long_description_content_type='text/markdown',
  23. classifiers=[
  24. 'License :: OSI Approved :: Apache Software License',
  25. 'Programming Language :: Python :: 3',
  26. 'Intended Audience :: Developers',
  27. 'Operating System :: OS Independent'
  28. ],
  29. author=imagedl.__author__,
  30. url=imagedl.__url__,
  31. author_email=imagedl.__email__,
  32. license=imagedl.__license__,
  33. include_package_data=True,
  34. entry_points={'console_scripts': ['imagedl = imagedl.imagedl:ImageClientCMD']},
  35. install_requires=[lab.strip('\n') for lab in list(open('requirements.txt', 'r').readlines())],
  36. zip_safe=True,
  37. packages=find_packages()
  38. )