projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix build for clean build environments
[rainbowstream.git]
/
setup.py
diff --git
a/setup.py
b/setup.py
index b8330c64515841de3cc6b503dc1807df2c3dcb3f..2b7b15eb0b3431f01dc85a4a3b0ab40574a02bff 100644
(file)
--- a/
setup.py
+++ b/
setup.py
@@
-1,32
+1,41
@@
from setuptools import setup, find_packages
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
# Bumped version
-version = '
0.4.8
'
+version = '
1.3.5
'
# Require
install_requires = [
"python-dateutil",
# Require
install_requires = [
"python-dateutil",
- "requests",
+ "arrow",
+ "requests==2.5.3",
"pyfiglet",
"pyfiglet",
- "SQLAlchemy",
"twitter",
"Pillow",
"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
# 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 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',
# Setup
setup(name='rainbowstream',
@@
-43,6
+52,7
@@
setup(name='rainbowstream',
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"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",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",