1import os 2import re 3import codecs 4 5from setuptools import find_packages, setup 6 7 8def abs_path(*relative_path_parts): 9 return os.path.join(os.path.abspath(os.path.dirname(__file__)), 10 *relative_path_parts) 11 12 13name = 'huepy' 14 15with codecs.open(abs_path(name, '__init__.py'), 'r', 'utf-8') as fp: 16 try: 17 version = re.findall(r"^__version__ = '([^']+)'.*?$", 18 fp.read(), re.M)[0] 19 except IndexError: 20 raise RuntimeError('Unable to determine version.') 21 22setup( 23 name=name, 24 version=version, 25 url='https://github.com/s0md3v/huepy', 26 download_url='https://github.com/s0md3v/huepy/tarball/master', 27 author='Somdev Sangwan', 28 author_email='s0md3v@gmail.com', 29 description='Print awesomely in terminals.', 30 keywords='hue, color, terminal color, colorama', 31 packages=find_packages(), 32 py_modules=['huepy'], 33 data_files=[('', ['LICENSE'])], 34 include_package_data=True, 35 classifiers=[ 36 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 37 'Intended Audience :: Developers', 38 'Development Status :: 4 - Beta', 39 'Programming Language :: Python', 40 'Programming Language :: Python :: 2', 41 'Programming Language :: Python :: 2.6', 42 'Programming Language :: Python :: 2.7', 43 'Programming Language :: Python :: 3', 44 'Programming Language :: Python :: 3.4', 45 'Programming Language :: Python :: 3.5', 46 'Programming Language :: Python :: 3.6', 47 'Operating System :: OS Independent', 48 'Environment :: Console', 49 'Topic :: Software Development :: Libraries :: Python Modules', 50 ]) 51