summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2024-09-24 13:17:09 +0800
committerKhem Raj <raj.khem@gmail.com>2024-09-24 23:26:22 -0700
commit4102c9d4c021182820d19f8870a46c5ef003f1da (patch)
tree04c3228c7077922cfa7e841d37c5d1b7ce7e25ea /meta-python
parent620aab758778f16df5237314667fa874ed3c5607 (diff)
downloadmeta-openembedded-4102c9d4c021182820d19f8870a46c5ef003f1da.tar.gz
python3-setproctitle: Add new recipe
A Python module to customize the process title. # ./run-ptest PASS: tests/module_test.py:test_no_import_side_effect PASS: tests/module_test.py:test_version PASS: tests/module_test.py:test_c_extension_built PASS: tests/setproctitle_test.py:test_runner PASS: tests/setproctitle_test.py:test_init_getproctitle PASS: tests/setproctitle_test.py:test_setproctitle SKIP: tests/setproctitle_test.py:test_setproctitle_darwin # SKIP Mac only test PASS: tests/setproctitle_test.py:test_prctl PASS: tests/setproctitle_test.py:test_getproctitle PASS: tests/setproctitle_test.py:test_kwarg PASS: tests/setproctitle_test.py:test_environ PASS: tests/setproctitle_test.py:test_issue_8 PASS: tests/setproctitle_test.py:test_large_cmdline PASS: tests/setproctitle_test.py:test_weird_args PASS: tests/setproctitle_test.py:test_weird_path PASS: tests/setproctitle_test.py:test_embedded PASS: tests/setproctitle_test.py:test_embedded_many_args PASS: tests/setproctitle_test.py:test_noenv PASS: tests/setproctitle_test.py:test_large_env PASS: tests/setproctitle_test.py:test_clear_segfault PASS: tests/setproctitle_test.py:test_fork_segfault PASS: tests/setproctitle_test.py:test_thread_fork_segfault PASS: tests/setthreadtitle_test.py:test_thread_title_unchanged PASS: tests/setthreadtitle_test.py:test_set_thread_title PASS: tests/setthreadtitle_test.py:test_set_threads_title SKIP: tests/test_win32.py:test_setproctitle # SKIP Windows only test SKIP: tests/test_win32.py:test_setthreadtitle # SKIP Windows only test ============================================================================ Testsuite summary # TOTAL: 27 # PASS: 24 # SKIP: 3 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/conf/include/ptest-packagelists-meta-python.inc1
-rw-r--r--meta-python/recipes-devtools/python/python3-setproctitle/run-ptest4
-rw-r--r--meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb28
3 files changed, 33 insertions, 0 deletions
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 = "\
67 python3-semver \ 67 python3-semver \
68 python3-serpent \ 68 python3-serpent \
69 python3-service-identity \ 69 python3-service-identity \
70 python3-setproctitle \
70 python3-simpleeval \ 71 python3-simpleeval \
71 python3-smpplib \ 72 python3-smpplib \
72 python3-soupsieve \ 73 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 @@
1#!/bin/sh
2
3# https://github.com/dvarrazzo/py-setproctitle/issues/141
4pytest --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 @@
1SUMMARY = "A Python module to customize the process title"
2DESCRIPTION = "The setproctitle module allows a process to change its \
3title (as displayed by system tools such as ps, top or MacOS Activity \
4Monitor)."
5HOMEPAGE = "https://github.com/dvarrazzo/py-setproctitle"
6BUGTRACKER = "https://github.com/dvarrazzo/py-setproctitle/issues"
7LICENSE = "BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=86d2d41b5f4f023f43466f8cb7adebaa"
9
10inherit pypi setuptools3 ptest
11
12SRC_URI[sha256sum] = "c913e151e7ea01567837ff037a23ca8740192880198b7fbb90b16d181607caae"
13
14SRC_URI += " \
15 file://run-ptest \
16"
17
18RDEPENDS:${PN}-ptest += "\
19 python3-pytest \
20 python3-unittest-automake-output \
21"
22
23do_install_ptest() {
24 install -d ${D}${PTEST_PATH}/tests
25 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
26}
27
28BBCLASSEXTEND = "native nativesdk"