parse_requirements that is not fragile to git lines