1 from setuptools
import setup
, find_packages
6 if sys
.version
[0] == "2":
7 from pipes
import quote
9 from shlex
import quote
26 # Default user (considers non virtualenv method)
27 user
= os
.environ
.get('SUDO_USER', os
.environ
.get('USER', None))
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
35 cmd
= 'chown ' + quote(user
) + ' ' + default
37 cmd
= 'chmod 777 ' + default
41 setup(name
='rainbowstream',
43 description
="A smart and nice Twitter client on terminal.",
44 long_description
=open("./README.rst", "r").read(),
46 "Development Status :: 5 - Production/Stable",
47 "Environment :: Console",
48 "Intended Audience :: End Users/Desktop",
49 "Natural Language :: English",
50 "Operating System :: OS Independent",
51 "Programming Language :: Python :: 2.7",
52 "Programming Language :: Python :: 3.2",
53 "Programming Language :: Python :: 3.3",
54 "Programming Language :: Python :: 3.4",
55 "Programming Language :: Python :: 3.5",
56 "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
58 "License :: OSI Approved :: MIT License",
60 keywords
='twitter, command-line tools, stream API',
61 author
='Vu Nhat Minh',
62 author_email
='nhatminh179@gmail.com',
63 url
='http://www.rainbowstream.org/',
64 license
='MIT License',
65 packages
=find_packages(exclude
=['ez_setup', 'examples', 'tests']),
66 include_package_data
=True,
68 install_requires
=install_requires
,
70 # -*- Entry points: -*-
72 rainbowstream=rainbowstream.rainbow:fly