Add support language versions and bumped to 1.4.0
[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
1bb3cd90 12version = '1.4.0'
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",
337fa242
L
22 "PySocks",
23 "pocket"
7b674cef 24]
531f5682 25
fe9ce36c 26# Default user (considers non virtualenv method)
1265d732 27user = os.environ.get('SUDO_USER', os.environ.get('USER', None))
fe9ce36c 28
1f2f6159 29# Copy default config if not exists
8619b00b 30default = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
1f2f6159
O
31if not os.path.isfile(default):
32 cmd = 'cp rainbowstream/colorset/config ' + default
33 os.system(cmd)
1265d732
ES
34 if user:
35 cmd = 'chown ' + quote(user) + ' ' + default
36 os.system(cmd)
21062aeb
O
37 cmd = 'chmod 777 ' + default
38 os.system(cmd)
1f2f6159
O
39
40# Setup
91476ec3
O
41setup(name='rainbowstream',
42 version=version,
3f89ae3a 43 description="A smart and nice Twitter client on terminal.",
fba038b1 44 long_description=open("./README.rst", "r").read(),
91476ec3
O
45 classifiers=[
46 "Development Status :: 5 - Production/Stable",
47 "Environment :: Console",
48 "Intended Audience :: End Users/Desktop",
49 "Natural Language :: English",
50 "Operating System :: OS Independent",
91476ec3 51 "Programming Language :: Python :: 2.7",
687567eb 52 "Programming Language :: Python :: 3.2",
53 "Programming Language :: Python :: 3.3",
1b752a04 54 "Programming Language :: Python :: 3.4",
86bfb662 55 "Programming Language :: Python :: 3.5",
1bb3cd90 56 "Programming Language :: Python :: 3.6",
57 "Programming Language :: Python :: 3.7",
91476ec3
O
58 "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
59 "Topic :: Utilities",
60 "License :: OSI Approved :: MIT License",
7b674cef 61 ],
c333c6dc 62 keywords='twitter, command-line tools, stream API',
91476ec3 63 author='Vu Nhat Minh',
7a466a72 64 author_email='nhatminh179@gmail.com',
1b752a04 65 url='http://www.rainbowstream.org/',
91476ec3
O
66 license='MIT License',
67 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
68 include_package_data=True,
69 zip_safe=True,
70 install_requires=install_requires,
71 entry_points="""
72 # -*- Entry points: -*-
73 [console_scripts]
2a488171 74 rainbowstream=rainbowstream.rainbow:fly
91476ec3
O
75 """,
76 )