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