def _read_requirements(filename):
requirements_file = open(filename).read()<EOL>return [line.strip() for line in requirements_file.splitlines()<EOL>if _is_requirement(line)]<EOL>
Returns a list of package requirements read from the file.