-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
setup.py
50 lines (43 loc) · 1.64 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
43
44
45
46
47
48
49
50
import os
import re
import codecs
from setuptools import find_packages, setup
def abs_path(*relative_path_parts):
return os.path.join(os.path.abspath(os.path.dirname(__file__)),
*relative_path_parts)
name = 'huepy'
with codecs.open(abs_path(name, '__init__.py'), 'r', 'utf-8') as fp:
try:
version = re.findall(r"^__version__ = '([^']+)'.*?$",
fp.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
setup(
name=name,
version=version,
url='https://github.com/s0md3v/huepy',
download_url='https://github.com/s0md3v/huepy/tarball/master',
author='Somdev Sangwan',
author_email='s0md3v@gmail.com',
description='Print awesomely in terminals.',
keywords='hue, color, terminal color, colorama',
packages=find_packages(),
py_modules=['huepy'],
data_files=[('', ['LICENSE'])],
include_package_data=True,
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Intended Audience :: Developers',
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Software Development :: Libraries :: Python Modules',
])