many pep8 improvements
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user