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