Skip to contentSkip to conversation

python3-setproctitle: Add new recipe

PATCH In review [email protected] 2 participants 2 messages Sep 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-setproctitle: Add new recipe

From: Mingli Yu <[email protected]>

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
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-setproctitle/run-ptest     |  4 +++
 .../python/python3-setproctitle_1.3.3.bb      | 28 +++++++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-setproctitle/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 92e64908b..e500843e8 100644
@@ -67,6 +67,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-semver \
     python3-serpent \
     python3-service-identity \
+    python3-setproctitle \
     python3-simpleeval \
     python3-smpplib \
     python3-soupsieve \
meta-python/recipes-devtools/python/python3-setproctitle/run-ptest new file +4 -0
new file mode 100644
index 000000000..e29e57ee3
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# https://github.com/dvarrazzo/py-setproctitle/issues/141
+pytest --automake -k 'not test_unicode'
meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb new file +28 -0
new file mode 100644
index 000000000..dcae6b468
@@ -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"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 33 lines · Mingli via lists.openembedded.org

From: Mingli Yu <[email protected]>

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
============================================================================
Quoted 9 lines
Testsuite summary
 # TOTAL: 27
 # PASS: 24
 # SKIP: 3
 # XFAIL: 0
 # FAIL: 0
 # XPASS: 0
 # ERROR: 0

Thanks for adding ptests along,

Quoted 77 lines
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-setproctitle/run-ptest     |  4 +++
 .../python/python3-setproctitle_1.3.3.bb      | 28 +++++++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-setproctitle/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 92e64908b..e500843e8 100644
@@ -67,6 +67,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-semver \
     python3-serpent \
     python3-service-identity \
+    python3-setproctitle \
     python3-simpleeval \
     python3-smpplib \
     python3-soupsieve \
meta-python/recipes-devtools/python/python3-setproctitle/run-ptest new file +4 -0
new file mode 100644
index 000000000..e29e57ee3
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# https://github.com/dvarrazzo/py-setproctitle/issues/141
+pytest --automake -k 'not test_unicode'
meta-python/recipes-devtools/python/python3-setproctitle_1.3.3.bb new file +28 -1
new file mode 100644
index 000000000..dcae6b468
@@ -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"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112468): https://lists.openembedded.org/g/openembedded-devel/message/112468
Mute This Topic: https://lists.openembedded.org/mt/108623524/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-