@classmethod<EOL><INDENT>def parse(cls, line):<DEDENT>
try:<EOL><INDENT>if "<STR_LIT>" in line:<EOL><INDENT>parsed, = setuptools_parse_requirements_backport(line.replace("<STR_LIT>", "<STR_LIT>"))<EOL><DEDENT>else:<EOL><INDENT>parsed, = setuptools_parse_requirements_backport(line)<EOL><DEDENT><DEDENT>except InvalidRequirement:<EOL><INDENT>return None<EOL><DEDENT>dep = Dependency(<EOL>name=parsed.name,<EOL>specs=parsed.specifier,<EOL>line=line,<EOL>extras=parsed.extras,<EOL>dependency_type=filetypes.requirements_txt<EOL>)<EOL>return dep<EOL>
:param line:
:return: