forked from jessesherlock/colorific
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (36 loc) · 1.11 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
39
40
41
42
# -*- coding: utf-8 -*-
#
# setup.py
# colorific
#
"""
Package information for colorific.
"""
import sys
# check for the supported Python version
version = tuple(sys.version_info[:2])
if version != (2, 7):
sys.stderr.write(
'colorific requires Python 2.7 (you have %d.%d)\n' % version)
sys.stderr.flush()
sys.exit(1)
import os.path
from setuptools import setup, find_packages
PROJECT_DIR = os.path.realpath(os.path.join(os.path.dirname(__file__)))
README_PATH = os.path.join(PROJECT_DIR, 'README.rst')
REQUIREMENTS_PATH = os.path.join(PROJECT_DIR, 'requirements.pip')
VERSION = __import__('colorific').get_version()
setup(
name='colorific',
version=VERSION,
description='Automatic color palette detection',
long_description=file(README_PATH).read(),
author='Lars Yencken',
author_email='[email protected]',
url='http://github.com/99designs/colorific',
license='ISC',
packages=find_packages(),
zip_safe=False,
install_requires=[i.strip() for i in file(REQUIREMENTS_PATH).readlines()],
entry_points={'console_scripts': ['colorific = colorific.script:main']},
)