Skip to contentSkip to conversation

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

PATCH New Derek Straka 1 participant 23 messages Jan 30, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/23 python3-inflection: update recipe to use the ptest-python-pytest class

---
 .../python/python3-inflection/run-ptest             |  4 ----
 .../python/python3-inflection_0.5.1.bb              | 13 ++-----------
 2 files changed, 2 insertions(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-inflection/run-ptest
meta-python/recipes-devtools/python/python3-inflection/run-ptest deleted +0 -4
deleted file mode 100644
index f1c8729f0e..0000000000
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-pytest --automake
-
meta-python/recipes-devtools/python/python3-inflection_0.5.1.bb +2 -11
index ba1d0ec539..368b9e49b7 100644
@@ -6,18 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2fb6fa1a6f1792d78de19ad1bb653c31"
 
 SRC_URI[sha256sum] = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417"
 
-inherit pypi setuptools3 ptest
+inherit pypi setuptools3 ptest-python-pytest
 
-SRC_URI +=" \
-	file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest +=" \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
+do_install_ptest:append () {
 	cp -f ${S}/test_inflection.py ${D}${PTEST_PATH}/
 }
 
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/23 python3-netaddr: update recipe to use the ptest-python-pytest class

---
 .../python/python3-netaddr/run-ptest                |  3 ---
 .../python/python3-netaddr_1.3.0.bb                 | 13 ++-----------
 2 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-netaddr/run-ptest
meta-python/recipes-devtools/python/python3-netaddr/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb +2 -11
index b8a772566a..8b486d26ff 100644
@@ -4,18 +4,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=8afa43eca873b71d5d85dd0be1f707fa"
 
 SRC_URI[sha256sum] = "5c3c3d9895b551b763779ba7db7a03487dc1f8e3b385af819af341ae9ef6e48a"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
-SRC_URI += " \
-        file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
+do_install_ptest:append () {
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/
 }
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/23 python3-ordered-set: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-ordered-set/run-ptest         |  3 ---
 .../python/python3-ordered-set_4.1.0.bb          | 16 +++-------------
 2 files changed, 3 insertions(+), 16 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-ordered-set/run-ptest
meta-python/recipes-devtools/python/python3-ordered-set/run-ptest deleted +0 -3
deleted file mode 100644
index 64799ba008..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake test_ordered_set.py
meta-python/recipes-devtools/python/python3-ordered-set_4.1.0.bb +3 -13
index 64637b858d..2d6b6ca06c 100644
@@ -5,19 +5,9 @@ LIC_FILES_CHKSUM = "file://MIT-LICENSE;md5=3bf5e1ad64c0d99032c3143361fa234e"
 
 SRC_URI[sha256sum] = "694a8e44c87657c59292ede72891eb91d34131f6531463aab3009191c77364a8"
 
-inherit pypi python_flit_core ptest
+inherit pypi python_flit_core ptest-python-pytest
 
-DEPENDS += "python3-pytest-runner-native"
-
-SRC_URI += " \
-	file://run-ptest \
-"
+PTEST_PYTEST_DIR = "test"
 
-RDEPENDS:${PN}-ptest += " \
-	python3-pytest \
-	python3-unittest-automake-output \
-"
+DEPENDS += "python3-pytest-runner-native"
 
-do_install_ptest() {
-	cp -f ${S}/test/test_ordered_set.py ${D}${PTEST_PATH}/
-}
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/23 python3-outcome: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-outcome/run-ptest                |  3 ---
 .../python/python3-outcome_1.3.0.post0.bb           | 13 +------------
 2 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-outcome/run-ptest
meta-python/recipes-devtools/python/python3-outcome/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-outcome_1.3.0.post0.bb +1 -12
index 9714301879..308eb78a79 100644
@@ -7,16 +7,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fa7b86389e58dd4087a8d2b833e5fe96 \
 
 SRC_URI[sha256sum] = "9dcf02e65f2971b80047b377468e72a268e15c0af3cf1238e6ff14f7f91143b8"
 
-inherit pypi setuptools3 ptest
-
-SRC_URI += " \
-	file://run-ptest \
-"
+inherit pypi setuptools3 ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += " \
-	python3-pytest \
 	python3-pytest-asyncio \
-	python3-unittest-automake-output \
 	python3-outcome \
 "
 
@@ -27,8 +21,3 @@ RDEPENDS:${PN} += " \
 	python3-pytest \
 	python3-typing-extensions \
 "
-
-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/23 python3-msgpack: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-msgpack/run-ptest           |  3 ---
 .../python/python3-msgpack_1.1.0.bb            | 18 +++---------------
 2 files changed, 3 insertions(+), 18 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-msgpack/run-ptest
meta-python/recipes-devtools/python/python3-msgpack/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-msgpack_1.1.0.bb +3 -15
index eb04dc2e0f..cf755517e7 100644
@@ -2,7 +2,9 @@ SUMMARY = "MessagePack (de)serializer"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=cd9523181d9d4fbf7ffca52eaa2a5751"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+PTEST_PYTEST_DIR = "test"
 
 SRC_URI[sha256sum] = "dd432ccc2c72b914e4cb77afce64aab761c1137cc698be3984eee260bcb2896e"
 
@@ -11,17 +13,3 @@ RDEPENDS:${PN}:class-target += "\
 "
 
 BBCLASSEXTEND = "native nativesdk"
-
-SRC_URI += " \
-	file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-	python3-pytest \
-	python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/test
-	cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
-}
Signature · 1 line
2.34.1
#5 lore raw

PATCH 6/23 python3-multidict: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-multidict/run-ptest              |  2 --
 .../python/python3-multidict_6.1.0.bb               | 13 +------------
 2 files changed, 1 insertion(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-multidict/run-ptest
meta-python/recipes-devtools/python/python3-multidict/run-ptest deleted +0 -2
deleted file mode 100644
index d74acaf564..0000000000
@@ -1,2 +0,0 @@
-#!/bin/sh
-pytest --automake
meta-python/recipes-devtools/python/python3-multidict_6.1.0.bb +1 -12
index 1132e9ba5d..ed49b8ff02 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/aio-libs/multidict/"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b4fef6e4b0828c2401fb983363985b39"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 PV .= "+git"
 
@@ -12,19 +12,8 @@ SRCREV = "4140e63780dc6dd600a1837cb9b4c5198c3dcd68"
 PYPI_SRC_URI = "git://github.com/aio-libs/multidict;branch=master;protocol=https"
 S = "${WORKDIR}/git"
 
-SRC_URI += " \
-	file://run-ptest \
-"
-
 RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
     python3-pytest-cov \
-    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
#6 lore raw

PATCH 7/23 python3-marshmallow: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-marshmallow/run-ptest           |  3 ---
 .../python/python3-marshmallow_3.26.0.bb           | 14 +++-----------
 2 files changed, 3 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-marshmallow/run-ptest
meta-python/recipes-devtools/python/python3-marshmallow/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-marshmallow_3.26.0.bb +3 -11
index a421a93e4c..bde3819379 100644
@@ -8,25 +8,17 @@ LIC_FILES_CHKSUM = "\
 
 SRC_URI[sha256sum] = "eb36762a1cc76d7abf831e18a3a1b26d3d481bbc74581b8e532a3d3a8115e1cb"
 
-inherit python_flit_core pypi ptest
-
-SRC_URI += " \
-        file://run-ptest \
-"
+inherit python_flit_core pypi ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += " \
-        python3-pytest \
         python3-pytz \
         python3-simplejson \
-        python3-unittest-automake-output \
         python3-zoneinfo \
         python3-tzdata \
 "
 
-do_install_ptest() {
-        install -d ${D}${PTEST_PATH}/tests
-        rm -rf ${S}/tests/mypy_test_cases
-        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+do_install_ptest:append () {
+        rm -rf ${D}${PTEST_PATH}/tests/mypy_test_cases
 }
 
 RDEPENDS:${PN} += " \
Signature · 1 line
2.34.1
#7 lore raw

PATCH 8/23 python3-lz4: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../recipes-devtools/python/python3-lz4/run-ptest        | 3 ---
 meta-python/recipes-devtools/python/python3-lz4_4.3.3.bb | 9 ++-------
 2 files changed, 2 insertions(+), 10 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-lz4/run-ptest
meta-python/recipes-devtools/python/python3-lz4/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-lz4_4.3.3.bb +2 -7
index 746926da4e..7bbe59e8b7 100644
@@ -9,24 +9,19 @@ DEPENDS += " \
     python3-pkgconfig-native \
 "
 
-SRC_URI += "file://run-ptest"
-
 SRC_URI[sha256sum] = "01fe674ef2889dbb9899d8a67361e0c4a2c833af5aeb37dd505727cf5d2a131e"
 
-inherit pkgconfig pypi python_setuptools_build_meta ptest
+inherit pkgconfig pypi python_setuptools_build_meta ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += "\
     python3-coverage \
-    python3-pytest \
     python3-pytest-cov \
     python3-pytest-runner \
     python3-multiprocessing \
     python3-psutil \
-    python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-    cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
+do_install_ptest:append () {
     # The stream API is experimental and not enabled yet, so don't ship the test suite
     rm -rf ${D}${PTEST_PATH}/tests/stream
 }
Signature · 1 line
2.34.1
#8 lore raw

PATCH 9/23 python3-jdcal: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../recipes-devtools/python/python3-jdcal/run-ptest |  3 ---
 .../recipes-devtools/python/python3-jdcal_1.4.1.bb  | 13 ++-----------
 2 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-jdcal/run-ptest
meta-python/recipes-devtools/python/python3-jdcal/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb +2 -11
index d20c9ad42f..d947a73cf0 100644
@@ -7,21 +7,12 @@ HOMEPAGE = "https://github.com/phn/jdcal"
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://PKG-INFO;md5=bd236e1f590973467a427bb354be0f46"
 
-inherit pypi setuptools3 ptest
+inherit pypi setuptools3 ptest-python-pytest
 
 SRC_URI[sha256sum] = "472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8"
 
 RDEPENDS:${PN} += "python3-compression python3-io python3-pprint python3-shell"
 
-SRC_URI += " \
-	file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-	python3-pytest \
-	python3-unittest-automake-output \
-"
-
-do_install_ptest() {
+do_install_ptest:append () {
 	cp -f ${S}/test_jdcal.py ${D}${PTEST_PATH}/
 }
Signature · 1 line
2.34.1
#9 lore raw

PATCH 10/23 python3-iso3166: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-iso3166/run-ptest             |  3 ---
 .../python/python3-iso3166_2.1.1.bb              | 16 +---------------
 2 files changed, 1 insertion(+), 18 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-iso3166/run-ptest
meta-python/recipes-devtools/python/python3-iso3166/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-iso3166_2.1.1.bb +1 -15
index 3aa084d10a..6b96f5775c 100644
@@ -5,21 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5e2f4edc7e7408a82e4a1d05f229b695"
 
 SRC_URI[sha256sum] = "fcd551b8dda66b44e9f9e6d6bbbee3a1145a22447c0a556e5d0fb1ad1e491719"
 
-inherit pypi python_setuptools_build_meta ptest
-
-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/
-}
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 RDEPENDS:${PN} += "python3-numbers"
 
Signature · 1 line
2.34.1
#10 lore raw

PATCH 11/23 python3-ipy: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-ipy/run-ptest                 |  3 ---
 .../recipes-devtools/python/python3-ipy_1.01.bb  | 16 ++--------------
 2 files changed, 2 insertions(+), 17 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-ipy/run-ptest
meta-python/recipes-devtools/python/python3-ipy/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-ipy_1.01.bb +2 -14
index 817d04444e..6a35e12ffe 100644
@@ -11,21 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=848d24919845901b4f48bae5f13252e6"
 
 SRC_URI[sha256sum] = "edeca741dea2d54aca568fa23740288c3fe86c0f3ea700344571e9ef14a7cc1a"
 
-inherit pypi setuptools3_legacy ptest
+inherit pypi setuptools3_legacy ptest-python-pytest
 
-SRC_URI += " \
-	file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/test/
-	cp -rf ${S}/test/* ${D}${PTEST_PATH}/test
-}
+PTEST_PYTEST_DIR = "test"
 
 PYPI_PACKAGE = "IPy"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
Signature · 1 line
2.34.1
#11 lore raw

PATCH 12/23 python3-intervals: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-intervals/run-ptest              |  3 ---
 .../python/python3-intervals_1.10.0.bb              | 13 ++-----------
 2 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-intervals/run-ptest
meta-python/recipes-devtools/python/python3-intervals/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-intervals_1.10.0.bb +2 -11
index 3c5be47806..dd9f88748b 100644
@@ -7,18 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
 
 PYPI_PACKAGE := "python-intervals"
 
-SRC_URI += " \
-	file://run-ptest \
-"
+inherit pypi setuptools3 ptest-python-pytest
 
-inherit pypi setuptools3 ptest
-
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
+do_install_ptest:append () {
 	cp -f ${S}/test_intervals.py ${D}${PTEST_PATH}
 	cp -f ${S}/README.md ${D}${PTEST_PATH}
 }
Signature · 1 line
2.34.1
#12 lore raw

PATCH 13/23 python3-httptools: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-httptools/run-ptest           |  3 ---
 .../python/python3-httptools_0.6.4.bb            | 16 +---------------
 2 files changed, 1 insertion(+), 18 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-httptools/run-ptest
meta-python/recipes-devtools/python/python3-httptools/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-httptools_0.6.4.bb +1 -15
index 730df90f1e..49f14da206 100644
@@ -3,20 +3,6 @@ HOMEPAGE = "https://github.com/MagicStack/httptools"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=0a2d82955bf3facdf04cb882655e840e"
 
-inherit pypi setuptools3 ptest
+inherit pypi setuptools3 ptest-python-pytest
 
 SRC_URI[sha256sum] = "4e93eee4add6493b59a5c514da98c939b244fce4a0d8879cd3f466562f4b7d5c"
-
-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/
-}
Signature · 1 line
2.34.1
#13 lore raw

PATCH 14/23 python3-html2text: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-html2text/run-ptest           |  3 ---
 .../python/python3-html2text_2024.2.26.bb        | 16 ++--------------
 2 files changed, 2 insertions(+), 17 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-html2text/run-ptest
meta-python/recipes-devtools/python/python3-html2text/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-html2text_2024.2.26.bb +2 -14
index 55f4c8b0a6..98e0cde1e5 100644
@@ -6,22 +6,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 SRC_URI[sha256sum] = "05f8e367d15aaabc96415376776cdd11afd5127a77fce6e36afc60c563ca2c32"
 
-inherit pypi setuptools3 ptest
+inherit pypi setuptools3 ptest-python-pytest
 
-SRC_URI += " \
-	file://run-ptest \
-"
+PTEST_PYTEST_DIR = "test"
 
 RDEPENDS:${PN} += "python3-html"
 
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/test
-	cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
-}
-
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#14 lore raw

PATCH 15/23 python3-geojson: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-geojson/run-ptest               |  3 ---
 .../python/python3-geojson_3.2.0.bb                | 14 +-------------
 2 files changed, 1 insertion(+), 16 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-geojson/run-ptest
meta-python/recipes-devtools/python/python3-geojson/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-geojson_3.2.0.bb +1 -13
index c7bf433d42..9ee6d580b2 100644
@@ -5,19 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=f77f2ed49768c8d4c79ba874c0f94d8a"
 
 SRC_URI[sha256sum] = "b860baba1e8c6f71f8f5f6e3949a694daccf40820fa8f138b3f712bd85804903"
 
-inherit pypi setuptools3 ptest
-
-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/
-}
+inherit pypi setuptools3 ptest-python-pytest
 
 RDEPENDS:${PN} += "python3-simplejson python3-math"
 
Signature · 1 line
2.34.1
#15 lore raw

PATCH 16/23 python3-freezegun: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-freezegun/run-ptest                 |  3 ---
 .../recipes-devtools/python/python3-freezegun_1.5.1.bb | 10 +---------
 2 files changed, 1 insertion(+), 12 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-freezegun/run-ptest
meta-python/recipes-devtools/python/python3-freezegun/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb +1 -9
index 431843bde4..9d823da507 100644
@@ -5,24 +5,16 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=acf1d209bb6eddae4cbe6ffd6a0144fe"
 
 SRC_URI[sha256sum] = "b29dedfcda6d5e8e083ce71b2b542753ad48cfec44037b3fc79702e2980a89e9"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 SRC_URI += " \
-        file://run-ptest \
         file://1777174bb97c0b514033a09b820078b0d117f4a8.patch \
 "
 
 RDEPENDS:${PN}-ptest += " \
-        python3-pytest \
         python3-sqlite3 \
-        python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-        install -d ${D}${PTEST_PATH}/tests
-        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
-
 RDEPENDS:${PN} = "\
         python3-asyncio \
         python3-dateutil \
Signature · 1 line
2.34.1
#16 lore raw

PATCH 17/23 python3-flexparser: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-flexparser/run-ptest          |  3 ---
 .../python/python3-flexparser_0.4.bb             | 16 ++--------------
 2 files changed, 2 insertions(+), 17 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-flexparser/run-ptest
meta-python/recipes-devtools/python/python3-flexparser/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-flexparser_0.4.bb +2 -14
index ef8cbe5a54..c3d8fe28ac 100644
@@ -6,23 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=32f547dac365c355d2cdbcd7ebea9144"
 DEPENDS += "python3-setuptools-scm-native"
 SRC_URI[sha256sum] = "266d98905595be2ccc5da964fe0a2c3526fbbffdc45b65b3146d75db992ef6b2"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 PYPI_PACKAGE = "flexparser"
 
-SRC_URI += " \
-	file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-	python3-pytest \
-	python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/testsuite
-	cp -rf ${S}/flexparser/testsuite/* ${D}${PTEST_PATH}/testsuite/
-}
+PTEST_PYTEST_DIR = "flexparser/testsuite"
 
 RDEPENDS:${PN} += " \
 	python3-compression \
Signature · 1 line
2.34.1
#17 lore raw

PATCH 18/23 python3-flexcache: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-flexcache/run-ptest           |  3 ---
 .../python/python3-flexcache_0.3.bb              | 16 ++--------------
 2 files changed, 2 insertions(+), 17 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-flexcache/run-ptest
meta-python/recipes-devtools/python/python3-flexcache/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-flexcache_0.3.bb +2 -14
index 1bee774022..35769b45c4 100644
@@ -5,22 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=32f547dac365c355d2cdbcd7ebea9144"
 DEPENDS += "python3-setuptools-scm-native"
 SRC_URI[sha256sum] = "18743bd5a0621bfe2cf8d519e4c3bfdf57a269c15d1ced3fb4b64e0ff4600656"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 PYPI_PACKAGE = "flexcache"
 
-SRC_URI += " \
-        file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-        python3-pytest \
-        python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-        install -d ${D}${PTEST_PATH}/testsuite
-        cp -rf ${S}/flexcache/testsuite/* ${D}${PTEST_PATH}/testsuite/
-}
+PTEST_PYTEST_DIR = "flexcache/testsuite"
 
 RDEPENDS:${PN} += " \
 	python3-compression \
Signature · 1 line
2.34.1
#18 lore raw

PATCH 19/23 python3-flask: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../recipes-devtools/python/python3-flask/run-ptest  |  3 ---
 .../recipes-devtools/python/python3-flask_3.1.0.bb   | 12 +-----------
 2 files changed, 1 insertion(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-flask/run-ptest
meta-python/recipes-devtools/python/python3-flask/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-flask_3.1.0.bb +1 -11
index 9b10089c9e..4d1d2d12e6 100644
@@ -8,11 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ffeffa59c90c9c4a033c7574f8f3fb75"
 
 SRC_URI[sha256sum] = "5f873c5184c897c8d9d1b05df1e3d01b14910ce69607a117bd3277098a5836ac"
 
-SRC_URI += " \
-        file://run-ptest \
-"
-
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 CLEANBROKEN = "1"
 
@@ -27,10 +23,4 @@ RDEPENDS:${PN} = " \
 
 RDEPENDS:${PN}-ptest += "\
     python3-asgiref \
-    python3-pytest \
-    python3-unittest-automake-output \
 "
-do_install_ptest() {
-        install -d ${D}${PTEST_PATH}/tests
-        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
Signature · 1 line
2.34.1
#19 lore raw

PATCH 20/23 python3-fastjsonschema: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-fastjsonschema/run-ptest           |  3 ---
 .../python/python3-fastjsonschema_2.21.1.bb           | 11 +----------
 2 files changed, 1 insertion(+), 13 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-fastjsonschema/run-ptest
meta-python/recipes-devtools/python/python3-fastjsonschema/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-fastjsonschema_2.21.1.bb +1 -10
index ecd92d5a74..11fc6de8d6 100644
@@ -8,14 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=18950e8362b69c0c617b42b8bd8e7532"
 
 SRC_URI[sha256sum] = "794d4f0a58f848961ba16af7b9c85a3e88cd360df008c59aac6fc5ae9323b5d4"
 
-SRC_URI += "file://run-ptest"
-
-inherit ptest pypi setuptools3
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/tests
-	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
+inherit ptest-python-pytest pypi setuptools3
 
 # python3-misc for timeit.py
 RDEPENDS:${PN}-ptest += "\
@@ -23,11 +16,9 @@ RDEPENDS:${PN}-ptest += "\
     python3-jsonschema \
     python3-misc \
     python3-pylint \
-    python3-pytest \
     python3-pytest-benchmark \
     python3-pytest-cache \
     python3-statistics \
-    python3-unittest-automake-output \
 "
 RDEPENDS:${PN} += "\
     python3-core \
Signature · 1 line
2.34.1
#20 lore raw

PATCH 21/23 python3-execnet: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-execnet/run-ptest               |  3 ---
 .../python/python3-execnet_2.1.1.bb                | 14 ++------------
 2 files changed, 2 insertions(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-execnet/run-ptest
meta-python/recipes-devtools/python/python3-execnet/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-execnet_2.1.1.bb +2 -12
index 94c1a228e3..54c102bec7 100644
@@ -11,21 +11,11 @@ DEPENDS += "\
     python3-hatch-vcs-native \
 "
 
-SRC_URI += "file://run-ptest \
-           "
 SRC_URI[sha256sum] = "5189b52c6121c24feae288166ab41b32549c7e2348652736540b9e6e7d4e72e3"
 
-inherit ptest pypi python_hatchling
+inherit ptest-python-pytest pypi python_hatchling
 
-do_install_ptest() {
-    install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/testing/* ${D}${PTEST_PATH}/tests/
-}
-
-RDEPENDS:${PN}-ptest += "\
-    python3-pytest \
-    python3-unittest-automake-output \
-"
+PTEST_PYTEST_DIR = "testing"
 
 RDEPENDS:${PN} += "python3-core python3-crypt python3-ctypes python3-fcntl python3-io python3-shell python3-threading"
 
Signature · 1 line
2.34.1
#21 lore raw

PATCH 22/23 python3-ecdsa: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../recipes-devtools/python/python3-ecdsa/run-ptest    |  3 ---
 .../recipes-devtools/python/python3-ecdsa_0.19.0.bb    | 10 ++--------
 2 files changed, 2 insertions(+), 11 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-ecdsa/run-ptest
meta-python/recipes-devtools/python/python3-ecdsa/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb +2 -8
index 8e967f9259..f26c90d83b 100644
@@ -6,19 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=66ffc5e30f76cbb5358fe54b645e5a1d"
 PYPI_PACKAGE = "ecdsa"
 SRC_URI[sha256sum] = "60eaad1199659900dd0af521ed462b793bbdf867432b3948e87416ae4caf6bf8"
 
-inherit pypi setuptools3 python3native ptest
-
-SRC_URI += " \
-	file://run-ptest \
-"
+inherit pypi setuptools3 python3native ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += " \
 	python3-hypothesis \
-	python3-pytest \
-	python3-unittest-automake-output \
 "
 
-do_install_ptest() {
+do_install_ptest:append () {
 	install -d ${D}${PTEST_PATH}/tests
 	cp -rf ${S}/src/ecdsa/* ${D}${PTEST_PATH}/tests/
 }
Signature · 1 line
2.34.1
#22 lore raw

PATCH 23/23 python3-dominate: update recipe to use the ptest-python-pytest class

In reply to Derek Straka
---
 .../python/python3-dominate/run-ptest               |  3 ---
 .../python/python3-dominate_2.9.1.bb                | 13 +------------
 2 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-dominate/run-ptest
meta-python/recipes-devtools/python/python3-dominate/run-ptest deleted +0 -3
deleted file mode 100644
index 8d2017d39c..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
meta-python/recipes-devtools/python/python3-dominate_2.9.1.bb +1 -12
index cce304498a..a0dd638087 100644
@@ -4,23 +4,12 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b52f2d57d10c4f7ee67a7eb9615d5d24"
 
 SRC_URI[sha256sum] = "558284687d9b8aae1904e3d6051ad132dd4a8c0cf551b37ea4e7e42a31d19dc4"
 
-inherit pypi ptest python_setuptools_build_meta
+inherit pypi ptest-python-pytest python_setuptools_build_meta
 
 SRC_URI += " \
     file://58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch \
-	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/
-}
-
 RDEPENDS:${PN} += "\
     python3-numbers \
     python3-threading \
Signature · 1 line
2.34.1