setup.py 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # -*- coding: utf-8 -*-
  2. """Setup module."""
  3. try:
  4. from setuptools import setup
  5. except ImportError:
  6. from distutils.core import setup
  7. MINIMAL_DESCRIPTION = '''Samila is a generative art generator written in Python, Samila lets you create images based on many thousand points. The position of every single point is calculated by a
  8. formula, which has random parameters. Because of the random numbers, every image looks different.'''
  9. def get_requires():
  10. """Read requirements.txt."""
  11. requirements = open("requirements.txt", "r").read()
  12. return list(filter(lambda x: x != "", requirements.split()))
  13. def read_description():
  14. """Read README.md and CHANGELOG.md."""
  15. try:
  16. with open("README.md") as r:
  17. description = "\n"
  18. description += r.read()
  19. with open("CHANGELOG.md") as c:
  20. description += "\n"
  21. description += c.read()
  22. return description
  23. except Exception:
  24. return MINIMAL_DESCRIPTION
  25. setup(
  26. name='samila',
  27. packages=['samila'],
  28. version='1.3',
  29. description='A Generative Art Generator',
  30. long_description=read_description(),
  31. long_description_content_type='text/markdown',
  32. author='Samila Development Team',
  33. author_email='info@samila.site',
  34. url='https://www.samila.site',
  35. download_url='https://github.com/sepandhaghighi/samila/tarball/v1.3',
  36. keywords="generative generative-art art nft file",
  37. project_urls={
  38. 'Source': 'https://github.com/sepandhaghighi/samila',
  39. 'Tracker': 'https://github.com/sepandhaghighi/samila/issues',
  40. 'Discord': 'https://discord.com/invite/94bz5QGZWb',
  41. },
  42. install_requires=get_requires(),
  43. python_requires='>=3.6',
  44. classifiers=[
  45. 'Development Status :: 5 - Production/Stable',
  46. 'Natural Language :: English',
  47. 'License :: OSI Approved :: MIT License',
  48. 'Operating System :: OS Independent',
  49. 'Topic :: Games/Entertainment',
  50. 'Topic :: Multimedia',
  51. 'Topic :: Multimedia :: Graphics',
  52. 'Topic :: Multimedia :: Graphics :: 3D Modeling',
  53. 'Topic :: Multimedia :: Graphics :: 3D Rendering',
  54. 'Topic :: Scientific/Engineering',
  55. 'Topic :: Scientific/Engineering :: Mathematics',
  56. 'Topic :: Scientific/Engineering :: Visualization',
  57. 'Programming Language :: Python :: 3.6',
  58. 'Programming Language :: Python :: 3.7',
  59. 'Programming Language :: Python :: 3.8',
  60. 'Programming Language :: Python :: 3.9',
  61. 'Programming Language :: Python :: 3.10',
  62. 'Programming Language :: Python :: 3.11',
  63. 'Programming Language :: Python :: 3.12',
  64. ],
  65. license='MIT',
  66. include_package_data=True
  67. )