check config and little refactoring
[rainbowstream.git] / setup.py
1 from setuptools import setup, find_packages
2 import os, sys
3
4 # Bumped version
5 version = '0.3.9'
6
7 # Require
8 install_requires = [
9 "python-dateutil",
10 "requests",
11 "pyfiglet",
12 "SQLAlchemy",
13 "twitter",
14 "Pillow",
15 ]
16 # Python 3 doesn't hava pysqlite
17 if sys.version[0] == "2":
18 install_requires += ["pysqlite"]
19
20 # Copy default config if not exists
21 default = os.environ.get(
22 'HOME',
23 os.environ.get(
24 'USERPROFILE',
25 '')) + os.sep + '.rainbow_config.json'
26 if not os.path.isfile(default):
27 cmd = 'cp rainbowstream/colorset/config ' + default
28 os.system(cmd)
29
30 # Setup
31 setup(name='rainbowstream',
32 version=version,
33 description="A smart and nice Twitter client on terminal.",
34 long_description=open("./README.rst", "r").read(),
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",
41 "Programming Language :: Python :: 2.7",
42 "Programming Language :: Python :: 3.2",
43 "Programming Language :: Python :: 3.3",
44 "Programming Language :: Python :: 3.4",
45 "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
46 "Topic :: Utilities",
47 "License :: OSI Approved :: MIT License",
48 ],
49 keywords='twitter, command-line tools, stream API',
50 author='Vu Nhat Minh',
51 author_email='nhatminh179@gmail.com',
52 url='http://www.rainbowstream.org/',
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]
61 rainbowstream=rainbowstream.rainbow:fly
62 """,
63 )