summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-extended')
-rw-r--r--meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch18
-rw-r--r--meta-python/recipes-extended/python-blivet/python3-blivet_3.12.1.bb (renamed from meta-python/recipes-extended/python-blivet/python3-blivet_3.9.2.bb)6
-rw-r--r--meta-python/recipes-extended/python-blivet/python3-blivetgui_2.6.0.bb (renamed from meta-python/recipes-extended/python-blivet/python3-blivetgui_2.5.0.bb)3
-rw-r--r--meta-python/recipes-extended/python-cson/python3-cson_git.bb1
-rw-r--r--meta-python/recipes-extended/python-meh/python3-meh_0.52.bb (renamed from meta-python/recipes-extended/python-meh/python3-meh_0.51.bb)3
-rw-r--r--meta-python/recipes-extended/python-pyephem/python3-pyephem_4.2.bb (renamed from meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.5.bb)4
-rw-r--r--meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch26
-rw-r--r--meta-python/recipes-extended/python-pykickstart/files/0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch19
-rw-r--r--meta-python/recipes-extended/python-pykickstart/files/0004-load.py-retry-to-invoke-request-with-timeout.patch16
-rwxr-xr-xmeta-python/recipes-extended/python-pykickstart/files/run-ptest3
-rw-r--r--meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.48.bb25
-rw-r--r--meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb39
-rw-r--r--meta-python/recipes-extended/python-pyparted/python3-pyparted_3.13.0.bb (renamed from meta-python/recipes-extended/python-pyparted/python3-pyparted_3.12.0.bb)6
-rw-r--r--meta-python/recipes-extended/python-pytesseract/pytesseract_0.3.13.bb16
-rw-r--r--meta-python/recipes-extended/python-rich/python3-rich_14.0.0.bb (renamed from meta-python/recipes-extended/python-rich/python3-rich_13.7.1.bb)12
-rw-r--r--meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb17
-rw-r--r--meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.1.1.bb (renamed from meta-python/recipes-extended/python3-portalocker/python3-portalocker_2.8.2.bb)2
-rw-r--r--meta-python/recipes-extended/python3-pydot/python3-pydot_2.0.0.bb11
-rw-r--r--meta-python/recipes-extended/python3-pydot/python3-pydot_4.0.1.bb11
-rw-r--r--meta-python/recipes-extended/pywbem/python3-pywbem_1.7.3.bb (renamed from meta-python/recipes-extended/pywbem/python3-pywbem_1.7.2.bb)4
-rw-r--r--meta-python/recipes-extended/send2trash/python3-send2trash_1.8.3.bb1
-rw-r--r--meta-python/recipes-extended/tuna/tuna_0.19.bb1
22 files changed, 155 insertions, 89 deletions
diff --git a/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch b/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch
index d277e8b0f7..b577cd4bd4 100644
--- a/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch
+++ b/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch
@@ -6,15 +6,19 @@ Subject: [PATCH 02/11] run_program support timeout
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9
10Rebase for blivet 3.12.1.
11
12Signed-off-by: Kai Kang <kai.kang@windriver.com>
9--- 13---
10 blivet/util.py | 70 +++++++++++++++++++++++++++++--------------------- 14 blivet/util.py | 70 ++++++++++++++++++++++++++++++++++------------------------
11 1 file changed, 41 insertions(+), 29 deletions(-) 15 1 file changed, 41 insertions(+), 29 deletions(-)
12 16
13diff --git a/blivet/util.py b/blivet/util.py 17diff --git a/blivet/util.py b/blivet/util.py
14index f8a8f88..a5da7b6 100644 18index d194a5b..5985164 100644
15--- a/blivet/util.py 19--- a/blivet/util.py
16+++ b/blivet/util.py 20+++ b/blivet/util.py
17@@ -171,6 +171,30 @@ class Path(str): 21@@ -169,6 +169,30 @@ class Path(str):
18 def __hash__(self): 22 def __hash__(self):
19 return self._path.__hash__() 23 return self._path.__hash__()
20 24
@@ -45,7 +49,7 @@ index f8a8f88..a5da7b6 100644
45 49
46 def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=False, binary_output=False): 50 def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=False, binary_output=False):
47 if env_prune is None: 51 if env_prune is None:
48@@ -193,35 +217,23 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa 52@@ -191,35 +215,23 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa
49 stderr_dir = subprocess.STDOUT 53 stderr_dir = subprocess.STDOUT
50 else: 54 else:
51 stderr_dir = subprocess.PIPE 55 stderr_dir = subprocess.PIPE
@@ -58,7 +62,7 @@ index f8a8f88..a5da7b6 100644
58- preexec_fn=chroot, cwd=root, env=env) 62- preexec_fn=chroot, cwd=root, env=env)
59- 63-
60- out, err = proc.communicate() 64- out, err = proc.communicate()
61- if not binary_output and six.PY3: 65- if not binary_output:
62- out = out.decode("utf-8") 66- out = out.decode("utf-8")
63- if out: 67- if out:
64- if not stderr_to_stdout: 68- if not stderr_to_stdout:
@@ -85,7 +89,8 @@ index f8a8f88..a5da7b6 100644
85+ stderr=stderr_dir, 89+ stderr=stderr_dir,
86+ close_fds=True, 90+ close_fds=True,
87+ preexec_fn=chroot, cwd=root, env=env) 91+ preexec_fn=chroot, cwd=root, env=env)
88+ if not binary_output and six.PY3: 92+
93+ if not binary_output:
89+ out = out.decode("utf-8") 94+ out = out.decode("utf-8")
90+ if out: 95+ if out:
91+ if not stderr_to_stdout: 96+ if not stderr_to_stdout:
@@ -94,7 +99,6 @@ index f8a8f88..a5da7b6 100644
94+ program_log.info("%s", line) 99+ program_log.info("%s", line)
95+ 100+
96+ return (res, out) 101+ return (res, out)
97+
98 102
99 103
100 def run_program(*args, **kwargs): 104 def run_program(*args, **kwargs):
diff --git a/meta-python/recipes-extended/python-blivet/python3-blivet_3.9.2.bb b/meta-python/recipes-extended/python-blivet/python3-blivet_3.12.1.bb
index f0ce981480..bf492b3d57 100644
--- a/meta-python/recipes-extended/python-blivet/python3-blivet_3.9.2.bb
+++ b/meta-python/recipes-extended/python-blivet/python3-blivet_3.12.1.bb
@@ -1,5 +1,5 @@
1DESCRIPTION = "A python module for system storage configuration" 1DESCRIPTION = "A python module for system storage configuration"
2HOMEPAGE = "http://fedoraproject.org/wiki/blivet" 2HOMEPAGE = "https://fedoraproject.org/wiki/blivet"
3LICENSE = "LGPL-2.0-or-later" 3LICENSE = "LGPL-2.0-or-later"
4SECTION = "devel/python" 4SECTION = "devel/python"
5 5
@@ -16,7 +16,7 @@ SRC_URI += "\
16 file://0010-invoking-mkfs-with-infinite-timeout.patch \ 16 file://0010-invoking-mkfs-with-infinite-timeout.patch \
17 file://0011-invoking-dd-with-infinite-timeout.patch \ 17 file://0011-invoking-dd-with-infinite-timeout.patch \
18" 18"
19SRC_URI[sha256sum] = "9d97e37ebba01db28a1e6155cbd71c54fb55e9c2be5921982dc85bed316d8cfe" 19SRC_URI[sha256sum] = "54775ba212d1574b1b0750ce147f0d3cf3b5d73aaf040d172283edb57db4ba15"
20 20
21inherit pypi features_check systemd setuptools3_legacy 21inherit pypi features_check systemd setuptools3_legacy
22 22
@@ -24,7 +24,7 @@ REQUIRED_DISTRO_FEATURES = "systemd"
24 24
25RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \ 25RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \
26 parted python3-pyparted multipath-tools \ 26 parted python3-pyparted multipath-tools \
27 lsof cryptsetup libblockdev \ 27 lsof cryptsetup libblockdev libblockdev-bin \
28 libbytesize \ 28 libbytesize \
29" 29"
30 30
diff --git a/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.5.0.bb b/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.6.0.bb
index 124f36c6e0..79bee63d08 100644
--- a/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.5.0.bb
+++ b/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.6.0.bb
@@ -6,9 +6,8 @@ SECTION = "devel/python"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=main;protocol=https" 8SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=main;protocol=https"
9SRCREV = "626b44610a30ad26734dd20642538caab5a9178a" 9SRCREV = "7cec4bd48af4c8f7beb1a74bac751c3d520dedf1"
10 10
11S = "${WORKDIR}/git"
12 11
13inherit features_check setuptools3 12inherit features_check setuptools3
14REQUIRED_DISTRO_FEATURES = "x11 systemd gobject-introspection-data" 13REQUIRED_DISTRO_FEATURES = "x11 systemd gobject-introspection-data"
diff --git a/meta-python/recipes-extended/python-cson/python3-cson_git.bb b/meta-python/recipes-extended/python-cson/python3-cson_git.bb
index 489733c767..4ffe68aab6 100644
--- a/meta-python/recipes-extended/python-cson/python3-cson_git.bb
+++ b/meta-python/recipes-extended/python-cson/python3-cson_git.bb
@@ -12,7 +12,6 @@ SRCREV = "69090778bccc5ed124342ba288597fbb2bfa9f39"
12SRC_URI = "git://github.com/gt3389b/python-cson.git;branch=master;protocol=https \ 12SRC_URI = "git://github.com/gt3389b/python-cson.git;branch=master;protocol=https \
13 file://0001-setup.py-Do-not-poke-at-git-describe-to-find-version.patch" 13 file://0001-setup.py-Do-not-poke-at-git-describe-to-find-version.patch"
14 14
15S = "${WORKDIR}/git"
16 15
17RDEPENDS:${PN} = "python3-json" 16RDEPENDS:${PN} = "python3-json"
18 17
diff --git a/meta-python/recipes-extended/python-meh/python3-meh_0.51.bb b/meta-python/recipes-extended/python-meh/python3-meh_0.52.bb
index e83514af1b..80f9881b58 100644
--- a/meta-python/recipes-extended/python-meh/python3-meh_0.51.bb
+++ b/meta-python/recipes-extended/python-meh/python3-meh_0.52.bb
@@ -7,10 +7,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8inherit setuptools3_legacy 8inherit setuptools3_legacy
9 9
10S = "${WORKDIR}/git"
11 10
12SRC_URI = "git://github.com/rhinstaller/python-meh.git;protocol=https;branch=master" 11SRC_URI = "git://github.com/rhinstaller/python-meh.git;protocol=https;branch=master"
13 12
14SRCREV = "eb5d4adc3b838704b6a68f0f77ada2063a11ab1b" 13SRCREV = "f0fcc3ce1943dce9cf958f4a2f7398daff619c9f"
15 14
16FILES:${PN} += "${datadir}/python-meh" 15FILES:${PN} += "${datadir}/python-meh"
diff --git a/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.5.bb b/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.2.bb
index 8c9262afb8..0817bc732a 100644
--- a/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.5.bb
+++ b/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.2.bb
@@ -1,10 +1,10 @@
1SUMMARY = "PyEphem astronomical calculations" 1SUMMARY = "PyEphem astronomical calculations"
2HOMEPAGE = "http://rhodesmill.org/pyephem/" 2HOMEPAGE = "https://rhodesmill.org/pyephem/"
3 3
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=9c930b395b435b00bb13ec83b0c99f40" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=9c930b395b435b00bb13ec83b0c99f40"
6 6
7SRC_URI[sha256sum] = "0c64a8aa401574c75942045b9af70d1656e14c5366151c0cbb400cbeedc2362a" 7SRC_URI[sha256sum] = "3c4fd64f453e8f40cf862420a70da95a71b6487ace75e8e0cf85d73707db6065"
8 8
9PYPI_PACKAGE = "ephem" 9PYPI_PACKAGE = "ephem"
10 10
diff --git a/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch b/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch
index 309a00122a..ed656f6c6a 100644
--- a/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch
+++ b/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch
@@ -1,4 +1,4 @@
1From 3540ddcc7448dc784b65c74424c8a25132cb8534 Mon Sep 17 00:00:00 2001 1From 80190be8d9c82ed816fb571abef416a1fbfb9a35 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 31 Jul 2018 17:24:47 +0800 3Date: Tue, 31 Jul 2018 17:24:47 +0800
4Subject: [PATCH] support authentication for kickstart 4Subject: [PATCH] support authentication for kickstart
@@ -12,11 +12,14 @@ which the invoker could parse this specific error.
12Upstream-Status: Inappropriate [oe specific] 12Upstream-Status: Inappropriate [oe specific]
13 13
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15
16Rebase to 3.62
17Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
15--- 18---
16 pykickstart/errors.py | 17 +++++++++++++++++ 19 pykickstart/errors.py | 17 +++++++++++++++++
17 pykickstart/load.py | 32 +++++++++++++++++++++++++++----- 20 pykickstart/load.py | 33 ++++++++++++++++++++++++++++-----
18 pykickstart/parser.py | 4 ++-- 21 pykickstart/parser.py | 4 ++--
19 3 files changed, 46 insertions(+), 7 deletions(-) 22 3 files changed, 47 insertions(+), 7 deletions(-)
20 23
21diff --git a/pykickstart/errors.py b/pykickstart/errors.py 24diff --git a/pykickstart/errors.py b/pykickstart/errors.py
22index 8294f59..3d20bf8 100644 25index 8294f59..3d20bf8 100644
@@ -51,7 +54,7 @@ index 8294f59..3d20bf8 100644
51+ def __str__(self): 54+ def __str__(self):
52+ return self.value 55+ return self.value
53diff --git a/pykickstart/load.py b/pykickstart/load.py 56diff --git a/pykickstart/load.py b/pykickstart/load.py
54index eb76b65..f51cf08 100644 57index e8301a4..45d402a 100644
55--- a/pykickstart/load.py 58--- a/pykickstart/load.py
56+++ b/pykickstart/load.py 59+++ b/pykickstart/load.py
57@@ -18,9 +18,11 @@ 60@@ -18,9 +18,11 @@
@@ -85,7 +88,7 @@ index eb76b65..f51cf08 100644
85 else: 88 else:
86 return _load_file(location) 89 return _load_file(location)
87 90
88@@ -69,11 +71,31 @@ def load_to_file(location, destination): 91@@ -69,11 +71,32 @@ def load_to_file(location, destination):
89 _copy_file(location, destination) 92 _copy_file(location, destination)
90 return destination 93 return destination
91 94
@@ -111,19 +114,20 @@ index eb76b65..f51cf08 100644
111+ 114+
112+def _load_url(location, user=None, passwd=None): 115+def _load_url(location, user=None, passwd=None):
113 '''Load a location (URL or filename) and return contents as string''' 116 '''Load a location (URL or filename) and return contents as string'''
114+ auth = _get_auth(location, user=user, passwd=passwd)
115 117
118+ auth = _get_auth(location, user=user, passwd=passwd)
119+
116 try: 120 try:
117- request = requests.get(location, verify=SSL_VERIFY) 121- request = requests.get(location, verify=SSL_VERIFY, timeout=120)
118+ request = requests.get(location, verify=SSL_VERIFY, auth=auth) 122+ request = requests.get(location, verify=SSL_VERIFY, auth=auth, timeout=120)
119 except SSLError as e: 123 except SSLError as e:
120 raise KickstartError(_('Error securely accessing URL "%s"') % location + ': {e}'.format(e=str(e))) 124 raise KickstartError(_('Error securely accessing URL "%s"') % location + ': {e}'.format(e=str(e)))
121 except RequestException as e: 125 except RequestException as e:
122diff --git a/pykickstart/parser.py b/pykickstart/parser.py 126diff --git a/pykickstart/parser.py b/pykickstart/parser.py
123index 7edf8aa..46c5299 100644 127index 12b0467..351dc1b 100644
124--- a/pykickstart/parser.py 128--- a/pykickstart/parser.py
125+++ b/pykickstart/parser.py 129+++ b/pykickstart/parser.py
126@@ -790,7 +790,7 @@ class KickstartParser(object): 130@@ -831,7 +831,7 @@ class KickstartParser(object):
127 i = PutBackIterator(s.splitlines(True) + [""]) 131 i = PutBackIterator(s.splitlines(True) + [""])
128 self._stateMachine(i) 132 self._stateMachine(i)
129 133
@@ -132,7 +136,7 @@ index 7edf8aa..46c5299 100644
132 """Process a kickstart file, given by the filename f.""" 136 """Process a kickstart file, given by the filename f."""
133 if reset: 137 if reset:
134 self._reset() 138 self._reset()
135@@ -811,7 +811,7 @@ class KickstartParser(object): 139@@ -852,7 +852,7 @@ class KickstartParser(object):
136 self.currentdir[self._includeDepth] = cd 140 self.currentdir[self._includeDepth] = cd
137 141
138 try: 142 try:
diff --git a/meta-python/recipes-extended/python-pykickstart/files/0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch b/meta-python/recipes-extended/python-pykickstart/files/0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch
index f5483db825..cf5dd95d48 100644
--- a/meta-python/recipes-extended/python-pykickstart/files/0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch
+++ b/meta-python/recipes-extended/python-pykickstart/files/0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch
@@ -1,8 +1,8 @@
1From 62fdead139edb0f29b2f222efcb8f39be15b057e Mon Sep 17 00:00:00 2001 1From 42076483ed38d50400156cbb75d4c9b0180e6957 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 30 Jul 2018 15:47:13 +0800 3Date: Mon, 30 Jul 2018 15:47:13 +0800
4Subject: [PATCH 2/4] pykickstart/parser.py: add lock for readKickstart and 4Subject: [PATCH] pykickstart/parser.py: add lock for readKickstart and support
5 support https without certification 5 https without certification
6 6
7- Add lock for readKickstart to fix race issue 7- Add lock for readKickstart to fix race issue
8 8
@@ -13,15 +13,18 @@ Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
13--- 13---
14Upstream-Status: Pending 14Upstream-Status: Pending
15 15
16Rebase to 3.62
17Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
18---
16 pykickstart/load.py | 2 +- 19 pykickstart/load.py | 2 +-
17 pykickstart/parser.py | 18 ++++++++++++++++++ 20 pykickstart/parser.py | 18 ++++++++++++++++++
18 2 files changed, 19 insertions(+), 1 deletion(-) 21 2 files changed, 19 insertions(+), 1 deletion(-)
19 22
20diff --git a/pykickstart/load.py b/pykickstart/load.py 23diff --git a/pykickstart/load.py b/pykickstart/load.py
21index 8da8051..e856c8d 100644 24index 45d402a..6eeffde 100644
22--- a/pykickstart/load.py 25--- a/pykickstart/load.py
23+++ b/pykickstart/load.py 26+++ b/pykickstart/load.py
24@@ -32,7 +32,7 @@ log = logging.getLogger("anaconda.main") 27@@ -28,7 +28,7 @@ from requests.exceptions import SSLError, RequestException
25 28
26 is_url = lambda location: '://' in location # RFC 3986 29 is_url = lambda location: '://' in location # RFC 3986
27 30
@@ -31,10 +34,10 @@ index 8da8051..e856c8d 100644
31 def load_to_str(location, user=None, passwd=None): 34 def load_to_str(location, user=None, passwd=None):
32 '''Load a destination URL or file into a string. 35 '''Load a destination URL or file into a string.
33diff --git a/pykickstart/parser.py b/pykickstart/parser.py 36diff --git a/pykickstart/parser.py b/pykickstart/parser.py
34index b95ba90..a55a9a3 100644 37index 351dc1b..aef59ca 100644
35--- a/pykickstart/parser.py 38--- a/pykickstart/parser.py
36+++ b/pykickstart/parser.py 39+++ b/pykickstart/parser.py
37@@ -51,6 +51,20 @@ from pykickstart.i18n import _ 40@@ -54,6 +54,20 @@ from pykickstart.i18n import _
38 STATE_END = "end" 41 STATE_END = "end"
39 STATE_COMMANDS = "commands" 42 STATE_COMMANDS = "commands"
40 43
@@ -55,7 +58,7 @@ index b95ba90..a55a9a3 100644
55 def _preprocessStateMachine(lineIter): 58 def _preprocessStateMachine(lineIter):
56 l = None 59 l = None
57 lineno = 0 60 lineno = 0
58@@ -791,6 +805,10 @@ class KickstartParser(object): 61@@ -832,6 +846,10 @@ class KickstartParser(object):
59 self._stateMachine(i) 62 self._stateMachine(i)
60 63
61 def readKickstart(self, f, reset=True, username=None, password=None): 64 def readKickstart(self, f, reset=True, username=None, password=None):
diff --git a/meta-python/recipes-extended/python-pykickstart/files/0004-load.py-retry-to-invoke-request-with-timeout.patch b/meta-python/recipes-extended/python-pykickstart/files/0004-load.py-retry-to-invoke-request-with-timeout.patch
index abe2c87e00..e2c65ee957 100644
--- a/meta-python/recipes-extended/python-pykickstart/files/0004-load.py-retry-to-invoke-request-with-timeout.patch
+++ b/meta-python/recipes-extended/python-pykickstart/files/0004-load.py-retry-to-invoke-request-with-timeout.patch
@@ -1,4 +1,4 @@
1From 737e9a7c11233183f48ce6c83d38b504c8ffed12 Mon Sep 17 00:00:00 2001 1From d5e6304dff890b39a53a96f03819aa118deb701a Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 30 Jul 2018 15:52:21 +0800 3Date: Mon, 30 Jul 2018 15:52:21 +0800
4Subject: [PATCH] load.py: retry to invoke request with timeout 4Subject: [PATCH] load.py: retry to invoke request with timeout
@@ -11,12 +11,15 @@ network is up, the fetch works.
11Upstream-Status: Inappropriate [oe specific] 11Upstream-Status: Inappropriate [oe specific]
12 12
13Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 13Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
14
15Rebase to 3.62
16Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
14--- 17---
15 pykickstart/load.py | 31 +++++++++++++++++++++++++++++++ 18 pykickstart/load.py | 30 ++++++++++++++++++++++++++++++
16 1 file changed, 31 insertions(+) 19 1 file changed, 30 insertions(+)
17 20
18diff --git a/pykickstart/load.py b/pykickstart/load.py 21diff --git a/pykickstart/load.py b/pykickstart/load.py
19index 58faba6..e856c8d 100644 22index 6eeffde..da0032f 100644
20--- a/pykickstart/load.py 23--- a/pykickstart/load.py
21+++ b/pykickstart/load.py 24+++ b/pykickstart/load.py
22@@ -20,12 +20,16 @@ 25@@ -20,12 +20,16 @@
@@ -66,11 +69,10 @@ index 58faba6..e856c8d 100644
66 def _get_auth(location, user=None, passwd=None): 69 def _get_auth(location, user=None, passwd=None):
67 70
68 auth = None 71 auth = None
69@@ -92,6 +119,10 @@ def _get_auth(location, user=None, passwd=None): 72@@ -93,6 +120,9 @@ def _get_auth(location, user=None, passwd=None):
70
71 def _load_url(location, user=None, passwd=None): 73 def _load_url(location, user=None, passwd=None):
72 '''Load a location (URL or filename) and return contents as string''' 74 '''Load a location (URL or filename) and return contents as string'''
73+ 75
74+ if not _access_url(location): 76+ if not _access_url(location):
75+ raise KickstartError(_("Connection %s failed" % location)) 77+ raise KickstartError(_("Connection %s failed" % location))
76+ 78+
diff --git a/meta-python/recipes-extended/python-pykickstart/files/run-ptest b/meta-python/recipes-extended/python-pykickstart/files/run-ptest
new file mode 100755
index 0000000000..289e68b054
--- /dev/null
+++ b/meta-python/recipes-extended/python-pykickstart/files/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake --deselect tests/test_packages.py::AddGroupsAndEnvironment_TestCase --deselect tests/commands/test_reboot.py::Reboot_TestCase
diff --git a/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.48.bb b/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.48.bb
deleted file mode 100644
index 953068f7c3..0000000000
--- a/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.48.bb
+++ /dev/null
@@ -1,25 +0,0 @@
1DESCRIPTION = "A python library for manipulating kickstart files"
2HOMEPAGE = "http://fedoraproject.org/wiki/pykickstart"
3LICENSE = "GPL-2.0-or-later"
4
5LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
6FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
7
8DEPENDS = "python3"
9RDEPENDS:${PN} = "python3 \
10 python3-requests \
11 python3-six \
12"
13
14S = "${WORKDIR}/git"
15SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=master \
16 file://0001-support-authentication-for-kickstart.patch \
17 file://0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch \
18 file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \
19 file://0004-load.py-retry-to-invoke-request-with-timeout.patch \
20 "
21SRCREV = "fa6c80c0e5c6bee29d089899a10d26e6f7f8afd8"
22
23UPSTREAM_CHECK_GITTAGREGEX = "r(?P<pver>\d+(\.\d+)+(-\d+)*)"
24
25inherit setuptools3
diff --git a/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb b/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb
new file mode 100644
index 0000000000..830e46a63c
--- /dev/null
+++ b/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb
@@ -0,0 +1,39 @@
1DESCRIPTION = "A python library for manipulating kickstart files"
2HOMEPAGE = "https://fedoraproject.org/wiki/pykickstart"
3LICENSE = "GPL-2.0-or-later"
4
5LIC_FILES_CHKSUM = "file://COPYING;md5=81bcece21748c91ba9992349a91ec11d"
6
7inherit python_setuptools_build_meta ptest
8
9RDEPENDS:${PN} = "python3 \
10 python3-requests \
11 python3-six \
12"
13
14RDEPENDS:${PN}-ptest += " \
15 python3-pytest \
16 python3-unittest-automake-output \
17"
18
19do_install_ptest() {
20 install -d ${D}${PTEST_PATH}/tests
21 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests
22 for file in `grep -Rl unittest.main ${D}${PTEST_PATH}/tests/`; do
23 dirname=`dirname $file`
24 basename=`basename $file`
25 [ $basename != "__init__.py" ] && mv $file ${dirname}/test_${basename}
26 done
27}
28
29SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=master;tag=r${PV} \
30 file://0001-support-authentication-for-kickstart.patch \
31 file://0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch \
32 file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \
33 file://0004-load.py-retry-to-invoke-request-with-timeout.patch \
34 file://run-ptest \
35 "
36SRCREV = "6e0d1238cb4696a9040072a5a28a706e5775c552"
37
38UPSTREAM_CHECK_GITTAGREGEX = "r(?P<pver>\d+(\.\d+)+(-\d+)*)"
39
diff --git a/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.12.0.bb b/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.13.0.bb
index 7a0d3987d2..0f7065f5ae 100644
--- a/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.12.0.bb
+++ b/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.13.0.bb
@@ -5,11 +5,11 @@ SUMMARY = "Python bindings for libparted"
5HOMEPAGE = "https://github.com/rhinstaller/pyparted" 5HOMEPAGE = "https://github.com/rhinstaller/pyparted"
6LICENSE = "GPL-2.0-or-later" 6LICENSE = "GPL-2.0-or-later"
7LIC_FILES_CHKSUM = "\ 7LIC_FILES_CHKSUM = "\
8 file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ 8 file://LICENSE;md5=8ca43cbc842c2336e835926c2166c28b \
9 file://src/_pedmodule.c;beginline=10;endline=22;md5=9e53304db812b80d0939e11bb69dcab2 \ 9 file://src/_pedmodule.c;beginline=10;endline=22;md5=c4b9f810cd53b16ff269447fb8af6c3d \
10" 10"
11 11
12SRC_URI[sha256sum] = "da985e116beb733371feb605b174db9eec8bd0eedffc8f739f8e603f51b521e7" 12SRC_URI[sha256sum] = "443b59eb9ac63b8ca87094e02376646e172c7ea075f955f105889ca3485b06fd"
13 13
14inherit pkgconfig pypi setuptools3 14inherit pkgconfig pypi setuptools3
15 15
diff --git a/meta-python/recipes-extended/python-pytesseract/pytesseract_0.3.13.bb b/meta-python/recipes-extended/python-pytesseract/pytesseract_0.3.13.bb
new file mode 100644
index 0000000000..0d8cfcb408
--- /dev/null
+++ b/meta-python/recipes-extended/python-pytesseract/pytesseract_0.3.13.bb
@@ -0,0 +1,16 @@
1SUMMARY = "Python-tesseract is an optical character recognition (OCR) tool for python. That is, it will recognize and "read" the text embedded in images."
2
3HOMEPAGE = "https://github.com/madmaze/pytesseract"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
7
8SRC_URI[md5sum] = "73f9645e59b437f064d05882b95832ce"
9
10RDEPENDS:${PN}:append = " python3-packaging tesseract"
11
12PYPI_PACKAGE = "pytesseract"
13
14inherit pypi setuptools3
15
16BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-extended/python-rich/python3-rich_13.7.1.bb b/meta-python/recipes-extended/python-rich/python3-rich_14.0.0.bb
index 27bc95428f..8a4d6b843e 100644
--- a/meta-python/recipes-extended/python-rich/python3-rich_13.7.1.bb
+++ b/meta-python/recipes-extended/python-rich/python3-rich_14.0.0.bb
@@ -2,14 +2,20 @@ SUMMARY = "Rich is a Python library for rich text and beautiful formatting in th
2DESCRIPTION = "The Rich API makes it easy to add color and style to terminal output. \ 2DESCRIPTION = "The Rich API makes it easy to add color and style to terminal output. \
3Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, \ 3Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, \
4tracebacks, and more." 4tracebacks, and more."
5HOMEPAGE="https://github.com/Textualize/rich" 5HOMEPAGE = "https://github.com/Textualize/rich"
6SECTION = "devel/python" 6SECTION = "devel/python"
7LICENSE = "MIT" 7LICENSE = "MIT"
8 8
9LIC_FILES_CHKSUM = "file://LICENSE;md5=b5f0b94fbc94f5ad9ae4efcf8a778303" 9LIC_FILES_CHKSUM = "file://LICENSE;md5=b5f0b94fbc94f5ad9ae4efcf8a778303"
10 10
11SRC_URI[sha256sum] = "9be308cb1fe2f1f57d67ce99e95af38a1e2bc71ad9813b0e247cf7ffbcc3a432" 11SRC_URI[sha256sum] = "82f1bc23a6a21ebca4ae0c45af9bdbc492ed20231dcb63f297d6d1021a9d5725"
12 12
13inherit pypi python_poetry_core 13inherit pypi python_poetry_core
14 14
15RDEPENDS:${PN} = "python3-pygments" 15RDEPENDS:${PN} = "python3-html \
16 python3-image \
17 python3-pygments \
18 python3-unixadmin \
19 "
20
21BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb b/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb
new file mode 100644
index 0000000000..941d92f55b
--- /dev/null
+++ b/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb
@@ -0,0 +1,17 @@
1DESCRIPTION = "GPT Image is used to Create GUID Partition Table disk images \
2on local disks. Written in pure Python gpt-image allows GPT disk images to \
3be built on a local filesystem and exported to a destination device."
4SUMMARY = "GPT Image (pure python)"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=db5f8de88d13d0917db21293d0e82e1d"
7
8DEPENDS += "python3-pip"
9
10PYPI_PACKAGE = "gpt_image"
11SRC_URI[sha256sum] = "c06d8efc7cf8d6f3954c1c3d8544f494aa95da37fe04e38a9699ad3f57455f7e"
12
13inherit pypi python3native python_setuptools_build_meta ptest-python-pytest
14
15do_install:append() {
16 rm -fr ${D}${libdir}/python*/site-packages/gpt-image/__pycache__
17}
diff --git a/meta-python/recipes-extended/python3-portalocker/python3-portalocker_2.8.2.bb b/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.1.1.bb
index c45a3fcda2..7a36ab74e3 100644
--- a/meta-python/recipes-extended/python3-portalocker/python3-portalocker_2.8.2.bb
+++ b/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.1.1.bb
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause"
4 4
5LIC_FILES_CHKSUM = "file://LICENSE;md5=152634da660a374ca18c0734ed07c63c" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=152634da660a374ca18c0734ed07c63c"
6 6
7SRC_URI[sha256sum] = "2b035aa7828e46c58e9b31390ee1f169b98e1066ab10b9a6a861fe7e25ee4f33" 7SRC_URI[sha256sum] = "ec20f6dda2ad9ce89fa399a5f31f4f1495f515958f0cb7ca6543cef7bb5a749e"
8 8
9DEPENDS += "python3-setuptools-scm-native" 9DEPENDS += "python3-setuptools-scm-native"
10 10
diff --git a/meta-python/recipes-extended/python3-pydot/python3-pydot_2.0.0.bb b/meta-python/recipes-extended/python3-pydot/python3-pydot_2.0.0.bb
deleted file mode 100644
index f0a6abd733..0000000000
--- a/meta-python/recipes-extended/python3-pydot/python3-pydot_2.0.0.bb
+++ /dev/null
@@ -1,11 +0,0 @@
1SUMMARY = "pydot is is an interface to Graphviz."
2HOMEPAGE = "https://github.com/pydot/pydot"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=3f6fa041dfcc7ff7747cfceaa34a3180"
6
7SRC_URI[sha256sum] = "60246af215123fa062f21cd791be67dda23a6f280df09f68919e637a1e4f3235"
8
9inherit pypi setuptools3
10
11RDEPENDS:${PN} = "graphviz python3-pyparsing"
diff --git a/meta-python/recipes-extended/python3-pydot/python3-pydot_4.0.1.bb b/meta-python/recipes-extended/python3-pydot/python3-pydot_4.0.1.bb
new file mode 100644
index 0000000000..d62d5014de
--- /dev/null
+++ b/meta-python/recipes-extended/python3-pydot/python3-pydot_4.0.1.bb
@@ -0,0 +1,11 @@
1SUMMARY = "pydot is is an interface to Graphviz."
2HOMEPAGE = "https://github.com/pydot/pydot"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=7dda4e90ded66ab88b86f76169f28663"
6
7SRC_URI[sha256sum] = "c2148f681c4a33e08bf0e26a9e5f8e4099a82e0e2a068098f32ce86577364ad5"
8
9inherit pypi python_setuptools_build_meta
10
11RDEPENDS:${PN} = "graphviz python3-pyparsing"
diff --git a/meta-python/recipes-extended/pywbem/python3-pywbem_1.7.2.bb b/meta-python/recipes-extended/pywbem/python3-pywbem_1.7.3.bb
index 1fdcc98ca7..59c9914bc2 100644
--- a/meta-python/recipes-extended/pywbem/python3-pywbem_1.7.2.bb
+++ b/meta-python/recipes-extended/pywbem/python3-pywbem_1.7.3.bb
@@ -12,11 +12,11 @@ at http://www.dmtf.org/standards/wbem. \
12\ 12\
13It also provides a Python provider interface, and is the fastest and easiest \ 13It also provides a Python provider interface, and is the fastest and easiest \
14way to write providers on the planet." 14way to write providers on the planet."
15HOMEPAGE = "http://pywbem.github.io" 15HOMEPAGE = "https://pywbem.github.io"
16LICENSE = "LGPL-2.1-only" 16LICENSE = "LGPL-2.1-only"
17LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbc093901857fcd118f065f900982c24" 17LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbc093901857fcd118f065f900982c24"
18 18
19SRC_URI[sha256sum] = "dc3b785840017f5fcb6381c56682598cebbfc8451851768f85e2318a84e06b68" 19SRC_URI[sha256sum] = "d1f0a2ebd4ffedef8d067af3855216db5190c7f6f27c8d2dcd467e09701c90b0"
20 20
21inherit pypi setuptools3 update-alternatives 21inherit pypi setuptools3 update-alternatives
22 22
diff --git a/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.3.bb b/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.3.bb
index 0bbfb9a11f..89943095de 100644
--- a/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.3.bb
+++ b/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.3.bb
@@ -7,6 +7,7 @@ inherit pypi python_setuptools_build_meta
7SRC_URI[sha256sum] = "b18e7a3966d99871aefeb00cfbcfdced55ce4871194810fc71f4aa484b953abf" 7SRC_URI[sha256sum] = "b18e7a3966d99871aefeb00cfbcfdced55ce4871194810fc71f4aa484b953abf"
8 8
9PYPI_PACKAGE = "Send2Trash" 9PYPI_PACKAGE = "Send2Trash"
10UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
10 11
11RDEPENDS:${PN} += "\ 12RDEPENDS:${PN} += "\
12 python3-io \ 13 python3-io \
diff --git a/meta-python/recipes-extended/tuna/tuna_0.19.bb b/meta-python/recipes-extended/tuna/tuna_0.19.bb
index ea0f157921..643e3a09ff 100644
--- a/meta-python/recipes-extended/tuna/tuna_0.19.bb
+++ b/meta-python/recipes-extended/tuna/tuna_0.19.bb
@@ -7,7 +7,6 @@ SRC_URI = "git://git.kernel.org/pub/scm/utils/tuna/tuna.git;branch=main"
7 7
8SRCREV = "b972b8ce386c29bcbcd45029a617db3db9e5b6ca" 8SRCREV = "b972b8ce386c29bcbcd45029a617db3db9e5b6ca"
9 9
10S = "${WORKDIR}/git"
11 10
12RDEPENDS:${PN} += " \ 11RDEPENDS:${PN} += " \
13 python3-io \ 12 python3-io \