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