setup.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. from setuptools import setup, find_packages
  2. with open("README.md", encoding='utf-8') as f:
  3. long_description = f.read()
  4. version = None
  5. with open('./src/jmcomic/__init__.py', encoding='utf-8') as f:
  6. for line in f:
  7. if '__version__' in line:
  8. version = line[line.index("'") + 1: line.rindex("'")]
  9. break
  10. if version is None:
  11. print('Set version first!')
  12. exit(1)
  13. setup(
  14. name='jmcomic',
  15. version=version,
  16. description='Python API For JMComic (禁漫天堂)',
  17. long_description_content_type="text/markdown",
  18. long_description=long_description,
  19. url='https://github.com/hect0x7/JMComic-Crawler-Python',
  20. author='hect0x7',
  21. author_email='93357912+hect0x7@users.noreply.github.com',
  22. packages=find_packages("src"),
  23. package_dir={"": "src"},
  24. python_requires=">=3.7",
  25. install_requires=[
  26. 'commonX>=0.6.4',
  27. 'curl_cffi',
  28. 'PyYAML',
  29. 'Pillow',
  30. 'pycryptodome',
  31. ],
  32. keywords=['python', 'jmcomic', '18comic', '禁漫天堂', 'NSFW'],
  33. classifiers=[
  34. "Development Status :: 4 - Beta",
  35. "Intended Audience :: Developers",
  36. "Programming Language :: Python :: 3.7",
  37. "Programming Language :: Python :: 3.8",
  38. "Programming Language :: Python :: 3.9",
  39. "Programming Language :: Python :: 3.10",
  40. "Programming Language :: Python :: 3.11",
  41. "Operating System :: MacOS",
  42. "Operating System :: POSIX :: Linux",
  43. "Operating System :: Microsoft :: Windows",
  44. ],
  45. entry_points={
  46. 'console_scripts': [
  47. 'jmcomic = jmcomic.cl:main'
  48. ]
  49. }
  50. )