Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate egg name when adding extras for package install from url #5555

Merged
merged 5 commits into from
Dec 30, 2022

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 <[email protected]>
Fix #5536.

Bump vendored requirementslib to 2.2.3 which includes the actual fix.
Also, add a test case for this in pipenv.
@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