forked from ylogx/aesthetics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
38 lines (32 loc) · 1.07 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from distutils.core import setup
from setuptools import find_packages
def get_version():
return '0.1.1'
def get_requirements():
with open('requirements.txt', 'rU') as fhan:
requires = [line.strip() for line in fhan.readlines()]
return requires
def get_long_description():
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
with open('README.txt') as fhan:
long_description = fhan.read()
return long_description
add_keywords = dict(
entry_points={
'console_scripts': ['aesthetics = aesthetics.cli:main'],
}, )
setup(
name='Aesthetics',
description='Image Aesthetics Toolkit',
version=get_version(),
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
license='GPLv3+',
author='Shubham Chaudhary',
author_email='[email protected]',
url='https://github.com/shubhamchaudhary/aesthetics',
long_description=get_long_description(),
install_requires=get_requirements(),
**add_keywords)