def to_requirements_index_conf(self) -> str:
result = "<STR_LIT>"<EOL>primary_index_added = False<EOL>for source in self.sources.items():<EOL><INDENT>if not primary_index_added:<EOL><INDENT>result += f"<STR_LIT>"<EOL>primary_index_added = True<EOL><DEDENT>else:<EOL><INDENT>result += f"<STR_LIT>"<EOL><DEDENT><DEDENT>return result<EOL>
Add index configuration as would be stated in the requirements.txt file.