-
-
Notifications
You must be signed in to change notification settings - Fork 610
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 compatibility with pip master (pip>=20.0) #978
Conversation
Moved `RequirementPreparer.session` to `Resolver.session`. See pypa/pip#7290
@vphilippon |
Codecov Report
@@ Coverage Diff @@
## master #978 +/- ##
==========================================
+ Coverage 99.31% 99.31% +<.01%
==========================================
Files 34 34
Lines 2346 2350 +4
Branches 303 305 +2
==========================================
+ Hits 2330 2334 +4
Misses 8 8
Partials 8 8
Continue to review full report at Codecov.
|
See details in jazzband#953 (comment)
@@ -219,8 +223,7 @@ def resolve_reqs(self, download_dir, ireq, wheel_cache): | |||
if PIP_VERSION < (19, 4): | |||
resolver.require_hashes = require_hashes | |||
results = resolver._resolve_one(reqset, ireq) | |||
else: # pragma: no cover | |||
# TODO remove pragma after pip==19.4 being released |
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.
FTR, this change addressed to #953 (comment).
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.
LGTM, and yes, it does get messy with all those cases per version. We really need to drop some version 😉
@codingjoe thanks! |
Moved
RequirementPreparer.session
toResolver.session
. See pypa/pip#7290Failed job: https://github.com/jazzband/pip-tools/commit/4dee581f2603e21271e9c7b38830507ed749357b/checks?check_suite_id=294004753
Changelog-friendly one-liner: Add compatibility with
pip>=20.0
.Contributor checklist
Provided the tests for the changes.