X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=setup.py;h=da183cccb2a306c5749c4f54c42a13756bcfdbcf;hp=2e7a14d1de0742af43943320fb866c4070d1a2fc;hb=0e6d22d6fb2c54f5eb37028da1414279e2d1a625;hpb=0b9cc35c0ff017de1d32bf8dc776053262000a41 diff --git a/setup.py b/setup.py index 2e7a14d..fe816d1 100644 --- a/setup.py +++ b/setup.py @@ -1,31 +1,41 @@ from setuptools import setup, find_packages -import os, sys +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.3.6' +version = '1.5.2' # Require install_requires = [ "python-dateutil", + "arrow", "requests", "pyfiglet", - "SQLAlchemy", "twitter", "Pillow", + "PySocks", + "pocket" ] -# Python 3 doesn't hava pysqlite -if sys.version[0] == "2": - install_requires += ["pysqlite"] + +# Default user (considers non virtualenv method) +user = os.environ.get('SUDO_USER', os.environ.get('USER', None)) # Copy default config if not exists -default = os.environ.get( - 'HOME', - os.environ.get( - 'USERPROFILE', - '')) + os.sep + '.rainbow_config.json' +default = os.path.expanduser("~") + os.sep + '.rainbow_config.json' if not os.path.isfile(default): cmd = 'cp rainbowstream/colorset/config ' + default os.system(cmd) + if user: + cmd = 'chown ' + quote(user) + ' ' + default + os.system(cmd) + cmd = 'chmod 777 ' + default + os.system(cmd) # Setup setup(name='rainbowstream', @@ -39,7 +49,12 @@ setup(name='rainbowstream', "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.2", + "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", @@ -53,6 +68,7 @@ setup(name='rainbowstream', include_package_data=True, zip_safe=True, install_requires=install_requires, + long_description_content_type='text/markdown', entry_points=""" # -*- Entry points: -*- [console_scripts]