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