summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2014-12-15 15:33:01 -0500
committerDonald Stufft <donald@stufft.io>2014-12-15 15:33:01 -0500
commitffffc9f34b0cf5a6c67f4e10a65e034c3bf5d468 (patch)
tree3b66f0277ea7d39c0efcd85f7ee40d5b4ccf2417
parentfa32ede024a1429c376b3249d23273ffe9c235d4 (diff)
downloadpython-setuptools-git-ffffc9f34b0cf5a6c67f4e10a65e034c3bf5d468.tar.gz
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.
-rw-r--r--setuptools/_vendor/packaging/__about__.py2
-rw-r--r--setuptools/_vendor/packaging/specifiers.py10
-rw-r--r--setuptools/_vendor/vendored.txt2
3 files changed, 8 insertions, 6 deletions
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) + ".*"))
@_require_version_compare
def _compare_greater_than(self, prospective, spec):
# Greater 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