(file, print_=True)
return ret
Show the contents of a tarball.

    The current options for file are

    source: The source tarball
    win: The Python 2 Windows installer (Not yet implemented!)
    html: The html docs zip

    Note, this runs locally, not in vagrant.
Show the contents of a tarball.
Show the contents of a tarball .
def show_files(file, print_=True):
    """
    Show the contents of a tarball.

    The current options for file are

    source: The source tarball
    win: The Python 2 Windows installer (Not yet implemented!)
    html: The html docs zip

    Note, this runs locally, not in vagrant.
    """
    # TODO: Test the unarchived name. See
    # https://github.com/sympy/sympy/issues/7087.
    if file == 'source':
        ret = local("tar tf release/{source}".format(**tarball_formatter()), capture=True)
    elif file == 'win':
        # TODO: Windows
        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
def show_files ( file , print_ = True ) : # TODO: Test the unarchived name. See # https://github.com/sympy/sympy/issues/7087. if file == 'source' : ret = local ( "tar tf release/{source}" . format ( * * tarball_formatter ( ) ) , capture = True ) elif file == 'win' : # TODO: Windows 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