summaryrefslogtreecommitdiff
path: root/pip/_vendor
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2016-02-09 17:52:29 -0500
committerDonald Stufft <donald@stufft.io>2016-02-17 21:02:04 -0500
commitb6645ee87bb09cbdbfba84de50f0e6b0b764b7d9 (patch)
tree4656be08f84a3f9a21ecc6a67d2b0bb719286968 /pip/_vendor
parent06d71200e014a9c11d1cdb999e628f9f36aa45e5 (diff)
downloadpip-b6645ee87bb09cbdbfba84de50f0e6b0b764b7d9.tar.gz
Upgrade packaging to 16.2
Diffstat (limited to 'pip/_vendor')
-rw-r--r--pip/_vendor/packaging/__about__.py2
-rw-r--r--pip/_vendor/packaging/utils.py14
-rw-r--r--pip/_vendor/vendor.txt2
3 files changed, 16 insertions, 2 deletions
diff --git a/pip/_vendor/packaging/__about__.py b/pip/_vendor/packaging/__about__.py
index 313613b95..72b0840d0 100644
--- a/pip/_vendor/packaging/__about__.py
+++ b/pip/_vendor/packaging/__about__.py
@@ -12,7 +12,7 @@ __title__ = "packaging"
__summary__ = "Core utilities for Python packages"
__uri__ = "https://github.com/pypa/packaging"
-__version__ = "16.1"
+__version__ = "16.2"
__author__ = "Donald Stufft and individual contributors"
__email__ = "donald@stufft.io"
diff --git a/pip/_vendor/packaging/utils.py b/pip/_vendor/packaging/utils.py
new file mode 100644
index 000000000..942387cef
--- /dev/null
+++ b/pip/_vendor/packaging/utils.py
@@ -0,0 +1,14 @@
+# This file is dual licensed under the terms of the Apache License, Version
+# 2.0, and the BSD License. See the LICENSE file in the root of this repository
+# for complete details.
+from __future__ import absolute_import, division, print_function
+
+import re
+
+
+_canonicalize_regex = re.compile(r"[-_.]+")
+
+
+def canonicalize_name(name):
+ # This is taken from PEP 503.
+ return _canonicalize_regex.sub("-", name).lower()
diff --git a/pip/_vendor/vendor.txt b/pip/_vendor/vendor.txt
index 3d98e8b0f..cccb921b8 100644
--- a/pip/_vendor/vendor.txt
+++ b/pip/_vendor/vendor.txt
@@ -7,6 +7,6 @@ CacheControl==0.11.6
lockfile==0.12.2
progress==1.2
ipaddress==1.0.16 # Only needed on 2.6 and 2.7
-packaging==16.1
+packaging==16.2
pyparsing==2.0.7
retrying==1.3.3