Skip to contentSkip to conversation

python3-soupsieve: update recipe to use the ptest-python-pytest class

PATCH New Derek Straka 1 participant 5 messages Jan 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 python3-soupsieve: update recipe to use the ptest-python-pytest class

---
 .../python/python3-soupsieve/run-ptest               |  3 ---
 .../recipes-devtools/python/python3-soupsieve_2.6.bb | 12 +-----------
 2 files changed, 1 insertion(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-soupsieve/run-ptest
meta-python/recipes-devtools/python/python3-soupsieve/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39..000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-soupsieve_2.6.bb +1 -11
index dc317ea6c..dfcd9f484 100644
@@ -6,11 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=1bdfa4c8e8b6830bcf8e78cba1669e4d"
 
 SRC_URI[sha256sum] = "e2e68417777af359ec65daac1057404a3c8a5455bb8abc36f1a9866ab1a51abb"
 
-inherit pypi python_hatchling python_setuptools_build_meta ptest
+inherit pypi python_hatchling python_setuptools_build_meta ptest-python-pytest
 
-SRC_URI += " \
-        file://run-ptest \
-"
 RDEPENDS:${PN} += " \
     python3-core \
     python3-datetime \
@@ -21,13 +18,6 @@ RDEPENDS:${PN}:append:class-target = " \
 
 RDEPENDS:${PN}-ptest += " \
     python3-beautifulsoup4 \
-    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

PATCH 2/5 python3-simpleeval: update recipe to use the ptest-python-pytest class

---
 .../python/python3-simpleeval/run-ptest               |  3 ---
 .../python/python3-simpleeval_1.0.3.bb                | 11 ++---------
 2 files changed, 2 insertions(+), 12 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-simpleeval/run-ptest
meta-python/recipes-devtools/python/python3-simpleeval/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39..000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-simpleeval_1.0.3.bb +2 -9
index 4537645c7..b4dc82bfb 100644
@@ -5,21 +5,14 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=83843c8f0f3beb18af2f282faecbdebe"
 
 SRC_URI[sha256sum] = "67bbf246040ac3b57c29cf048657b9cf31d4e7b9d6659684daa08ca8f1e45829"
 
-inherit pypi python_setuptools_build_meta python_hatchling ptest
+inherit pypi python_setuptools_build_meta python_hatchling ptest-python-pytest
 
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI += "file://run-ptest"
-
 RDEPENDS:${PN} += " \
 	python3-math \
 "
 
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
+do_install_ptest:append() {
 	cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/
 }
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/5 python3-smpplib: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../recipes-devtools/python/python3-smpplib/run-ptest |  3 ---
 .../recipes-devtools/python/python3-smpplib_2.2.3.bb  | 11 ++---------
 2 files changed, 2 insertions(+), 12 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-smpplib/run-ptest
meta-python/recipes-devtools/python/python3-smpplib/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39..000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb +2 -9
index 7979f04c5..2fdd2a463 100644
@@ -6,11 +6,7 @@ LIC_FILES_CHKSUM = "file://README.md;md5=8b4e2ac8cf248f7b991784f88b630852"
 PYPI_PACKAGE = "smpplib"
 SRC_URI[sha256sum] = "5215a95b0538d26f189600e0982b31da8281f7453cd6e2862c5b21e3e1002331"
 
-inherit pypi setuptools3 ptest
-
-SRC_URI += " \
-        file://run-ptest \
-"
+inherit pypi setuptools3 ptest-python-pytest
 
 RDEPENDS:${PN} += " \
         python3-logging \
@@ -20,12 +16,9 @@ RDEPENDS:${PN} += " \
 RDEPENDS:${PN}-ptest += " \
     python3-mock \
     python3-profile \
-    python3-pytest \
-    python3-unittest \
-    python3-unittest-automake-output \
 "
 
-do_install_ptest() {
+do_install_ptest:append() {
         install -d ${D}${PTEST_PATH}/tests
         cp -rf ${S}/smpplib/tests/* ${D}${PTEST_PATH}/tests/
 }
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/5 python3-service-identity: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-service-identity/run-ptest       |  3 ---
 .../python/python3-service-identity_24.2.0.bb       | 13 +------------
 2 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-service-identity/run-ptest
meta-python/recipes-devtools/python/python3-service-identity/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39..000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-service-identity_24.2.0.bb +1 -12
index 12dae861d..bbd6ab80d 100644
@@ -6,15 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=76edce6a3fa1b82b0bf2b6ce174c19e2"
 
 SRC_URI[sha256sum] = "b8683ba13f0d39c6cd5d625d2c5f65421d6d707b013b375c355751557cbe8e09"
 
-inherit pypi python_hatchling ptest
+inherit pypi python_hatchling ptest-python-pytest
 
 PYPI_PACKAGE = "service_identity"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
 
-SRC_URI += " \
-	file://run-ptest \
-"
-
 DEPENDS += "python3-hatch-vcs-native python3-hatch-fancy-pypi-readme-native"
 
 RDEPENDS:${PN} += " \
@@ -25,13 +21,6 @@ RDEPENDS:${PN} += " \
 
 RDEPENDS:${PN}-ptest += " \
     python3-attrs \
-    python3-pytest \
     python3-six \
-    python3-unittest-automake-output \
     python3-pyopenssl \
 "
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/tests
-	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
Signature · 1 line
2.34.1
#4 lore raw

PATCH 5/5 python3-serpent: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-serpent/run-ptest                 |  3 ---
 .../recipes-devtools/python/python3-serpent_1.41.bb  | 12 +-----------
 2 files changed, 1 insertion(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-serpent/run-ptest
meta-python/recipes-devtools/python/python3-serpent/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39..000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-serpent_1.41.bb +1 -11
index 9265081fd..f6c7b5443 100644
@@ -4,25 +4,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d7c28f460fafe7be454fcdcac0b60263"
 
 SRC_URI[sha256sum] = "0407035fe3c6644387d48cff1467d5aa9feff814d07372b78677ed0ee3ed7095"
 
-inherit pypi ptest setuptools3
+inherit pypi ptest-python-pytest setuptools3
 
-SRC_URI += " \
-    file://run-ptest \
-"
 # python3-misc for timeit.py
 RDEPENDS:${PN}-ptest += " \
     python3-attrs \
     python3-misc \
-    python3-pytest \
     python3-pytz \
-    python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-    install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
-
 RDEPENDS:${PN} += "\
     python3-netclient \
     python3-numbers \
Signature · 1 line
2.34.1