diff options
| author | Daniel Holth <dholth@fastmail.fm> | 2012-07-23 12:26:11 -0400 |
|---|---|---|
| committer | Daniel Holth <dholth@fastmail.fm> | 2012-07-23 12:26:11 -0400 |
| commit | bdf9d5747a724664bd3588ab471907a900b45c9a (patch) | |
| tree | 220f08a0d3ef0c1767fdcf3185aa420ea70b55c4 /wheel | |
| parent | 92716b2327f733b2a416c473535d55e7ca8084bc (diff) | |
| download | wheel-git-0.6.tar.gz | |
version 0.60.6
Diffstat (limited to 'wheel')
| -rw-r--r-- | wheel/install.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wheel/install.py b/wheel/install.py index c347452..baf5529 100644 --- a/wheel/install.py +++ b/wheel/install.py @@ -11,13 +11,11 @@ import hmac import hashlib from email.parser import Parser -from verlib import NormalizedVersion - from .decorator import reify from .util import urlsafe_b64encode, utf8, to_json # The next major version after this version of the 'wheel' tool: -VERSION_TOO_HIGH = NormalizedVersion("1.0") +VERSION_TOO_HIGH = (1, 0) # Non-greedy matching of an optional build number may be too clever (more # invalid wheel filenames will match). Separate regex for .dist-info? @@ -83,7 +81,7 @@ class WheelFile(object): def check_version(self): version = self.parsed_wheel_info['Wheel-Version'] - assert NormalizedVersion(version) < VERSION_TOO_HIGH, "Wheel version is too high" + assert tuple(map(int, version.split('.'))) < VERSION_TOO_HIGH, "Wheel version is too high" def sign(self, key, alg="HS256"): """Sign the wheel file's RECORD using `key` and algorithm `alg`. Alg |
