From ffffc9f34b0cf5a6c67f4e10a65e034c3bf5d468 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Mon, 15 Dec 2014 15:33:01 -0500 Subject: Upgrade packaging to 14.4 This fixes an error where there is a different result for if 2.0.5 is contained within >2.0dev and >2.0.dev even though normalization rules should have made them equal. --- setuptools/_vendor/packaging/__about__.py | 2 +- setuptools/_vendor/packaging/specifiers.py | 10 ++++++---- setuptools/_vendor/vendored.txt | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'setuptools') diff --git a/setuptools/_vendor/packaging/__about__.py b/setuptools/_vendor/packaging/__about__.py index 481589e7..d3e3dacf 100644 --- a/setuptools/_vendor/packaging/__about__.py +++ b/setuptools/_vendor/packaging/__about__.py @@ -22,7 +22,7 @@ __title__ = "packaging" __summary__ = "Core utilities for Python packages" __uri__ = "https://github.com/pypa/packaging" -__version__ = "14.3" +__version__ = "14.4" __author__ = "Donald Stufft" __email__ = "donald@stufft.io" diff --git a/setuptools/_vendor/packaging/specifiers.py b/setuptools/_vendor/packaging/specifiers.py index bea4a398..80225786 100644 --- a/setuptools/_vendor/packaging/specifiers.py +++ b/setuptools/_vendor/packaging/specifiers.py @@ -461,16 +461,18 @@ class Specifier(_IndividualSpecifier): # Less than are defined as exclusive operators, this implies that # pre-releases do not match for the same series as the spec. This is # implemented by making V imply !=V.*. - return (prospective > Version(spec) - and self._get_operator("!=")(prospective, spec + ".*")) + spec = Version(spec) + return (prospective > spec + and self._get_operator("!=")(prospective, str(spec) + ".*")) def _compare_arbitrary(self, prospective, spec): return str(prospective).lower() == str(spec).lower() diff --git a/setuptools/_vendor/vendored.txt b/setuptools/_vendor/vendored.txt index b86bba00..576aa8db 100644 --- a/setuptools/_vendor/vendored.txt +++ b/setuptools/_vendor/vendored.txt @@ -1 +1 @@ -packaging==14.3 +packaging==14.4 -- cgit v1.2.1