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