#NEWLINE# def upload_conan( self , conan_ref , force = False , all_packages = False ) : #NEWLINE# #INDENT# 'Uploads the conans identified by conan_ref' #NEWLINE# export_path = self . _paths . export ( conan_ref ) #NEWLINE# if os . path . exists ( export_path ) : #NEWLINE# #INDENT# if ( not force ) : #NEWLINE# #INDENT# self . _check_package_date ( conan_ref ) #NEWLINE# #UNINDENT# self . _user_io . out . info ( ( 'Uploading %s' % str ( conan_ref ) ) ) #NEWLINE# self . _remote_proxy . upload_conan ( conan_ref ) #NEWLINE# if all_packages : #NEWLINE# #INDENT# for ( index , package_id ) in enumerate ( self . _paths . conan_packages ( conan_ref ) ) : #NEWLINE# #INDENT# total = len ( self . _paths . conan_packages ( conan_ref ) ) #NEWLINE# self . upload_package ( PackageReference ( conan_ref , package_id ) , ( index + 1 ) , total ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . _user_io . out . error ( ( 'There is no local conanfile exported as %s' % str ( conan_ref ) ) )