def get_all_names():
 for filename in glob.glob(os.path.join(REQ_DIR, 'requirements-*.txt-raw')):
  basename = os.path.basename(filename)
  (yield basename[len('requirements-'):(- len('.txt-raw'))])

def get_all_names ( ) : for filename in glob . glob ( os . path . join ( REQ_DIR , 'requirements-*.txt-raw' ) ) : basename = os . path . basename ( filename ) ( yield basename [ len ( 'requirements-' ) : ( - len ( '.txt-raw' ) ) ] )
get all requirement names based on filenames .