def read_requirements(path, strict_bounds, conda_format=False, filter_names=None):
 real_path = join(dirname(abspath(__file__)), path)
 with open(real_path) as f:
  reqs = _filter_requirements(f.readlines(), filter_names=filter_names, filter_sys_version=(not conda_format))
  if (not strict_bounds):
   reqs = map(_with_bounds, reqs)
  if conda_format:
   reqs = map(_conda_format, reqs)
  return list(reqs)

def read_requirements ( path , strict_bounds , conda_format = False , filter_names = None ) : real_path = join ( dirname ( abspath ( __file__ ) ) , path ) with open ( real_path ) as f : reqs = _filter_requirements ( f . readlines ( ) , filter_names = filter_names , filter_sys_version = ( not conda_format ) ) if ( not strict_bounds ) : reqs = map ( _with_bounds , reqs ) if conda_format : reqs = map ( _conda_format , reqs ) return list ( reqs )
read a requirements .