refactoring some code
[rainbowstream.git] / setup.py
CommitLineData
91476ec3 1from setuptools import setup, find_packages
8141aca6 2import os
3import os.path
4import sys
91476ec3 5
1f2f6159 6# Bumped version
8141aca6 7version = '0.5.7'
91476ec3 8
1f2f6159 9# Require
91476ec3 10install_requires = [
7a466a72
O
11 "python-dateutil",
12 "requests",
13 "pyfiglet",
819569e8 14 "SQLAlchemy",
991c30af
O
15 "twitter",
16 "Pillow",
7b674cef 17]
531f5682 18
8141aca6 19# Python 3 doesn't have pysqlite
3966e828 20if sys.version[0] == "2":
a5901ee1 21 install_requires += ["pysqlite"]
91476ec3 22
1f2f6159 23# Copy default config if not exists
8619b00b 24default = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
1f2f6159
O
25if not os.path.isfile(default):
26 cmd = 'cp rainbowstream/colorset/config ' + default
27 os.system(cmd)
21062aeb
O
28 cmd = 'chmod 777 ' + default
29 os.system(cmd)
1f2f6159
O
30
31# Setup
91476ec3
O
32setup(name='rainbowstream',
33 version=version,
3f89ae3a 34 description="A smart and nice Twitter client on terminal.",
3108149e 35 long_description=open("./README.rst", "r").read(),
91476ec3
O
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",
91476ec3 42 "Programming Language :: Python :: 2.7",
687567eb 43 "Programming Language :: Python :: 3.2",
44 "Programming Language :: Python :: 3.3",
1b752a04 45 "Programming Language :: Python :: 3.4",
91476ec3
O
46 "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
47 "Topic :: Utilities",
48 "License :: OSI Approved :: MIT License",
7b674cef 49 ],
c333c6dc 50 keywords='twitter, command-line tools, stream API',
91476ec3 51 author='Vu Nhat Minh',
7a466a72 52 author_email='nhatminh179@gmail.com',
1b752a04 53 url='http://www.rainbowstream.org/',
91476ec3
O
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]
2a488171 62 rainbowstream=rainbowstream.rainbow:fly
91476ec3
O
63 """,
64 )