#NEWLINE# def all_projects( ) : #NEWLINE# #INDENT# if ( not REPODIR ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# excludes = set ( [ 'tempest' , 'requirements' ] ) #NEWLINE# for name in PROJECTS : #NEWLINE# #INDENT# name = name . strip ( ) #NEWLINE# short_name = name . split ( '/' ) [ ( - 1 ) ] #NEWLINE# try : #NEWLINE# #INDENT# with open ( os . path . join ( REPODIR , short_name , 'setup.py' ) , 'rt' ) as f : #NEWLINE# #INDENT# if ( 'pbr' not in f . read ( ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except IOError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( short_name in excludes ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( yield ( short_name , dict ( name = name , short_name = short_name ) ) )