@task
def show_files(file, print_=True):
 if (file == 'source'):
  ret = local('tar tf release/{source}'.format(**tarball_formatter()), capture=True)
 elif (file == 'win'):
  raise NotImplementedError('Windows installers')
 elif (file == 'html'):
  ret = local('unzip -l release/{html}'.format(**tarball_formatter()), capture=True)
 else:
  raise ValueError((file + ' is not valid'))
 if print_:
  print(ret)
 return ret

@ task def show_files ( file , print_ = True ) : if ( file == 'source' ) : ret = local ( 'tar tf release/{source}' . format ( ** tarball_formatter ( ) ) , capture = True ) elif ( file == 'win' ) : raise NotImplementedError ( 'Windows installers' ) elif ( file == 'html' ) : ret = local ( 'unzip -l release/{html}' . format ( ** tarball_formatter ( ) ) , capture = True ) else : raise ValueError ( ( file + ' is not valid' ) ) if print_ : print ( ret ) return ret
show the contents of a tarball .