def core_requirements():
 with open('setup.py') as inp:
  reqs_raw = re.search('REQUIRES = \\[(.*?)\\]', inp.read(), re.S).group(1)
 return re.findall("'(.*?)'", reqs_raw)

def core_requirements ( ) : with open ( 'setup.py' ) as inp : reqs_raw = re . search ( 'REQUIRES = \\[(.*?)\\]' , inp . read ( ) , re . S ) . group ( 1 ) return re . findall ( "'(.*?)'" , reqs_raw )
gather core requirements out of setup .