#NEWLINE# def _create_gh_release( ) : #NEWLINE# #INDENT# version = _get_stable_version ( ) #NEWLINE# name = 'Version {}' . format ( version ) #NEWLINE# path = _path ( 'dist/phy-{}.zip' . format ( version ) ) #NEWLINE# assert op . exists ( path ) #NEWLINE# with open ( _path ( '.github_credentials' ) , 'r' ) as f : #NEWLINE# #INDENT# ( user , pwd ) = f . read ( ) . strip ( ) . split ( ':' ) #NEWLINE# #UNINDENT# gh = login ( user , pwd ) #NEWLINE# phy = gh . repository ( 'kwikteam' , 'phy' ) #NEWLINE# if ( input ( 'About to create a GitHub release: are you sure?' ) != 'yes' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# release = phy . create_release ( ( 'v' + version ) , name = name ) #NEWLINE# release . upload_asset ( 'application/zip' , op . basename ( path ) , path )