json save and load without utf-8
[rainbowstream.git] / setup.py
... / ...
CommitLineData
1from setuptools import setup, find_packages
2from io import open
3import os
4import os.path
5import sys
6
7# Bumped version
8version = '0.5.8'
9
10# Require
11install_requires = [
12 "python-dateutil",
13 "requests",
14 "pyfiglet",
15 "SQLAlchemy",
16 "twitter",
17 "Pillow",
18]
19
20# Python 3 doesn't have pysqlite
21if sys.version[0] == "2":
22 install_requires += ["pysqlite"]
23
24# Copy default config if not exists
25default = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
26if not os.path.isfile(default):
27 cmd = 'cp rainbowstream/colorset/config ' + default
28 os.system(cmd)
29 cmd = 'chmod 777 ' + default
30 os.system(cmd)
31
32# Setup
33setup(name='rainbowstream',
34 version=version,
35 description="A smart and nice Twitter client on terminal.",
36 long_description=open("./README.rst", "r", encoding='utf-8').read(),
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",
43 "Programming Language :: Python :: 2.7",
44 "Programming Language :: Python :: 3.2",
45 "Programming Language :: Python :: 3.3",
46 "Programming Language :: Python :: 3.4",
47 "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
48 "Topic :: Utilities",
49 "License :: OSI Approved :: MIT License",
50 ],
51 keywords='twitter, command-line tools, stream API',
52 author='Vu Nhat Minh',
53 author_email='nhatminh179@gmail.com',
54 url='http://www.rainbowstream.org/',
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]
63 rainbowstream=rainbowstream.rainbow:fly
64 """,
65 )