#NEWLINE# def _publish( self ) : #NEWLINE# #INDENT# web_repo = os . getenv ( 'YUBICO_GITHUB_REPO' ) #NEWLINE# if ( web_repo and os . path . isdir ( web_repo ) ) : #NEWLINE# #INDENT# artifacts = [ ( 'dist/%s.tar.gz' % self . fullname ) , ( 'dist/%s.tar.gz.sig' % self . fullname ) ] #NEWLINE# cmd = ( '%s/publish %s %s %s' % ( web_repo , artifacts . name , self . version , ' ' . join ( artifacts ) ) ) #NEWLINE# self . execute ( self . _do_call_publish , ( cmd , ) ) #NEWLINE# if self . _published : #NEWLINE# #INDENT# self . announce ( "Release published! Don't forget to:" , log . INFO ) #NEWLINE# self . announce ( '' ) #NEWLINE# self . announce ( ( '    (cd %s && git push)' % web_repo ) , log . INFO ) #NEWLINE# self . announce ( '' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . warn ( 'There was a problem publishing the release!' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . warn ( 'YUBICO_GITHUB_REPO not set or invalid!' ) #NEWLINE# self . warn ( 'This release will not be published!' )