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