Skip to content

Commit

Permalink
Fix pip version from 19.4 to 20.0 (#1004)
Browse files Browse the repository at this point in the history
Next major pip version will be 20.0.
  • Loading branch information
atugushev authored Nov 25, 2019
1 parent 727afeb commit 9cf55fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piptools/repositories/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def resolve_reqs(self, download_dir, ireq, wheel_cache):
)
resolver_kwargs["make_install_req"] = make_install_req

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

Expand All @@ -220,7 +220,7 @@ def resolve_reqs(self, download_dir, ireq, wheel_cache):

resolver = PipResolver(**resolver_kwargs)
require_hashes = False
if PIP_VERSION < (19, 4):
if PIP_VERSION < (20,):
resolver.require_hashes = require_hashes
results = resolver._resolve_one(reqset, ireq)
else:
Expand Down

0 comments on commit 9cf55fc

Please sign in to comment.