X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=setup.py;h=31300ea2614cdc0675a6281412a667783a8b88c5;hp=8cf886f63a3292f09d3ab0dba70b84497beb0d06;hb=ba8193448542c4a045c93dec7f7545f7f56d4c61;hpb=fba038b1f789c78f14bafd8968b22e173d899d3f diff --git a/setup.py b/setup.py index 8cf886f..31300ea 100644 --- a/setup.py +++ b/setup.py @@ -3,28 +3,35 @@ import os import os.path import sys +if sys.version[0] == "2": + from pipes import quote +else: + from shlex import quote + # Bumped version -version = '0.5.8' +version = '1.3.4' # Require install_requires = [ "python-dateutil", - "requests", + "arrow", + "requests==2.5.3", "pyfiglet", - "SQLAlchemy", "twitter", "Pillow", + "PySocks" ] -# Python 3 doesn't have pysqlite -if sys.version[0] == "2": - install_requires += ["pysqlite"] +# Default user (considers non virtualenv method) +user = os.environ.get('SUDO_USER', os.environ['USER']) # Copy default config if not exists default = os.path.expanduser("~") + os.sep + '.rainbow_config.json' if not os.path.isfile(default): cmd = 'cp rainbowstream/colorset/config ' + default os.system(cmd) + cmd = 'chown ' + quote(user) + ' ' + default + os.system(cmd) cmd = 'chmod 777 ' + default os.system(cmd) @@ -43,6 +50,7 @@ setup(name='rainbowstream', "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License",