def get_requirements(*args):
requirements = set()<EOL>with open(get_absolute_path(*args)) as handle:<EOL><INDENT>for line in handle:<EOL><INDENT>line = re.sub(r'<STR_LIT>', '<STR_LIT>', line)<EOL>if line and not line.isspace():<EOL><INDENT>requirements.add(re.sub(r'<STR_LIT>', '<STR_LIT>', line))<EOL><DEDENT><DEDENT><DEDENT>return sorted(requirements)<EOL>
Get requirements from pip requirement files.