Skip to contentSkip to conversation

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

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python3-tomlkit: update recipe to use the ptest-python-pytest class

---
 .../python/python3-tomlkit/run-ptest                |  3 ---
 .../python/python3-tomlkit_0.13.2.bb                | 13 +------------
 2 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
meta-python/recipes-devtools/python/python3-tomlkit/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-tomlkit_0.13.2.bb +1 -12
index 9fca14540..8eeb9d760 100644
@@ -5,11 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=31aac0dbc1babd278d5386dadb7f8e82"
 
 SRC_URI[sha256sum] = "fff5fe59a87295b278abd31bec92c15d9bc4a06885ab12bcea52c71119392e79"
 
-inherit pypi python_poetry_core ptest
-
-SRC_URI += " \
-        file://run-ptest \
-"
+inherit pypi python_poetry_core ptest-python-pytest
 
 RDEPENDS:${PN} += " \
     python3-datetime \
@@ -19,14 +15,7 @@ RDEPENDS:${PN} += " \
 
 RDEPENDS:${PN}-ptest += " \
     python3-poetry-core \
-    python3-pytest \
     python3-pyyaml \
-    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/3 python3-tomli-w: update recipe to use the ptest-python-pytest class

---
 .../python/python3-tomli-w/run-ptest                 |  3 ---
 .../recipes-devtools/python/python3-tomli-w_1.1.0.bb | 12 ++----------
 2 files changed, 2 insertions(+), 13 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-tomli-w/run-ptest
meta-python/recipes-devtools/python/python3-tomli-w/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-tomli-w_1.1.0.bb +2 -10
index dded2cbf4..94ea20049 100644
@@ -6,24 +6,16 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aaaaf0879d17df0110d1aa8c8c9f46f5"
 SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1"
 PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master"
 
-inherit pypi python_flit_core ptest
+inherit pypi python_flit_core ptest-python-pytest
 
 S = "${WORKDIR}/git"
 
-SRC_URI += " \
-        file://run-ptest \
-"
-
 RDEPENDS:${PN}-ptest += " \
-        python3-pytest \
         python3-tomli \
-        python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-        install -d ${D}${PTEST_PATH}/tests
+do_install_ptest:append() {
         install -d ${D}${PTEST_PATH}/benchmark
-        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
         cp -rf ${S}/benchmark/* ${D}${PTEST_PATH}/benchmark/
 }
 
Signature · 1 line
2.34.1
#2 lore raw

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

In reply to Derek Straka
---
 .../python/python3-sqlparse/run-ptest               |  3 ---
 .../python/python3-sqlparse_0.5.3.bb                | 13 +------------
 2 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-sqlparse/run-ptest
meta-python/recipes-devtools/python/python3-sqlparse/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-sqlparse_0.5.3.bb +1 -12
index 588568c6a..0282c1848 100644
@@ -4,27 +4,16 @@ SECTION = "devel/python"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc"
 
-SRC_URI:append = " \
-    file://run-ptest \
-"
-
 SRC_URI[sha256sum] = "09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272"
 
 export BUILD_SYS
 export HOST_SYS
 
-inherit pypi ptest python_hatchling
+inherit pypi ptest-python-pytest python_hatchling
 
 RDEPENDS:${PN}-ptest += "\
     python3-mypy \
-    python3-pytest \
-    python3-unittest-automake-output \
     python3-unixadmin \
 "
 
-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