Skip to content

Conversation

oz123
Copy link
Contributor

@oz123 oz123 commented Dec 28, 2022

Fix #5536.

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 #5536.

The should be submitted actually to requirementslib. However, I am
publishing it here so others can confirm it too.

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Fix #5536.

Bump vendored requirementslib to 2.2.3 which includes the actual fix.
Also, add a test case for this in pipenv.
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
@oz123 oz123 requested a review from matteius December 28, 2022 13:40
@oz123 oz123 changed the title Fix 5536 Fix duplicate egg name when adding extras for package install from url Dec 28, 2022
@oz123 oz123 merged commit c282680 into main Dec 30, 2022
@oz123 oz123 deleted the fix-5536 branch December 30, 2022 14:28
@petereon
Copy link

Hi @oz123 , is there a planned release for this?

@oz123
Copy link
Contributor Author

oz123 commented Jan 17, 2023

Probably in the end of the month. We're both busy with work stuff. Sorry.

@petereon
Copy link

Oh please, no worries. Thank you for maintaining this great tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specifying 'extras' with remote wheel causes exception

3 participants