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