-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
51 lines (44 loc) · 1.62 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
51
import re
from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as fp:
long_description = fp.read()
with open(path.join(here, 'hues', '__init__.py'), encoding='utf-8') as fp:
rex = r'^__version__ = \((\d+?), (\d+?), (\d+?)\)$'
vtp = re.search(rex, fp.read(), re.M).groups()
__version__ = '.'.join(vtp)
install_requires = ('PyYAML',)
setup_requires = ('pytest-runner',)
test_requirements = ['pytest', 'coverage', 'pyfakefs']
setup(
name='hues',
version=__version__,
description='Colored terminal text made easy for Python and happiness.',
long_description=long_description,
url='https://github.com/prashnts/hues',
download_url='https://github.com/prashnts/hues/tarball/' + __version__,
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules'
],
keywords='color colour terminal text ansi hues unicorns console',
packages=['hues'],
author='Prashant Sinha',
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=test_requirements,
author_email='[email protected]',
include_package_data=True,
)