-
-
Notifications
You must be signed in to change notification settings - Fork 616
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 a bug where pip-compile would ignore some of versions if prefer binary distributions #1119
Fix a bug where pip-compile would ignore some of versions if prefer binary distributions #1119
Conversation
f7a58eb
to
799500b
Compare
matching_versions = ireq.specifier.filter( | ||
(candidate.version for candidate in all_candidates), prereleases=prereleases | ||
) | ||
|
||
# Reuses pip's internal candidate sort key to sort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: This comment is no longer relevant after the latest 5.0.0 refactoring.
Codecov Report
@@ Coverage Diff @@
## master #1119 +/- ##
==========================================
+ Coverage 99.47% 99.48% +0.01%
==========================================
Files 37 36 -1
Lines 2680 2736 +56
Branches 322 324 +2
==========================================
+ Hits 2666 2722 +56
Misses 8 8
Partials 6 6
Continue to review full report at Codecov.
|
c712fd1
to
6ba4b7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Can you just change all the new docstring instances of "by" to "from"? And maybe the "is exist" to "existing"?
Fix grammar.
Thanks, @AndydeCleyre! |
Fixes #1118.
Relevant lines of code:
pip-tools/piptools/repositories/pypi.py
Lines 125 to 127 in 9865035
The parameter
unique=True
was the root of the issue and the cause of losing installation candidates. See examples oflookup_table()
results below.Before
Note
entrypoints-0.3.tar.gz
in<Version('0.3')>
.After
Changelog-friendly one-liner: Fix a bug where
pip-compile
would ignore some of package versions whenPIP_PREFER_BINARY
is on.Contributor checklist