Skip to contentSkip to conversation

python3-unittest-automake-output: add dependency on unittest

PATCH In review Ross Burton 2 participants 5 messages Jul 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python3-unittest-automake-output: add dependency on unittest

This module can be used as a wrapper around unittest, so depend on that.

Don't also depend on pytest as that's a much larger dependency, and in ptest images we want as little pulled in as possible.

---
 .../python/python3-unittest-automake-output_0.2.bb              | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/python/python3-unittest-automake-output_0.2.bb +2 -0
index 1fc6180d0eb..fefd4654c72 100644
@@ -10,4 +10,6 @@ S = "${WORKDIR}/git"
 
 inherit python_flit_core
 
+RDEPENDS:${PN} += "python3-unittest"
+
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/3 python3-idna: generalise RDEPENDS

---
 meta/recipes-devtools/python/python3-idna_3.7.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta/recipes-devtools/python/python3-idna_3.7.bb +1 -3
index 729aff1c462..20c92d65372 100644
@@ -7,8 +7,6 @@ SRC_URI[sha256sum] = "028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285b
 
 inherit pypi python_flit_core
 
-RDEPENDS:${PN}:class-target = "\
-    python3-codecs \
-"
+RDEPENDS:${PN} += "python3-codecs"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#2 lore raw

Patchtest results for [PATCH 2/3] python3-idna: generalise RDEPENDS

Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:

---
Testing patch /home/patchtest/share/mboxes/2-3-python3-idna-generalise-RDEPENDS.patch

FAIL: test commit message presence: Please include a commit message on your patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)

PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)

SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!

#3 lore raw

PATCH 3/3 python3-idna: enable ptest

In reply to Ross Burton
---
 meta/conf/distro/include/ptest-packagelists.inc     | 1 +
 meta/recipes-devtools/python/python3-idna/run-ptest | 3 +++
 meta/recipes-devtools/python/python3-idna_3.7.bb    | 9 ++++++++-
 3 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/python/python3-idna/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
index 7e9ec1c3aa6..5a9896cc211 100644
@@ -61,6 +61,7 @@ PTESTS_FAST = "\
     python3-beartype \
     python3-calver \
     python3-hypothesis \
+    python3-idna \
     python3-jinja2 \
     python3-jsonpointer \
     python3-license-expression \
meta/recipes-devtools/python/python3-idna/run-ptest new file +3 -0
new file mode 100644
index 00000000000..d9693bb30f8
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+python3 -mputao.unittest discover --top-level-directory . --start-directory tests
meta/recipes-devtools/python/python3-idna_3.7.bb +8 -1
index 20c92d65372..713e803d038 100644
@@ -5,8 +5,15 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=204c0612e40a4dd46012a78d02c80fb1"
 
 SRC_URI[sha256sum] = "028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"
 
-inherit pypi python_flit_core
+SRC_URI += "file://run-ptest"
+
+inherit pypi python_flit_core ptest
+
+do_install_ptest() {
+    cp -r ${S}/tests ${D}${PTEST_PATH}/
+}
 
 RDEPENDS:${PN} += "python3-codecs"
+RDEPENDS:${PN}-ptest += "python3-unittest-automake-output"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#4 lore raw

Patchtest results for [PATCH 3/3] python3-idna: enable ptest

Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:

---
Testing patch /home/patchtest/share/mboxes/3-3-python3-idna-enable-ptest.patch

FAIL: test commit message presence: Please include a commit message on your patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)

PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)

SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: pretest src uri left files: Patch cannot be merged (test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: Patch cannot be merged (test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!