def parse_dist_meta():
 pats = {re_meta: _add_default, re_doc: _add_doc}
 here = os.path.abspath(os.path.dirname(__file__))
 with open(os.path.join(here, NAME, '__init__.py')) as meta_fh:
  distmeta = {}
  for line in meta_fh:
   if (line.strip() == '# -eof meta-'):
    break
   for (pattern, handler) in pats.items():
    m = pattern.match(line.strip())
    if m:
     distmeta.update(handler(m))
  return distmeta

def parse_dist_meta ( ) : pats = { re_meta : _add_default , re_doc : _add_doc } here = os . path . abspath ( os . path . dirname ( __file__ ) ) with open ( os . path . join ( here , NAME , '__init__.py' ) ) as meta_fh : distmeta = { } for line in meta_fh : if ( line . strip ( ) == '# -eof meta-' ) : break for ( pattern , handler ) in pats . items ( ) : m = pattern . match ( line . strip ( ) ) if m : distmeta . update ( handler ( m ) ) return distmeta
extract metadata information from $dist/__init__ .