Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
18 changes: 18 additions & 0 deletions meta-python/recipes-devtools/python/python3-async-timeout_4.0.2.bb
Original file line number Diff line number Diff line change
@@ -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 \
"
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ RDEPENDS:${PN} += " \
python3-asyncio \
"

SRC_URI[sha256sum] = "fed35eeacfa21f53f1fc05ef0cadd65a50780364da3a2be7650eb92f928fdb11"
SRC_URI[sha256sum] = "6e1d26977ffefe3b7da1b5df7a8750aedc7686da8201cd90daf36693db122489"
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
From 057872fa40e061100d61117cee5c3413ef2e40fc Mon Sep 17 00:00:00 2001
From: Mingli Yu <[email protected]>
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 <[email protected]>
---
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

3 changes: 3 additions & 0 deletions meta-python/recipes-devtools/python/python3-lxml_4.7.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}/
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 0 additions & 14 deletions meta-python/recipes-devtools/python/python3-twine_3.4.1.bb

This file was deleted.

23 changes: 23 additions & 0 deletions meta-python/recipes-devtools/python/python3-twine_3.7.1.bb
Original file line number Diff line number Diff line change
@@ -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"