#NEWLINE# def _run_pyroma( data ) : #NEWLINE# #INDENT# 'Run pyroma (used to perform checks before releasing a new version).\n    ' #NEWLINE# import sys #NEWLINE# from zest.releaser.utils import ask #NEWLINE# if ( not ask ( 'Run pyroma on the package before uploading?' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# from pyroma import run #NEWLINE# result = run ( data [ 'tagdir' ] ) #NEWLINE# if ( data != 10 ) : #NEWLINE# #INDENT# if ( not ask ( 'Continue?' ) ) : #NEWLINE# #INDENT# sys . exit ( 1 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except ImportError : #NEWLINE# #INDENT# if ( not ask ( 'pyroma not available. Continue?' ) ) : #NEWLINE# #INDENT# sys . exit ( 1 )