diff options
author | wangmy <wangmy@fujitsu.com> | 2022-08-04 07:56:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-04 21:53:50 +0100 |
commit | 5181c5acdcfd1f33ef9787732eea3e8ef36dcf0c (patch) | |
tree | 069535003928d5666697421da514df1a46feb044 | |
parent | 7f4555e35f909f1944f612fd0f4bda4808c43b8b (diff) | |
download | poky-5181c5acdcfd1f33ef9787732eea3e8ef36dcf0c.tar.gz |
python3-pip: upgrade 22.1.2 -> 22.2.1
reproducible.patch
refreshed for new version.
0001-change-shebang-to-python3.patch
removed as not needed since upstream has removed the shebang lines.
License-Update:
src/pip/_vendor/html5lib/LICENSE: removed since it's not it new version
src/pip/_vendor/chardet/LICENSE: file format modified, change St to Street
src/pip/_vendor/pygments/LICENSE: Copyright year updated to 2022
(From OE-Core rev: d69f360bb48001a4ec9220c8f935bb5fe43b4f7a)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch | 115 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-pip/reproducible.patch | 71 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-pip_22.2.1.bb (renamed from meta/recipes-devtools/python/python3-pip_22.1.2.bb) | 8 |
3 files changed, 43 insertions, 151 deletions
diff --git a/meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch b/meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch deleted file mode 100644 index d6c27b8461..0000000000 --- a/meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch +++ /dev/null | |||
@@ -1,115 +0,0 @@ | |||
1 | From dca973830d4eee3e0f79e61237c44a9dd8201641 Mon Sep 17 00:00:00 2001 | ||
2 | From: Trevor Gamblin <trevor.gamblin@windriver.com> | ||
3 | Date: Tue, 22 Jun 2021 12:31:46 -0400 | ||
4 | Subject: [PATCH] change shebang to python3 | ||
5 | |||
6 | Upstream-Status: Inappropriate (OE-specific) | ||
7 | |||
8 | Despite no longer supporting python2, some files in the pip source refer | ||
9 | to "python" instead of "python3", so patch them as needed to ensure that | ||
10 | they correctly reference the python3 binary. | ||
11 | |||
12 | Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> | ||
13 | |||
14 | --- | ||
15 | src/pip/_vendor/chardet/langbulgarianmodel.py | 2 +- | ||
16 | src/pip/_vendor/chardet/langgreekmodel.py | 2 +- | ||
17 | src/pip/_vendor/chardet/langhebrewmodel.py | 2 +- | ||
18 | src/pip/_vendor/chardet/langhungarianmodel.py | 2 +- | ||
19 | src/pip/_vendor/chardet/langrussianmodel.py | 2 +- | ||
20 | src/pip/_vendor/chardet/langthaimodel.py | 2 +- | ||
21 | src/pip/_vendor/chardet/langturkishmodel.py | 2 +- | ||
22 | src/pip/_vendor/chardet/metadata/languages.py | 2 +- | ||
23 | src/pip/_vendor/requests/certs.py | 2 +- | ||
24 | 9 files changed, 9 insertions(+), 9 deletions(-) | ||
25 | |||
26 | diff --git a/src/pip/_vendor/chardet/langbulgarianmodel.py b/src/pip/_vendor/chardet/langbulgarianmodel.py | ||
27 | index e963a50..97ea6ce 100644 | ||
28 | --- a/src/pip/_vendor/chardet/langbulgarianmodel.py | ||
29 | +++ b/src/pip/_vendor/chardet/langbulgarianmodel.py | ||
30 | @@ -1,4 +1,4 @@ | ||
31 | -#!/usr/bin/env python | ||
32 | +#!/usr/bin/env python3 | ||
33 | # -*- coding: utf-8 -*- | ||
34 | |||
35 | from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel | ||
36 | diff --git a/src/pip/_vendor/chardet/langgreekmodel.py b/src/pip/_vendor/chardet/langgreekmodel.py | ||
37 | index d99528e..4a127ea 100644 | ||
38 | --- a/src/pip/_vendor/chardet/langgreekmodel.py | ||
39 | +++ b/src/pip/_vendor/chardet/langgreekmodel.py | ||
40 | @@ -1,4 +1,4 @@ | ||
41 | -#!/usr/bin/env python | ||
42 | +#!/usr/bin/env python3 | ||
43 | # -*- coding: utf-8 -*- | ||
44 | |||
45 | from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel | ||
46 | diff --git a/src/pip/_vendor/chardet/langhebrewmodel.py b/src/pip/_vendor/chardet/langhebrewmodel.py | ||
47 | index 484c652..676c1a7 100644 | ||
48 | --- a/src/pip/_vendor/chardet/langhebrewmodel.py | ||
49 | +++ b/src/pip/_vendor/chardet/langhebrewmodel.py | ||
50 | @@ -1,4 +1,4 @@ | ||
51 | -#!/usr/bin/env python | ||
52 | +#!/usr/bin/env python3 | ||
53 | # -*- coding: utf-8 -*- | ||
54 | |||
55 | from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel | ||
56 | diff --git a/src/pip/_vendor/chardet/langhungarianmodel.py b/src/pip/_vendor/chardet/langhungarianmodel.py | ||
57 | index bbc5cda..042eae7 100644 | ||
58 | --- a/src/pip/_vendor/chardet/langhungarianmodel.py | ||
59 | +++ b/src/pip/_vendor/chardet/langhungarianmodel.py | ||
60 | @@ -1,4 +1,4 @@ | ||
61 | -#!/usr/bin/env python | ||
62 | +#!/usr/bin/env python3 | ||
63 | # -*- coding: utf-8 -*- | ||
64 | |||
65 | from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel | ||
66 | diff --git a/src/pip/_vendor/chardet/langrussianmodel.py b/src/pip/_vendor/chardet/langrussianmodel.py | ||
67 | index 5594452..564b02e 100644 | ||
68 | --- a/src/pip/_vendor/chardet/langrussianmodel.py | ||
69 | +++ b/src/pip/_vendor/chardet/langrussianmodel.py | ||
70 | @@ -1,4 +1,4 @@ | ||
71 | -#!/usr/bin/env python | ||
72 | +#!/usr/bin/env python3 | ||
73 | # -*- coding: utf-8 -*- | ||
74 | |||
75 | from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel | ||
76 | diff --git a/src/pip/_vendor/chardet/langthaimodel.py b/src/pip/_vendor/chardet/langthaimodel.py | ||
77 | index 9a37db5..c974879 100644 | ||
78 | --- a/src/pip/_vendor/chardet/langthaimodel.py | ||
79 | +++ b/src/pip/_vendor/chardet/langthaimodel.py | ||
80 | @@ -1,4 +1,4 @@ | ||
81 | -#!/usr/bin/env python | ||
82 | +#!/usr/bin/env python3 | ||
83 | # -*- coding: utf-8 -*- | ||
84 | |||
85 | from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel | ||
86 | diff --git a/src/pip/_vendor/chardet/langturkishmodel.py b/src/pip/_vendor/chardet/langturkishmodel.py | ||
87 | index 43f4230..7e710c3 100644 | ||
88 | --- a/src/pip/_vendor/chardet/langturkishmodel.py | ||
89 | +++ b/src/pip/_vendor/chardet/langturkishmodel.py | ||
90 | @@ -1,4 +1,4 @@ | ||
91 | -#!/usr/bin/env python | ||
92 | +#!/usr/bin/env python3 | ||
93 | # -*- coding: utf-8 -*- | ||
94 | |||
95 | from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel | ||
96 | diff --git a/src/pip/_vendor/chardet/metadata/languages.py b/src/pip/_vendor/chardet/metadata/languages.py | ||
97 | index 3237d5a..aa2ec7c 100644 | ||
98 | --- a/src/pip/_vendor/chardet/metadata/languages.py | ||
99 | +++ b/src/pip/_vendor/chardet/metadata/languages.py | ||
100 | @@ -1,4 +1,4 @@ | ||
101 | -#!/usr/bin/env python | ||
102 | +#!/usr/bin/env python3 | ||
103 | # -*- coding: utf-8 -*- | ||
104 | """ | ||
105 | Metadata about languages used by our model training code for our | ||
106 | diff --git a/src/pip/_vendor/requests/certs.py b/src/pip/_vendor/requests/certs.py | ||
107 | index 06a594e..bfa7839 100644 | ||
108 | --- a/src/pip/_vendor/requests/certs.py | ||
109 | +++ b/src/pip/_vendor/requests/certs.py | ||
110 | @@ -1,4 +1,4 @@ | ||
111 | -#!/usr/bin/env python | ||
112 | +#!/usr/bin/env python3 | ||
113 | # -*- coding: utf-8 -*- | ||
114 | |||
115 | """ | ||
diff --git a/meta/recipes-devtools/python/python3-pip/reproducible.patch b/meta/recipes-devtools/python/python3-pip/reproducible.patch index 538bb94f7a..0ed0c9177f 100644 --- a/meta/recipes-devtools/python/python3-pip/reproducible.patch +++ b/meta/recipes-devtools/python/python3-pip/reproducible.patch | |||
@@ -14,34 +14,17 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | |||
14 | 14 | ||
15 | Upstream-Status: Pending | 15 | Upstream-Status: Pending |
16 | 16 | ||
17 | Index: pip-22.0.3/src/pip/_internal/req/req_install.py | 17 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> |
18 | =================================================================== | 18 | --- |
19 | --- pip-22.0.3.orig/src/pip/_internal/req/req_install.py | 19 | src/pip/_internal/operations/install/wheel.py | 5 ++++- |
20 | +++ pip-22.0.3/src/pip/_internal/req/req_install.py | 20 | src/pip/_internal/req/req_install.py | 5 ++++- |
21 | @@ -758,7 +758,9 @@ class InstallRequirement: | 21 | 2 files changed, 8 insertions(+), 2 deletions(-) |
22 | if self.is_wheel: | 22 | |
23 | assert self.local_file_path | 23 | diff --git a/src/pip/_internal/operations/install/wheel.py b/src/pip/_internal/operations/install/wheel.py |
24 | direct_url = None | 24 | index 1af8978..3e48f9b 100644 |
25 | - if self.editable: | 25 | --- a/src/pip/_internal/operations/install/wheel.py |
26 | + if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ: | 26 | +++ b/src/pip/_internal/operations/install/wheel.py |
27 | + direct_url = None | 27 | @@ -434,6 +434,7 @@ def _install_wheel( |
28 | + elif self.editable: | ||
29 | direct_url = direct_url_for_editable(self.unpacked_source_directory) | ||
30 | elif self.original_link: | ||
31 | direct_url = direct_url_from_link( | ||
32 | @@ -775,6 +777,7 @@ class InstallRequirement: | ||
33 | warn_script_location=warn_script_location, | ||
34 | direct_url=direct_url, | ||
35 | requested=self.user_supplied, | ||
36 | + root=root, | ||
37 | ) | ||
38 | self.install_succeeded = True | ||
39 | return | ||
40 | Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py | ||
41 | =================================================================== | ||
42 | --- pip-22.0.3.orig/src/pip/_internal/operations/install/wheel.py | ||
43 | +++ pip-22.0.3/src/pip/_internal/operations/install/wheel.py | ||
44 | @@ -436,6 +436,7 @@ def _install_wheel( | ||
45 | warn_script_location: bool = True, | 28 | warn_script_location: bool = True, |
46 | direct_url: Optional[DirectUrl] = None, | 29 | direct_url: Optional[DirectUrl] = None, |
47 | requested: bool = False, | 30 | requested: bool = False, |
@@ -49,7 +32,7 @@ Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py | |||
49 | ) -> None: | 32 | ) -> None: |
50 | """Install a wheel. | 33 | """Install a wheel. |
51 | 34 | ||
52 | @@ -612,7 +613,7 @@ def _install_wheel( | 35 | @@ -610,7 +611,7 @@ def _install_wheel( |
53 | with warnings.catch_warnings(): | 36 | with warnings.catch_warnings(): |
54 | warnings.filterwarnings("ignore") | 37 | warnings.filterwarnings("ignore") |
55 | for path in pyc_source_file_paths(): | 38 | for path in pyc_source_file_paths(): |
@@ -58,7 +41,7 @@ Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py | |||
58 | if success: | 41 | if success: |
59 | pyc_path = pyc_output_path(path) | 42 | pyc_path = pyc_output_path(path) |
60 | assert os.path.exists(pyc_path) | 43 | assert os.path.exists(pyc_path) |
61 | @@ -723,6 +724,7 @@ def install_wheel( | 44 | @@ -721,6 +722,7 @@ def install_wheel( |
62 | warn_script_location: bool = True, | 45 | warn_script_location: bool = True, |
63 | direct_url: Optional[DirectUrl] = None, | 46 | direct_url: Optional[DirectUrl] = None, |
64 | requested: bool = False, | 47 | requested: bool = False, |
@@ -66,9 +49,35 @@ Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py | |||
66 | ) -> None: | 49 | ) -> None: |
67 | with ZipFile(wheel_path, allowZip64=True) as z: | 50 | with ZipFile(wheel_path, allowZip64=True) as z: |
68 | with req_error_context(req_description): | 51 | with req_error_context(req_description): |
69 | @@ -735,4 +737,5 @@ def install_wheel( | 52 | @@ -733,4 +735,5 @@ def install_wheel( |
70 | warn_script_location=warn_script_location, | 53 | warn_script_location=warn_script_location, |
71 | direct_url=direct_url, | 54 | direct_url=direct_url, |
72 | requested=requested, | 55 | requested=requested, |
73 | + root=root, | 56 | + root=root, |
74 | ) | 57 | ) |
58 | diff --git a/src/pip/_internal/req/req_install.py b/src/pip/_internal/req/req_install.py | ||
59 | index a1e376c..4c3f1bb 100644 | ||
60 | --- a/src/pip/_internal/req/req_install.py | ||
61 | +++ b/src/pip/_internal/req/req_install.py | ||
62 | @@ -779,7 +779,9 @@ class InstallRequirement: | ||
63 | assert self.local_file_path | ||
64 | direct_url = None | ||
65 | # TODO this can be refactored to direct_url = self.download_info | ||
66 | - if self.editable: | ||
67 | + if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ: | ||
68 | + direct_url = None | ||
69 | + elif self.editable: | ||
70 | direct_url = direct_url_for_editable(self.unpacked_source_directory) | ||
71 | elif self.original_link: | ||
72 | direct_url = direct_url_from_link( | ||
73 | @@ -796,6 +798,7 @@ class InstallRequirement: | ||
74 | warn_script_location=warn_script_location, | ||
75 | direct_url=direct_url, | ||
76 | requested=self.user_supplied, | ||
77 | + root=root, | ||
78 | ) | ||
79 | self.install_succeeded = True | ||
80 | return | ||
81 | -- | ||
82 | 2.25.1 | ||
83 | |||
diff --git a/meta/recipes-devtools/python/python3-pip_22.1.2.bb b/meta/recipes-devtools/python/python3-pip_22.2.1.bb index 5fe59a4762..39349b6026 100644 --- a/meta/recipes-devtools/python/python3-pip_22.1.2.bb +++ b/meta/recipes-devtools/python/python3-pip_22.2.1.bb | |||
@@ -6,11 +6,10 @@ LIC_FILES_CHKSUM = "\ | |||
6 | file://LICENSE.txt;md5=63ec52baf95163b597008bb46db68030 \ | 6 | file://LICENSE.txt;md5=63ec52baf95163b597008bb46db68030 \ |
7 | file://src/pip/_vendor/cachecontrol/LICENSE.txt;md5=6572692148079ebbbd800be4b9f36c6d \ | 7 | file://src/pip/_vendor/cachecontrol/LICENSE.txt;md5=6572692148079ebbbd800be4b9f36c6d \ |
8 | file://src/pip/_vendor/certifi/LICENSE;md5=67da0714c3f9471067b729eca6c9fbe8 \ | 8 | file://src/pip/_vendor/certifi/LICENSE;md5=67da0714c3f9471067b729eca6c9fbe8 \ |
9 | file://src/pip/_vendor/chardet/LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 9 | file://src/pip/_vendor/chardet/LICENSE;md5=4fbd65380cdd255951079008b364516c \ |
10 | file://src/pip/_vendor/colorama/LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26 \ | 10 | file://src/pip/_vendor/colorama/LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26 \ |
11 | file://src/pip/_vendor/distlib/LICENSE.txt;md5=f6a11430d5cd6e2cd3832ee94f22ddfc \ | 11 | file://src/pip/_vendor/distlib/LICENSE.txt;md5=f6a11430d5cd6e2cd3832ee94f22ddfc \ |
12 | file://src/pip/_vendor/distro/LICENSE;md5=d2794c0df5b907fdace235a619d80314 \ | 12 | file://src/pip/_vendor/distro/LICENSE;md5=d2794c0df5b907fdace235a619d80314 \ |
13 | file://src/pip/_vendor/html5lib/LICENSE;md5=1ba5ada9e6fead1fdc32f43c9f10ba7c \ | ||
14 | file://src/pip/_vendor/idna/LICENSE.md;md5=239668a7c6066d9e0c5382e9c8c6c0e1 \ | 13 | file://src/pip/_vendor/idna/LICENSE.md;md5=239668a7c6066d9e0c5382e9c8c6c0e1 \ |
15 | file://src/pip/_vendor/msgpack/COPYING;md5=cd9523181d9d4fbf7ffca52eaa2a5751 \ | 14 | file://src/pip/_vendor/msgpack/COPYING;md5=cd9523181d9d4fbf7ffca52eaa2a5751 \ |
16 | file://src/pip/_vendor/packaging/LICENSE;md5=faadaedca9251a90b205c9167578ce91 \ | 15 | file://src/pip/_vendor/packaging/LICENSE;md5=faadaedca9251a90b205c9167578ce91 \ |
@@ -18,7 +17,7 @@ LIC_FILES_CHKSUM = "\ | |||
18 | file://src/pip/_vendor/pep517/LICENSE;md5=aad69c93f605003e3342b174d9b0708c \ | 17 | file://src/pip/_vendor/pep517/LICENSE;md5=aad69c93f605003e3342b174d9b0708c \ |
19 | file://src/pip/_vendor/pkg_resources/LICENSE;md5=9a33897f1bca1160d7aad3835152e158 \ | 18 | file://src/pip/_vendor/pkg_resources/LICENSE;md5=9a33897f1bca1160d7aad3835152e158 \ |
20 | file://src/pip/_vendor/platformdirs/LICENSE.txt;md5=282c970bb844954c8535dd6e9733db7f \ | 19 | file://src/pip/_vendor/platformdirs/LICENSE.txt;md5=282c970bb844954c8535dd6e9733db7f \ |
21 | file://src/pip/_vendor/pygments/LICENSE;md5=98419e351433ac106a24e3ad435930bc \ | 20 | file://src/pip/_vendor/pygments/LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592 \ |
22 | file://src/pip/_vendor/pyparsing/LICENSE;md5=657a566233888513e1f07ba13e2f47f1 \ | 21 | file://src/pip/_vendor/pyparsing/LICENSE;md5=657a566233888513e1f07ba13e2f47f1 \ |
23 | file://src/pip/_vendor/requests/LICENSE;md5=34400b68072d710fecd0a2940a0d1658 \ | 22 | file://src/pip/_vendor/requests/LICENSE;md5=34400b68072d710fecd0a2940a0d1658 \ |
24 | file://src/pip/_vendor/resolvelib/LICENSE;md5=78e1c0248051c32a38a7f820c30bd7a5 \ | 23 | file://src/pip/_vendor/resolvelib/LICENSE;md5=78e1c0248051c32a38a7f820c30bd7a5 \ |
@@ -33,11 +32,10 @@ LIC_FILES_CHKSUM = "\ | |||
33 | 32 | ||
34 | inherit pypi python_setuptools_build_meta | 33 | inherit pypi python_setuptools_build_meta |
35 | 34 | ||
36 | SRC_URI += "file://0001-change-shebang-to-python3.patch" | ||
37 | SRC_URI += "file://no_shebang_mangling.patch" | 35 | SRC_URI += "file://no_shebang_mangling.patch" |
38 | SRC_URI += "file://reproducible.patch" | 36 | SRC_URI += "file://reproducible.patch" |
39 | 37 | ||
40 | SRC_URI[sha256sum] = "6d55b27e10f506312894a87ccc59f280136bad9061719fac9101bdad5a6bce69" | 38 | SRC_URI[sha256sum] = "50516e47a2b79e77446f0d05649f0d53772c192571486236b1905492bfc24bac" |
41 | 39 | ||
42 | do_install:append() { | 40 | do_install:append() { |
43 | rm -f ${D}/${bindir}/pip | 41 | rm -f ${D}/${bindir}/pip |