Skip to content

Conversation

@uranusjr
Copy link
Member

@uranusjr uranusjr commented Dec 4, 2020

Do not return yanked versions from an index, unless the version range can only be satisfied by yanked candidates.

This should fix the trouble described in #9203 (comment). I don’t think this is enough for #8262 since it still involves prereleases. But that’s for another day (and if I’m understanding the code correctly, need to involve changes in PackageFinder).

I’m not sure what way is best to test this. Yanking only works with indexes, and I’m not sure how to run one for a unit test 😥

Do not return yanked versions from an index, unless the version
range can only be satisfied by yanked candidates.
@kaxil
Copy link

kaxil commented Dec 4, 2020

Any ideas when a new version of PIP will be released containing this PR?

@uranusjr
Copy link
Member Author

uranusjr commented Dec 4, 2020

Does this actually fix your issue? (Asking explicitly to be sure, since this patch does not have any tests to ensure the behaviour is correct.)

@kaxil
Copy link

kaxil commented Dec 4, 2020

Does this actually fix your issue? (Asking explicitly to be sure, since this patch does not have any tests to ensure the behaviour is correct.)

Fixes issue with "yank" but there is some other problem as mentioned in #9203 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants