many pep8 improvements

This commit is contained in:
mdipierro
2012-10-19 12:33:53 -05:00
parent b716df1a05
commit 4b2ba185ae
117 changed files with 7160 additions and 5670 deletions
+8 -6
View File
@@ -5,6 +5,7 @@ from gluon.fileutils import tar, untar, read_file, write_file
import tarfile
import sys
def tar(file, filelist, expression='^.+$'):
"""
tars dir/files into file, only tars file that match expression
@@ -21,9 +22,10 @@ def tar(file, filelist, expression='^.+$'):
finally:
tar.close()
def start():
if 'sdist' in sys.argv:
tar('gluon/env.tar',['applications','VERSION','splashlogo.gif'])
tar('gluon/env.tar', ['applications', 'VERSION', 'splashlogo.gif'])
setup(name='web2py',
version=read_file("VERSION").split()[1],
@@ -45,10 +47,10 @@ def start():
""",
author='Massimo Di Pierro',
author_email='mdipierro@cs.depaul.edu',
license = 'http://web2py.com/examples/default/license',
classifiers = ["Development Status :: 5 - Production/Stable"],
license='http://web2py.com/examples/default/license',
classifiers=["Development Status :: 5 - Production/Stable"],
url='http://web2py.com',
platforms ='Windows, Linux, Mac, Unix,Windows Mobile',
platforms='Windows, Linux, Mac, Unix,Windows Mobile',
packages=['gluon',
'gluon/contrib',
'gluon/contrib/gateways',
@@ -63,8 +65,8 @@ def start():
'gluon/contrib/simplejson',
'gluon/tests',
],
package_data = {'gluon':['env.tar']},
scripts = ['w2p_apps','w2p_run','w2p_clone'],
package_data={'gluon': ['env.tar']},
scripts=['w2p_apps', 'w2p_run', 'w2p_clone'],
)
if __name__ == '__main__':