check config and little refactoring
[rainbowstream.git] / setup.py
CommitLineData
91476ec3 1from setuptools import setup, find_packages
1f2f6159 2import os, sys
91476ec3 3
1f2f6159 4# Bumped version
8b8566d1 5version = '0.3.9'
91476ec3 6
1f2f6159 7# Require
91476ec3 8install_requires = [
7a466a72
O
9 "python-dateutil",
10 "requests",
11 "pyfiglet",
819569e8 12 "SQLAlchemy",
991c30af
O
13 "twitter",
14 "Pillow",
7b674cef 15]
1f2f6159 16# Python 3 doesn't hava pysqlite
3966e828 17if sys.version[0] == "2":
a5901ee1 18 install_requires += ["pysqlite"]
91476ec3 19
1f2f6159
O
20# Copy default config if not exists
21default = os.environ.get(
22 'HOME',
23 os.environ.get(
24 'USERPROFILE',
25 '')) + os.sep + '.rainbow_config.json'
26if not os.path.isfile(default):
27 cmd = 'cp rainbowstream/colorset/config ' + default
28 os.system(cmd)
29
30# Setup
91476ec3
O
31setup(name='rainbowstream',
32 version=version,
3f89ae3a 33 description="A smart and nice Twitter client on terminal.",
3108149e 34 long_description=open("./README.rst", "r").read(),
91476ec3
O
35 classifiers=[
36 "Development Status :: 5 - Production/Stable",
37 "Environment :: Console",
38 "Intended Audience :: End Users/Desktop",
39 "Natural Language :: English",
40 "Operating System :: OS Independent",
91476ec3 41 "Programming Language :: Python :: 2.7",
687567eb 42 "Programming Language :: Python :: 3.2",
43 "Programming Language :: Python :: 3.3",
1b752a04 44 "Programming Language :: Python :: 3.4",
91476ec3
O
45 "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
46 "Topic :: Utilities",
47 "License :: OSI Approved :: MIT License",
7b674cef 48 ],
c333c6dc 49 keywords='twitter, command-line tools, stream API',
91476ec3 50 author='Vu Nhat Minh',
7a466a72 51 author_email='nhatminh179@gmail.com',
1b752a04 52 url='http://www.rainbowstream.org/',
91476ec3
O
53 license='MIT License',
54 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
55 include_package_data=True,
56 zip_safe=True,
57 install_requires=install_requires,
58 entry_points="""
59 # -*- Entry points: -*-
60 [console_scripts]
2a488171 61 rainbowstream=rainbowstream.rainbow:fly
91476ec3
O
62 """,
63 )