diff options
author | Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com> | 2020-12-14 20:10:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 20:10:25 +0000 |
commit | cfa013b91726dfcbadbff86b29c13df7eeef4d43 (patch) | |
tree | 75e2ade994f4315277f83b481bf0ee23dab23f5a | |
parent | 94b89c98fece7eaa9b83b5465d76e8b9809561b3 (diff) | |
parent | 6b2ccdd10d8720cd8de5b7428277a2b0afe41bc1 (diff) | |
download | pip-cfa013b91726dfcbadbff86b29c13df7eeef4d43.tar.gz |
Merge pull request #9278 from gpiks/update_vendoring_packages
Update packaging to version 20.8
-rw-r--r-- | news/packaging.vendor.rst | 1 | ||||
-rw-r--r-- | src/pip/_vendor/packaging/__about__.py | 27 | ||||
-rw-r--r-- | src/pip/_vendor/packaging/__init__.py | 25 | ||||
-rw-r--r-- | src/pip/_vendor/packaging/requirements.py | 12 | ||||
-rw-r--r-- | src/pip/_vendor/packaging/tags.py | 8 | ||||
-rw-r--r-- | src/pip/_vendor/vendor.txt | 2 |
6 files changed, 60 insertions, 15 deletions
diff --git a/news/packaging.vendor.rst b/news/packaging.vendor.rst new file mode 100644 index 000000000..24d7440e0 --- /dev/null +++ b/news/packaging.vendor.rst @@ -0,0 +1 @@ +Update vendoring to 20.8 diff --git a/src/pip/_vendor/packaging/__about__.py b/src/pip/_vendor/packaging/__about__.py new file mode 100644 index 000000000..2d39193b0 --- /dev/null +++ b/src/pip/_vendor/packaging/__about__.py @@ -0,0 +1,27 @@ +# 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 + +__all__ = [ + "__title__", + "__summary__", + "__uri__", + "__version__", + "__author__", + "__email__", + "__license__", + "__copyright__", +] + +__title__ = "packaging" +__summary__ = "Core utilities for Python packages" +__uri__ = "https://github.com/pypa/packaging" + +__version__ = "20.8" + +__author__ = "Donald Stufft and individual contributors" +__email__ = "donald@stufft.io" + +__license__ = "BSD-2-Clause or Apache-2.0" +__copyright__ = "2014-2019 %s" % __author__ diff --git a/src/pip/_vendor/packaging/__init__.py b/src/pip/_vendor/packaging/__init__.py index 18fecb867..a0cf67df5 100644 --- a/src/pip/_vendor/packaging/__init__.py +++ b/src/pip/_vendor/packaging/__init__.py @@ -1,5 +1,26 @@ # 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. -"""Core utilities for Python packages""" -__version__ = "20.7" +from __future__ import absolute_import, division, print_function + +from .__about__ import ( + __author__, + __copyright__, + __email__, + __license__, + __summary__, + __title__, + __uri__, + __version__, +) + +__all__ = [ + "__title__", + "__summary__", + "__uri__", + "__version__", + "__author__", + "__email__", + "__license__", + "__copyright__", +] diff --git a/src/pip/_vendor/packaging/requirements.py b/src/pip/_vendor/packaging/requirements.py index f9d1c6599..df7f41d2c 100644 --- a/src/pip/_vendor/packaging/requirements.py +++ b/src/pip/_vendor/packaging/requirements.py @@ -22,7 +22,7 @@ else: # pragma: no cover if TYPE_CHECKING: # pragma: no cover - from typing import List + from typing import List, Optional as TOptional, Set class InvalidRequirement(ValueError): @@ -109,7 +109,7 @@ class Requirement(object): ) ) - self.name = req.name + self.name = req.name # type: str if req.url: parsed_url = urlparse.urlparse(req.url) if parsed_url.scheme == "file": @@ -119,12 +119,12 @@ class Requirement(object): not parsed_url.scheme and not parsed_url.netloc ): raise InvalidRequirement("Invalid URL: {0}".format(req.url)) - self.url = req.url + self.url = req.url # type: TOptional[str] else: self.url = None - self.extras = set(req.extras.asList() if req.extras else []) - self.specifier = SpecifierSet(req.specifier) - self.marker = req.marker if req.marker else None + self.extras = set(req.extras.asList() if req.extras else []) # type: Set[str] + self.specifier = SpecifierSet(req.specifier) # type: SpecifierSet + self.marker = req.marker if req.marker else None # type: TOptional[Marker] def __str__(self): # type: () -> str diff --git a/src/pip/_vendor/packaging/tags.py b/src/pip/_vendor/packaging/tags.py index 842447d86..13798e38b 100644 --- a/src/pip/_vendor/packaging/tags.py +++ b/src/pip/_vendor/packaging/tags.py @@ -410,7 +410,7 @@ def _mac_binary_formats(version, cpu_arch): if cpu_arch in {"arm64", "x86_64"}: formats.append("universal2") - if cpu_arch in {"x86_64", "i386", "ppc64", "ppc"}: + if cpu_arch in {"x86_64", "i386", "ppc64", "ppc", "intel"}: formats.append("universal") return formats @@ -827,11 +827,7 @@ def interpreter_version(**kwargs): def _version_nodot(version): # type: (PythonVersion) -> str - if any(v >= 10 for v in version): - sep = "_" - else: - sep = "" - return sep.join(map(str, version)) + return "".join(map(str, version)) def sys_tags(**kwargs): diff --git a/src/pip/_vendor/vendor.txt b/src/pip/_vendor/vendor.txt index c7bc37c16..15c000339 100644 --- a/src/pip/_vendor/vendor.txt +++ b/src/pip/_vendor/vendor.txt @@ -7,7 +7,7 @@ distro==1.5.0 html5lib==1.1 ipaddress==1.0.23 # Only needed on 2.6 and 2.7 msgpack==1.0.0 -packaging==20.7 +packaging==20.8 pep517==0.9.1 progress==1.5 pyparsing==2.4.7 |