diff --git a/meta-python/recipes-devtools/python/python3-argcomplete_1.12.3.bb b/meta-python/recipes-devtools/python/python3-argcomplete_2.0.0.bb similarity index 83% rename from meta-python/recipes-devtools/python/python3-argcomplete_1.12.3.bb rename to meta-python/recipes-devtools/python/python3-argcomplete_2.0.0.bb index aff0c97ec95..4eab34f4881 100644 --- a/meta-python/recipes-devtools/python/python3-argcomplete_1.12.3.bb +++ b/meta-python/recipes-devtools/python/python3-argcomplete_2.0.0.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/kislyuk/argcomplete" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=2ee41112a44fe7014dce33e26468ba93" -SRC_URI[sha256sum] = "2c7dbffd8c045ea534921e63b0be6fe65e88599990d8dc408ac8c542b72a5445" +SRC_URI[sha256sum] = "6372ad78c89d662035101418ae253668445b391755cfe94ea52f1b9d22425b20" PYPI_PACKAGE = "argcomplete" diff --git a/meta-python/recipes-devtools/python/python3-async-timeout_4.0.2.bb b/meta-python/recipes-devtools/python/python3-async-timeout_4.0.2.bb new file mode 100644 index 00000000000..7355f00131f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-async-timeout_4.0.2.bb @@ -0,0 +1,18 @@ +SUMMARY = "asyncio-compatible timeout context manager" +DESCRIPTION = "\ +The context manager is useful in cases when you want to apply \ +timeout logic around block of code or in cases when asyncio.wait_for() \ +is not suitable. Also it's much faster than asyncio.wait_for() because \ +timeout doesn't create a new task." +HOMEPAGE = "https://github.com/aio-libs/async-timeout" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4fa41f15bb5f23b6d3560c5845eb8d57" + +SRC_URI[sha256sum] = "2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15" + +PYPI_PACKAGE = "async-timeout" +inherit pypi setuptools3 + +RDEPENDS:${PN} = "\ + ${PYTHON_PN}-asyncio \ +" diff --git a/meta-python/recipes-devtools/python/python3-engineio_4.3.0.bb b/meta-python/recipes-devtools/python/python3-engineio_4.3.1.bb similarity index 81% rename from meta-python/recipes-devtools/python/python3-engineio_4.3.0.bb rename to meta-python/recipes-devtools/python/python3-engineio_4.3.1.bb index 95edb860ac5..a16306effb4 100644 --- a/meta-python/recipes-devtools/python/python3-engineio_4.3.0.bb +++ b/meta-python/recipes-devtools/python/python3-engineio_4.3.1.bb @@ -17,4 +17,4 @@ RDEPENDS:${PN} += " \ python3-asyncio \ " -SRC_URI[sha256sum] = "fed35eeacfa21f53f1fc05ef0cadd65a50780364da3a2be7650eb92f928fdb11" +SRC_URI[sha256sum] = "6e1d26977ffefe3b7da1b5df7a8750aedc7686da8201cd90daf36693db122489" diff --git a/meta-python/recipes-devtools/python/python3-google-api-python-client_2.33.0.bb b/meta-python/recipes-devtools/python/python3-google-api-python-client_2.36.0.bb similarity index 86% rename from meta-python/recipes-devtools/python/python3-google-api-python-client_2.33.0.bb rename to meta-python/recipes-devtools/python/python3-google-api-python-client_2.36.0.bb index 913c3719fd6..502ebad3f00 100644 --- a/meta-python/recipes-devtools/python/python3-google-api-python-client_2.33.0.bb +++ b/meta-python/recipes-devtools/python/python3-google-api-python-client_2.36.0.bb @@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/googleapis/google-api-python-client" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" -SRC_URI[sha256sum] = "38e98611794632a12479fafbabe0b5027e8fcfc412e8375f1b23db0bc0209181" +SRC_URI[sha256sum] = "533c69e8ddce6630a2ce5b98348f6a58a23df49cb92040a0086315df979404af" inherit pypi setuptools3 diff --git a/meta-python/recipes-devtools/python/python3-lxml/0001-setupinfo.py-check-the-return-value.patch b/meta-python/recipes-devtools/python/python3-lxml/0001-setupinfo.py-check-the-return-value.patch new file mode 100644 index 00000000000..7d9121846f3 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lxml/0001-setupinfo.py-check-the-return-value.patch @@ -0,0 +1,46 @@ +From 057872fa40e061100d61117cee5c3413ef2e40fc Mon Sep 17 00:00:00 2001 +From: Mingli Yu +Date: Thu, 20 Jan 2022 15:18:20 +0800 +Subject: [PATCH] setupinfo.py: check the return value + +Use the return value altogether to check the subprocess execute +successfully or not as in some case it will print some noise +message though run successfully as below. + + # python + Python 3.8.10 (default, Nov 26 2021, 20:14:08) + [GCC 9.3.0] on linux + Type "help", "copyright", "credits" or "license" for more information. + >>> import subprocess + >>> cmd = "pkg-config --modversion libxml-2.0" + >>> p = subprocess.Popen(cmd, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE) + >>> stdout_data, errors = p.communicate() + >>> print(stdout_data) + b'2.9.12\n' + >>> print(errors) + b'do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable\n' + >>> + +Upstream-Status: Submitted [https://github.com/lxml/lxml/pull/336] + +Signed-off-by: Mingli Yu +--- + setupinfo.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setupinfo.py b/setupinfo.py +index 8c2a36fb..c1247c6d 100644 +--- a/setupinfo.py ++++ b/setupinfo.py +@@ -365,7 +365,7 @@ def run_command(cmd, *args): + stdout=subprocess.PIPE, stderr=subprocess.PIPE) + stdout_data, errors = p.communicate() + +- if errors: ++ if p.returncode != 0 and errors: + return '' + return decode_input(stdout_data).strip() + +-- +2.17.1 + diff --git a/meta-python/recipes-devtools/python/python3-lxml_4.7.1.bb b/meta-python/recipes-devtools/python/python3-lxml_4.7.1.bb index cb33fcc3c75..43f071281dc 100644 --- a/meta-python/recipes-devtools/python/python3-lxml_4.7.1.bb +++ b/meta-python/recipes-devtools/python/python3-lxml_4.7.1.bb @@ -20,6 +20,9 @@ DEPENDS += "libxml2 libxslt" SRC_URI[sha256sum] = "a1613838aa6b89af4ba10a0f3a972836128801ed008078f8c1244e65958f1b24" +SRC_URI += " \ + file://0001-setupinfo.py-check-the-return-value.patch \ +" inherit pkgconfig pypi setuptools3 # {standard input}: Assembler messages: diff --git a/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.12.bb similarity index 78% rename from meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb rename to meta-python/recipes-devtools/python/python3-simpleeval_0.9.12.bb index 36512cba9a3..8ad6acc875c 100644 --- a/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb +++ b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.12.bb @@ -3,8 +3,7 @@ HOMEPAGE = "https://pypi.org/project/simpleeval/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENCE;md5=dc9277482effe59b734b004cbcc1fee7" -SRC_URI[md5sum] = "f175fc12d408487ca26fa3905e0a6691" -SRC_URI[sha256sum] = "692055488c2864637f6c2edb5fa48175978a2a07318009e7cf03c9790ca17bea" +SRC_URI[sha256sum] = "3e0be507486d4e21cf9d08847c7e57dd61a1603950399985f7c5a0be7fd33e36" inherit pypi setuptools3 ptest @@ -14,12 +13,18 @@ SRC_URI += " \ file://run-ptest \ " +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-math \ +" + RDEPENDS:${PN}-ptest += " \ ${PYTHON_PN}-pytest \ " + do_configure:prepend() { sed -i -e "/use_2to3=True,/d" ${S}/setup.py } + do_install_ptest() { cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/ } diff --git a/meta-python/recipes-devtools/python/python3-socketio_5.5.0.bb b/meta-python/recipes-devtools/python/python3-socketio_5.5.1.bb similarity index 89% rename from meta-python/recipes-devtools/python/python3-socketio_5.5.0.bb rename to meta-python/recipes-devtools/python/python3-socketio_5.5.1.bb index 425dadc4f19..ebbb5c047a5 100644 --- a/meta-python/recipes-devtools/python/python3-socketio_5.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-socketio_5.5.1.bb @@ -9,7 +9,7 @@ inherit pypi setuptools3 PYPI_PACKAGE = "python-socketio" -SRC_URI[sha256sum] = "ce972ea1b82aa1811fa10d30cf0d5c251b9a1558c3d66829b6fe70854bcccf0b" +SRC_URI[sha256sum] = "ac8e64d59a15d1c31a4fe8434f4ff16d0f640c824ba517dce7ca99e95f0cd36a" PACKAGECONFIG ?= "asyncio_client client" PACKAGECONFIG[asyncio_client] = ",,,${PYTHON_PN}-aiohttp ${PYTHON_PN}-websockets" diff --git a/meta-python/recipes-devtools/python/python3-twine_3.4.1.bb b/meta-python/recipes-devtools/python/python3-twine_3.4.1.bb deleted file mode 100644 index 111366dba05..00000000000 --- a/meta-python/recipes-devtools/python/python3-twine_3.4.1.bb +++ /dev/null @@ -1,14 +0,0 @@ -DESCRIPTION = "Utilities for interacting with PyPI" -HOMEPAGE = "https://twine.readthedocs.io/" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a3d1106b253a8d50dd82a4202a045b4c" - -SRC_URI[sha256sum] = "a56c985264b991dc8a8f4234eb80c5af87fa8080d0c224ad8f2cd05a2c22e83b" - -inherit pypi setuptools3 - -DEPENDS += "\ - ${PYTHON_PN}-setuptools-scm-native \ -" - -BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/python/python3-twine_3.7.1.bb b/meta-python/recipes-devtools/python/python3-twine_3.7.1.bb new file mode 100644 index 00000000000..bcc881e44f8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-twine_3.7.1.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "Utilities for interacting with PyPI" +HOMEPAGE = "https://twine.readthedocs.io/" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a3d1106b253a8d50dd82a4202a045b4c" + +SRC_URI[sha256sum] = "28460a3db6b4532bde6a5db6755cf2dce6c5020bada8a641bb2c5c7a9b1f35b8" + +inherit pypi setuptools3 + +DEPENDS += "\ + ${PYTHON_PN}-setuptools-scm-native \ +" + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-importlib-metadata \ +" + +do_compile:prepend() { + echo "from setuptools import setup" > ${S}/setup.py + echo "setup()" >> ${S}/setup.py +} + +BBCLASSEXTEND = "native"