Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
requirements parsing: do not include egg name twice
Requirements with a wheel path with extras caused a constraint line with egg name which was included twice. For example: ``` 'spacy = {file = "https://files.pythonhosted.org/packages/.../spacy-3.4.3-cp39-..._x86_64.whl", extras = ["transformers"]}' ``` Produced a constraint line like the following: ``` https://files.pythonhosted.org/.../spacy-3.4.3-..._x86_64.whl#egg=spacy#egg=spacy[transformers] ``` This line triggered an unhandled excpetion `pipenv.exceptions.ResolutionFailure`, as in pypa/pipenv#5536. Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
- Loading branch information