def as_requirement(self):
if isinstance(self.parsed_version, packaging.version.Version):<EOL><INDENT>spec = "<STR_LIT>" % (self.project_name, self.parsed_version)<EOL><DEDENT>else:<EOL><INDENT>spec = "<STR_LIT>" % (self.project_name, self.parsed_version)<EOL><DEDENT>return Requirement.parse(spec)<EOL>
Return a ``Requirement`` that matches this distribution exactly