Skip to content

Commit

Permalink
Fix compatibility with pip master (pip>=19.4)
Browse files Browse the repository at this point in the history
Moved `RequirementPreparer.session` to `Resolver.session`.

See pypa/pip#7290
  • Loading branch information
atugushev committed Nov 4, 2019
1 parent 4dee581 commit b54bd72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions piptools/repositories/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ def resolve_reqs(self, download_dir, ireq, wheel_cache):
)
resolver_kwargs["make_install_req"] = make_install_req

if PIP_VERSION >= (19, 4):
preparer_kwargs["session"] = self.session
del resolver_kwargs["session"]

resolver = None
preparer = None
with RequirementTracker() as req_tracker:
Expand Down

0 comments on commit b54bd72

Please sign in to comment.