2021-09-26 20:45:02 +00:00
# -*- coding: utf-8 -*-
""" Setup module. """
try :
from setuptools import setup
except ImportError :
from distutils . core import setup
2021-09-29 15:20:18 +00:00
MINIMAL_DESCRIPTION = ''' Samila is a generative art generator written in Python, Samila let ' s you create arts based on many thousand points. The position of every single point is calculated by a formula, which has random parameters. Because of the random numbers, every image looks different. '''
2021-09-26 20:45:02 +00:00
2021-09-29 22:56:47 +00:00
def get_requires ( ) :
""" Read requirements.txt. """
requirements = open ( " requirements.txt " , " r " ) . read ( )
2021-09-26 20:45:02 +00:00
return list ( filter ( lambda x : x != " " , requirements . split ( ) ) )
def read_description ( ) :
""" Read README.md and CHANGELOG.md. """
try :
with open ( " README.md " ) as r :
description = " \n "
description + = r . read ( )
with open ( " CHANGELOG.md " ) as c :
description + = " \n "
description + = c . read ( )
return description
except Exception :
return MINIMAL_DESCRIPTION
setup (
name = ' samila ' ,
packages = [ ' samila ' ] ,
2021-10-13 08:10:41 +00:00
version = ' 0.2 ' ,
2021-09-26 20:45:02 +00:00
description = ' Generative ART ' ,
2021-09-29 22:56:47 +00:00
long_description = read_description ( ) ,
2021-09-26 20:45:02 +00:00
long_description_content_type = ' text/markdown ' ,
author = ' Sepand Haghighi ' ,
2021-09-29 14:37:35 +00:00
author_email = ' info@4r7.ir ' ,
2021-09-26 20:45:02 +00:00
url = ' https://github.com/sepandhaghighi/samila ' ,
2021-10-13 08:10:41 +00:00
download_url = ' https://github.com/sepandhaghighi/samila/tarball/v0.2 ' ,
2021-09-29 22:56:47 +00:00
keywords = " generative-art art nft file nft-storage " ,
2021-09-26 20:45:02 +00:00
project_urls = {
' Source ' : ' https://github.com/sepandhaghighi/samila ' ,
' Tracker ' : ' https://github.com/sepandhaghighi/samila/issues ' ,
2021-10-30 08:24:34 +00:00
' Discord ' : ' https://discord.com/invite/94bz5QGZWb ' ,
2021-09-26 20:45:02 +00:00
} ,
2021-09-29 22:56:47 +00:00
install_requires = get_requires ( ) ,
2021-09-26 20:45:02 +00:00
python_requires = ' >=3.5 ' ,
classifiers = [
2021-10-10 21:35:17 +00:00
' Development Status :: 3 - Alpha ' ,
2021-09-26 20:45:02 +00:00
' Natural Language :: English ' ,
' License :: OSI Approved :: MIT License ' ,
' Operating System :: OS Independent ' ,
2021-10-10 21:35:17 +00:00
' Topic :: Games/Entertainment ' ,
' Topic :: Multimedia ' ,
' Topic :: Multimedia :: Graphics ' ,
' Topic :: Multimedia :: Graphics :: 3D Modeling ' ,
' Topic :: Multimedia :: Graphics :: 3D Rendering ' ,
' Topic :: Scientific/Engineering ' ,
' Topic :: Scientific/Engineering :: Mathematics ' ,
' Topic :: Scientific/Engineering :: Visualization ' ,
2021-09-26 20:45:02 +00:00
' Programming Language :: Python :: 3.5 ' ,
' Programming Language :: Python :: 3.6 ' ,
' Programming Language :: Python :: 3.7 ' ,
' Programming Language :: Python :: 3.8 ' ,
' Programming Language :: Python :: 3.9 ' ,
2021-10-30 10:05:32 +00:00
' Programming Language :: Python :: 3.10 ' ,
2021-09-26 20:45:02 +00:00
] ,
license = ' MIT ' ,
include_package_data = True
)