diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 92e64908b1..e500843e88 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -67,6 +67,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-semver \ python3-serpent \ python3-service-identity \ + python3-setproctitle \ python3-simpleeval \ python3-smpplib \ python3-soupsieve \ diff --git a/meta-python/recipes-devtools/python/python3-setproctitle/run-ptest b/meta-python/recipes-devtools/python/python3-setproctitle/run-ptest new file mode 100644 index 0000000000..e29e57ee3b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-setproctitle/run-ptest @@ -0,0 +1,4 @@ +#!/bin/sh + +# https://github.com/dvarrazzo/py-setproctitle/issues/141 +pytest --automake -k 'not test_unicode' diff --git a/meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb b/meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb new file mode 100644 index 0000000000..dcae6b4681 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb @@ -0,0 +1,28 @@ +SUMMARY = "A Python module to customize the process title" +DESCRIPTION = "The setproctitle module allows a process to change its \ +title (as displayed by system tools such as ps, top or MacOS Activity \ +Monitor)." +HOMEPAGE = "https://github.com/dvarrazzo/py-setproctitle" +BUGTRACKER = "https://github.com/dvarrazzo/py-setproctitle/issues" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=86d2d41b5f4f023f43466f8cb7adebaa" + +inherit pypi setuptools3 ptest + +SRC_URI[sha256sum] = "c913e151e7ea01567837ff037a23ca8740192880198b7fbb90b16d181607caae" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += "\ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +BBCLASSEXTEND = "native nativesdk"