diff options
author | Derek Straka <derek@asterius.io> | 2024-12-18 18:05:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-08 12:37:20 +0000 |
commit | cf6b12e5c95d0593970f945aa6930c818f7a819f (patch) | |
tree | 86c0e754eb04f0f8f372610c178b794b3091f9ca | |
parent | 095beae0085c94a105256b6df4bd71bd4a506104 (diff) | |
download | poky-cf6b12e5c95d0593970f945aa6930c818f7a819f.tar.gz |
python3-*: Update recipes with pytest ptests to use the new ptest-python-pytest class
The newly added ptest-python-pytest removes duplication for:
1. Copying pytest files to the ptest directory
2. Adding standard pytest dependencies
3. Adding a common run-ptest script using pytest
(From OE-Core rev: 8d84d9e19b9292b1863921611924714d77c41d21)
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
44 files changed, 34 insertions, 316 deletions
diff --git a/meta/recipes-devtools/python/python3-atomicwrites/run-ptest b/meta/recipes-devtools/python/python3-atomicwrites/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-atomicwrites/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-atomicwrites_1.4.1.bb b/meta/recipes-devtools/python/python3-atomicwrites_1.4.1.bb index 848f74d612..b14b62ab2f 100644 --- a/meta/recipes-devtools/python/python3-atomicwrites_1.4.1.bb +++ b/meta/recipes-devtools/python/python3-atomicwrites_1.4.1.bb | |||
@@ -5,23 +5,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=91cc36cfafeefb7863673bcfcb1d4da4" | |||
5 | 5 | ||
6 | SRC_URI[sha256sum] = "81b2c9071a49367a7f770170e5eec8cb66567cfbbc8c73d20ce5ca4a8d71cf11" | 6 | SRC_URI[sha256sum] = "81b2c9071a49367a7f770170e5eec8cb66567cfbbc8c73d20ce5ca4a8d71cf11" |
7 | 7 | ||
8 | inherit pypi setuptools3 ptest | 8 | inherit pypi setuptools3 ptest-python-pytest |
9 | |||
10 | SRC_URI += " \ | ||
11 | file://run-ptest \ | ||
12 | " | ||
13 | 9 | ||
14 | RDEPENDS:${PN}-ptest += " \ | 10 | RDEPENDS:${PN}-ptest += " \ |
15 | python3-pytest \ | ||
16 | python3-unittest-automake-output \ | ||
17 | python3-unixadmin \ | 11 | python3-unixadmin \ |
18 | " | 12 | " |
19 | 13 | ||
20 | do_install_ptest() { | ||
21 | install -d ${D}${PTEST_PATH}/tests | ||
22 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
23 | } | ||
24 | |||
25 | RDEPENDS:${PN} = "python3-misc" | 14 | RDEPENDS:${PN} = "python3-misc" |
26 | 15 | ||
27 | BBCLASSEXTEND = "native nativesdk" | 16 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-attrs/run-ptest b/meta/recipes-devtools/python/python3-attrs/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-attrs/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-attrs_24.3.0.bb b/meta/recipes-devtools/python/python3-attrs_24.3.0.bb index fa35e4b681..edb99fafce 100644 --- a/meta/recipes-devtools/python/python3-attrs_24.3.0.bb +++ b/meta/recipes-devtools/python/python3-attrs_24.3.0.bb | |||
@@ -5,11 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887" | |||
5 | 5 | ||
6 | SRC_URI[sha256sum] = "8f5c07333d543103541ba7be0e2ce16eeee8130cb0b3f9238ab904ce1e85baff" | 6 | SRC_URI[sha256sum] = "8f5c07333d543103541ba7be0e2ce16eeee8130cb0b3f9238ab904ce1e85baff" |
7 | 7 | ||
8 | inherit pypi ptest python_hatchling | 8 | inherit pypi ptest-python-pytest python_hatchling |
9 | |||
10 | SRC_URI += " \ | ||
11 | file://run-ptest \ | ||
12 | " | ||
13 | 9 | ||
14 | DEPENDS += " \ | 10 | DEPENDS += " \ |
15 | python3-hatch-vcs-native \ | 11 | python3-hatch-vcs-native \ |
@@ -23,13 +19,9 @@ RDEPENDS:${PN}+= " \ | |||
23 | 19 | ||
24 | RDEPENDS:${PN}-ptest += " \ | 20 | RDEPENDS:${PN}-ptest += " \ |
25 | python3-hypothesis \ | 21 | python3-hypothesis \ |
26 | python3-pytest \ | ||
27 | python3-unittest-automake-output \ | ||
28 | " | 22 | " |
29 | 23 | ||
30 | do_install_ptest() { | 24 | do_install_ptest:append() { |
31 | install -d ${D}${PTEST_PATH}/tests | ||
32 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
33 | install ${S}/conftest.py ${D}${PTEST_PATH}/ | 25 | install ${S}/conftest.py ${D}${PTEST_PATH}/ |
34 | } | 26 | } |
35 | 27 | ||
diff --git a/meta/recipes-devtools/python/python3-bcrypt/run-ptest b/meta/recipes-devtools/python/python3-bcrypt/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-bcrypt/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-bcrypt_4.2.1.bb b/meta/recipes-devtools/python/python3-bcrypt_4.2.1.bb index 7ca73acc48..ce9237de36 100644 --- a/meta/recipes-devtools/python/python3-bcrypt_4.2.1.bb +++ b/meta/recipes-devtools/python/python3-bcrypt_4.2.1.bb | |||
@@ -8,11 +8,7 @@ LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '-fuse-ld=bfd', '', | |||
8 | 8 | ||
9 | SRC_URI[sha256sum] = "6765386e3ab87f569b276988742039baab087b2cdb01e809d74e74503c2faafe" | 9 | SRC_URI[sha256sum] = "6765386e3ab87f569b276988742039baab087b2cdb01e809d74e74503c2faafe" |
10 | 10 | ||
11 | inherit pypi python_setuptools3_rust ptest-cargo cargo-update-recipe-crates | 11 | inherit pypi python_setuptools3_rust cargo-update-recipe-crates ptest-python-pytest |
12 | |||
13 | SRC_URI += " \ | ||
14 | file://run-ptest \ | ||
15 | " | ||
16 | 12 | ||
17 | CARGO_SRC_DIR = "src/_bcrypt" | 13 | CARGO_SRC_DIR = "src/_bcrypt" |
18 | 14 | ||
diff --git a/meta/recipes-devtools/python/python3-calver/run-ptest b/meta/recipes-devtools/python/python3-calver/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-calver/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-calver_2022.6.26.bb b/meta/recipes-devtools/python/python3-calver_2022.6.26.bb index 71b5431400..b2e7e0769d 100644 --- a/meta/recipes-devtools/python/python3-calver_2022.6.26.bb +++ b/meta/recipes-devtools/python/python3-calver_2022.6.26.bb | |||
@@ -5,24 +5,16 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | |||
5 | 5 | ||
6 | SRC_URI = " \ | 6 | SRC_URI = " \ |
7 | git://github.com/di/calver;branch=master;protocol=https \ | 7 | git://github.com/di/calver;branch=master;protocol=https \ |
8 | file://run-ptest \ | ||
9 | file://0001-setup.py-hard-code-version.patch \ | 8 | file://0001-setup.py-hard-code-version.patch \ |
10 | " | 9 | " |
11 | SRCREV = "3268d8acf2c345f32a1c5f08ba25dc67f76cca81" | 10 | SRCREV = "3268d8acf2c345f32a1c5f08ba25dc67f76cca81" |
12 | 11 | ||
13 | inherit python_setuptools_build_meta ptest | 12 | inherit python_setuptools_build_meta ptest-python-pytest |
14 | 13 | ||
15 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
16 | 15 | ||
17 | RDEPENDS:${PN}-ptest += " \ | 16 | RDEPENDS:${PN}-ptest += " \ |
18 | python3-pretend \ | 17 | python3-pretend \ |
19 | python3-pytest \ | ||
20 | python3-unittest-automake-output \ | ||
21 | " | 18 | " |
22 | 19 | ||
23 | do_install_ptest() { | ||
24 | install -d ${D}${PTEST_PATH}/tests | ||
25 | cp -rf ${S}/tests ${D}${PTEST_PATH}/ | ||
26 | } | ||
27 | |||
28 | BBCLASSEXTEND = "native nativesdk" | 20 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-click/run-ptest b/meta/recipes-devtools/python/python3-click/run-ptest deleted file mode 100644 index b63c4de0d9..0000000000 --- a/meta/recipes-devtools/python/python3-click/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' | ||
diff --git a/meta/recipes-devtools/python/python3-click_8.1.7.bb b/meta/recipes-devtools/python/python3-click_8.1.7.bb index baff4cbd45..e8eeec36e8 100644 --- a/meta/recipes-devtools/python/python3-click_8.1.7.bb +++ b/meta/recipes-devtools/python/python3-click_8.1.7.bb | |||
@@ -10,9 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=1fa98232fd645608937a0fdc82e999b8" | |||
10 | 10 | ||
11 | SRC_URI[sha256sum] = "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de" | 11 | SRC_URI[sha256sum] = "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de" |
12 | 12 | ||
13 | inherit pypi setuptools3 ptest | 13 | inherit pypi setuptools3 ptest-python-pytest |
14 | |||
15 | SRC_URI += "file://run-ptest" | ||
16 | 14 | ||
17 | RDEPENDS:${PN}-ptest += " \ | 15 | RDEPENDS:${PN}-ptest += " \ |
18 | python3-pytest \ | 16 | python3-pytest \ |
@@ -20,9 +18,7 @@ RDEPENDS:${PN}-ptest += " \ | |||
20 | python3-unixadmin \ | 18 | python3-unixadmin \ |
21 | " | 19 | " |
22 | 20 | ||
23 | do_install_ptest() { | 21 | do_install_ptest:append() { |
24 | install -d ${D}${PTEST_PATH}/tests | ||
25 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
26 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ | 22 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ |
27 | cp -rf ${S}/docs ${D}${PTEST_PATH}/ | 23 | cp -rf ${S}/docs ${D}${PTEST_PATH}/ |
28 | } | 24 | } |
diff --git a/meta/recipes-devtools/python/python3-idna/run-ptest b/meta/recipes-devtools/python/python3-idna/run-ptest deleted file mode 100644 index d9693bb30f..0000000000 --- a/meta/recipes-devtools/python/python3-idna/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | python3 -mputao.unittest discover --top-level-directory . --start-directory tests | ||
diff --git a/meta/recipes-devtools/python/python3-idna_3.10.bb b/meta/recipes-devtools/python/python3-idna_3.10.bb index 854dc35242..bd6529e720 100644 --- a/meta/recipes-devtools/python/python3-idna_3.10.bb +++ b/meta/recipes-devtools/python/python3-idna_3.10.bb | |||
@@ -5,13 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=204c0612e40a4dd46012a78d02c80fb1" | |||
5 | 5 | ||
6 | SRC_URI[sha256sum] = "12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9" | 6 | SRC_URI[sha256sum] = "12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9" |
7 | 7 | ||
8 | SRC_URI += "file://run-ptest" | 8 | inherit pypi python_flit_core ptest-python-pytest |
9 | |||
10 | inherit pypi python_flit_core ptest | ||
11 | |||
12 | do_install_ptest() { | ||
13 | cp -r ${S}/tests ${D}${PTEST_PATH}/ | ||
14 | } | ||
15 | 9 | ||
16 | RDEPENDS:${PN} += "python3-codecs" | 10 | RDEPENDS:${PN} += "python3-codecs" |
17 | RDEPENDS:${PN}-ptest += "python3-unittest-automake-output" | 11 | RDEPENDS:${PN}-ptest += "python3-unittest-automake-output" |
diff --git a/meta/recipes-devtools/python/python3-jinja2/run-ptest b/meta/recipes-devtools/python/python3-jinja2/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-jinja2/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-jinja2_3.1.4.bb b/meta/recipes-devtools/python/python3-jinja2_3.1.4.bb index fd0afc1cb1..84c40796c6 100644 --- a/meta/recipes-devtools/python/python3-jinja2_3.1.4.bb +++ b/meta/recipes-devtools/python/python3-jinja2_3.1.4.bb | |||
@@ -12,21 +12,13 @@ CVE_PRODUCT = "jinja2 jinja" | |||
12 | 12 | ||
13 | CLEANBROKEN = "1" | 13 | CLEANBROKEN = "1" |
14 | 14 | ||
15 | inherit pypi python_flit_core ptest | 15 | inherit pypi python_flit_core ptest-python-pytest |
16 | 16 | ||
17 | SRC_URI += " \ | 17 | SRC_URI += " \ |
18 | file://run-ptest \ | ||
19 | file://fix-3.13.patch \ | 18 | file://fix-3.13.patch \ |
20 | " | 19 | " |
21 | 20 | ||
22 | do_install_ptest() { | ||
23 | install -d ${D}${PTEST_PATH}/tests | ||
24 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
25 | } | ||
26 | |||
27 | RDEPENDS:${PN}-ptest += " \ | 21 | RDEPENDS:${PN}-ptest += " \ |
28 | python3-pytest \ | ||
29 | python3-unittest-automake-output \ | ||
30 | python3-unixadmin \ | 22 | python3-unixadmin \ |
31 | " | 23 | " |
32 | 24 | ||
diff --git a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb index 333831c4b6..8b5de01b69 100644 --- a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb +++ b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb | |||
@@ -13,7 +13,7 @@ SRC_URI += " \ | |||
13 | 13 | ||
14 | PYPI_PACKAGE = "libarchive-c" | 14 | PYPI_PACKAGE = "libarchive-c" |
15 | 15 | ||
16 | inherit pypi setuptools3 ptest | 16 | inherit pypi setuptools3 ptest-python-pytest |
17 | 17 | ||
18 | SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" | 18 | SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" |
19 | 19 | ||
@@ -34,16 +34,12 @@ RDEPENDS:${PN} += "\ | |||
34 | 34 | ||
35 | RDEPENDS:${PN}-ptest += " \ | 35 | RDEPENDS:${PN}-ptest += " \ |
36 | locale-base-en-us \ | 36 | locale-base-en-us \ |
37 | python3-pytest \ | ||
38 | python3-unittest-automake-output \ | ||
39 | " | 37 | " |
40 | 38 | ||
41 | BBCLASSEXTEND = "native" | 39 | BBCLASSEXTEND = "native" |
42 | 40 | ||
43 | do_install_ptest() { | 41 | do_install_ptest:append() { |
44 | install -d ${D}${PTEST_PATH}/tests | ||
45 | install -d ${D}${PTEST_PATH}/libarchive | 42 | install -d ${D}${PTEST_PATH}/libarchive |
46 | cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
47 | cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/ | 43 | cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/ |
48 | cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst | 44 | cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst |
49 | } | 45 | } |
diff --git a/meta/recipes-devtools/python/python3-license-expression/run-ptest b/meta/recipes-devtools/python/python3-license-expression/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-license-expression/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb b/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb index fc92026c79..3af739bed4 100644 --- a/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb +++ b/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb | |||
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://apache-2.0.LICENSE;md5=86d3f3a95c324c9479bd8986968f43 | |||
6 | 6 | ||
7 | SRC_URI[sha256sum] = "6464397f8ed4353cc778999caec43b099f8d8d5b335f282e26a9eb9435522f05" | 7 | SRC_URI[sha256sum] = "6464397f8ed4353cc778999caec43b099f8d8d5b335f282e26a9eb9435522f05" |
8 | 8 | ||
9 | inherit pypi ptest python_setuptools_build_meta | 9 | inherit pypi ptest-python-pytest python_setuptools_build_meta |
10 | PYPI_PACKAGE = "license_expression" | 10 | PYPI_PACKAGE = "license_expression" |
11 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | 11 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" |
12 | 12 | ||
@@ -22,19 +22,8 @@ RDEPENDS:${PN} += "\ | |||
22 | 22 | ||
23 | BBCLASSEXTEND = "native nativesdk" | 23 | BBCLASSEXTEND = "native nativesdk" |
24 | 24 | ||
25 | SRC_URI += " \ | ||
26 | file://run-ptest \ | ||
27 | " | ||
28 | |||
29 | RDEPENDS:${PN}-ptest += " \ | ||
30 | python3-pytest \ | ||
31 | python3-unittest-automake-output \ | ||
32 | " | ||
33 | |||
34 | do_install_ptest() { | 25 | do_install_ptest() { |
35 | install -d ${D}${PTEST_PATH}/tests | ||
36 | install -d ${D}${PTEST_PATH}/src | 26 | install -d ${D}${PTEST_PATH}/src |
37 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
38 | cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/ | 27 | cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/ |
39 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ | 28 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ |
40 | } | 29 | } |
diff --git a/meta/recipes-devtools/python/python3-mako/run-ptest b/meta/recipes-devtools/python/python3-mako/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-mako/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-mako_1.3.8.bb b/meta/recipes-devtools/python/python3-mako_1.3.8.bb index 53e95ae445..3cfe56e043 100644 --- a/meta/recipes-devtools/python/python3-mako_1.3.8.bb +++ b/meta/recipes-devtools/python/python3-mako_1.3.8.bb | |||
@@ -6,11 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d0995d6f7ba3f186a03118f244e88f57" | |||
6 | 6 | ||
7 | PYPI_PACKAGE = "mako" | 7 | PYPI_PACKAGE = "mako" |
8 | 8 | ||
9 | inherit pypi python_setuptools_build_meta ptest | 9 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
10 | |||
10 | 11 | ||
11 | SRC_URI:append = " \ | ||
12 | file://run-ptest \ | ||
13 | " | ||
14 | 12 | ||
15 | SRC_URI[sha256sum] = "577b97e414580d3e088d47c2dbbe9594aa7a5146ed2875d4dfa9075af2dd3cc8" | 13 | SRC_URI[sha256sum] = "577b97e414580d3e088d47c2dbbe9594aa7a5146ed2875d4dfa9075af2dd3cc8" |
16 | 14 | ||
@@ -22,15 +20,10 @@ RDEPENDS:${PN} = "python3-html \ | |||
22 | python3-threading \ | 20 | python3-threading \ |
23 | " | 21 | " |
24 | 22 | ||
25 | RDEPENDS:${PN}-ptest += "\ | 23 | PTEST_PYTEST_DIR = "test" |
26 | python3-pytest \ | ||
27 | python3-unittest-automake-output \ | ||
28 | " | ||
29 | 24 | ||
30 | do_install_ptest() { | 25 | do_install_ptest:append() { |
31 | install -d ${D}${PTEST_PATH}/test | ||
32 | install -m 0644 ${S}/setup.cfg ${D}${PTEST_PATH}/ | 26 | install -m 0644 ${S}/setup.cfg ${D}${PTEST_PATH}/ |
33 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | ||
34 | } | 27 | } |
35 | 28 | ||
36 | BBCLASSEXTEND = "native nativesdk" | 29 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-markupsafe/run-ptest b/meta/recipes-devtools/python/python3-markupsafe/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-markupsafe/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-markupsafe_3.0.2.bb b/meta/recipes-devtools/python/python3-markupsafe_3.0.2.bb index e5feb8fe5f..b90dd84f48 100644 --- a/meta/recipes-devtools/python/python3-markupsafe_3.0.2.bb +++ b/meta/recipes-devtools/python/python3-markupsafe_3.0.2.bb | |||
@@ -6,22 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ffeffa59c90c9c4a033c7574f8f3fb75" | |||
6 | SRC_URI[sha256sum] = "ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0" | 6 | SRC_URI[sha256sum] = "ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0" |
7 | 7 | ||
8 | PYPI_PACKAGE = "markupsafe" | 8 | PYPI_PACKAGE = "markupsafe" |
9 | inherit pypi python_setuptools_build_meta ptest | 9 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
10 | 10 | ||
11 | RDEPENDS:${PN} += "python3-html python3-stringold" | 11 | RDEPENDS:${PN} += "python3-html python3-stringold" |
12 | 12 | ||
13 | BBCLASSEXTEND = "native nativesdk" | 13 | BBCLASSEXTEND = "native nativesdk" |
14 | |||
15 | SRC_URI += " \ | ||
16 | file://run-ptest \ | ||
17 | " | ||
18 | |||
19 | RDEPENDS:${PN}-ptest += " \ | ||
20 | python3-pytest \ | ||
21 | python3-unittest-automake-output \ | ||
22 | " | ||
23 | |||
24 | do_install_ptest() { | ||
25 | install -d ${D}${PTEST_PATH}/tests | ||
26 | cp -f ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
27 | } | ||
diff --git a/meta/recipes-devtools/python/python3-more-itertools/run-ptest b/meta/recipes-devtools/python/python3-more-itertools/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-more-itertools/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-more-itertools_10.5.0.bb b/meta/recipes-devtools/python/python3-more-itertools_10.5.0.bb index a98b412b5d..eda9bf1004 100644 --- a/meta/recipes-devtools/python/python3-more-itertools_10.5.0.bb +++ b/meta/recipes-devtools/python/python3-more-itertools_10.5.0.bb | |||
@@ -5,11 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5" | |||
5 | 5 | ||
6 | SRC_URI[sha256sum] = "5482bfef7849c25dc3c6dd53a6173ae4795da2a41a80faea6700d9f5846c5da6" | 6 | SRC_URI[sha256sum] = "5482bfef7849c25dc3c6dd53a6173ae4795da2a41a80faea6700d9f5846c5da6" |
7 | 7 | ||
8 | inherit pypi python_flit_core ptest | 8 | inherit pypi python_flit_core ptest-python-pytest |
9 | |||
10 | SRC_URI += " \ | ||
11 | file://run-ptest \ | ||
12 | " | ||
13 | 9 | ||
14 | RDEPENDS:${PN} += " \ | 10 | RDEPENDS:${PN} += " \ |
15 | python3-asyncio \ | 11 | python3-asyncio \ |
@@ -17,13 +13,6 @@ RDEPENDS:${PN} += " \ | |||
17 | 13 | ||
18 | RDEPENDS:${PN}-ptest += " \ | 14 | RDEPENDS:${PN}-ptest += " \ |
19 | python3-statistics \ | 15 | python3-statistics \ |
20 | python3-pytest \ | ||
21 | python3-unittest-automake-output \ | ||
22 | " | 16 | " |
23 | 17 | ||
24 | do_install_ptest() { | ||
25 | install -d ${D}${PTEST_PATH}/tests | ||
26 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
27 | } | ||
28 | |||
29 | BBCLASSEXTEND = "native nativesdk" | 18 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-pefile_2024.8.26.bb b/meta/recipes-devtools/python/python3-pefile_2024.8.26.bb index 87e651d9d5..6e72c93741 100644 --- a/meta/recipes-devtools/python/python3-pefile_2024.8.26.bb +++ b/meta/recipes-devtools/python/python3-pefile_2024.8.26.bb | |||
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/erocarrera/pefile" | |||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e34c75178086aca0a17551ffbacaca53" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e34c75178086aca0a17551ffbacaca53" |
6 | 6 | ||
7 | inherit setuptools3 ptest | 7 | inherit setuptools3 ptest-python-pytest |
8 | SRCREV = "4b3b1e2e568a88d4f1897d694d684f23d9e270c4" | 8 | SRCREV = "4b3b1e2e568a88d4f1897d694d684f23d9e270c4" |
9 | SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \ | 9 | SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \ |
10 | file://run-ptest" | 10 | file://run-ptest" |
@@ -12,17 +12,8 @@ S = "${WORKDIR}/git" | |||
12 | 12 | ||
13 | BBCLASSEXTEND = "native nativesdk" | 13 | BBCLASSEXTEND = "native nativesdk" |
14 | 14 | ||
15 | do_install_ptest() { | ||
16 | install -d ${D}${PTEST_PATH}/tests | ||
17 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
18 | } | ||
19 | |||
20 | RDEPENDS:${PN} += " \ | 15 | RDEPENDS:${PN} += " \ |
21 | python3-mmap \ | 16 | python3-mmap \ |
22 | python3-netclient \ | 17 | python3-netclient \ |
23 | python3-stringold \ | 18 | python3-stringold \ |
24 | " | 19 | " |
25 | RDEPENDS:${PN}-ptest += "\ | ||
26 | python3-pytest \ | ||
27 | python3-unittest-automake-output \ | ||
28 | " | ||
diff --git a/meta/recipes-devtools/python/python3-pluggy/run-ptest b/meta/recipes-devtools/python/python3-pluggy/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-pluggy/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-pluggy_1.5.0.bb b/meta/recipes-devtools/python/python3-pluggy_1.5.0.bb index 4f8412d4b3..1f9bb6d1cb 100644 --- a/meta/recipes-devtools/python/python3-pluggy_1.5.0.bb +++ b/meta/recipes-devtools/python/python3-pluggy_1.5.0.bb | |||
@@ -7,20 +7,8 @@ SRC_URI[sha256sum] = "2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f | |||
7 | 7 | ||
8 | DEPENDS += "python3-setuptools-scm-native" | 8 | DEPENDS += "python3-setuptools-scm-native" |
9 | 9 | ||
10 | inherit pypi ptest python_setuptools_build_meta | 10 | inherit pypi ptest-python-pytest python_setuptools_build_meta |
11 | 11 | ||
12 | SRC_URI += " \ | 12 | PTEST_PYTEST_DIR = "testing" |
13 | file://run-ptest \ | ||
14 | " | ||
15 | |||
16 | RDEPENDS:${PN}-ptest += " \ | ||
17 | python3-pytest \ | ||
18 | python3-unittest-automake-output \ | ||
19 | " | ||
20 | |||
21 | do_install_ptest() { | ||
22 | install -d ${D}${PTEST_PATH}/testing | ||
23 | cp -rf ${S}/testing/* ${D}${PTEST_PATH}/testing/ | ||
24 | } | ||
25 | 13 | ||
26 | BBCLASSEXTEND = "native nativesdk" | 14 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-pyasn1/run-ptest b/meta/recipes-devtools/python/python3-pyasn1/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-pyasn1/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb b/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb index 3913cb51d2..820ef27d2b 100644 --- a/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb +++ b/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb | |||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=190f79253908c986e6cacf380c3a5f6d" | |||
5 | 5 | ||
6 | SRC_URI[sha256sum] = "6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034" | 6 | SRC_URI[sha256sum] = "6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034" |
7 | 7 | ||
8 | inherit pypi python_setuptools_build_meta ptest | 8 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
9 | 9 | ||
10 | RDEPENDS:${PN}:class-target += " \ | 10 | RDEPENDS:${PN}:class-target += " \ |
11 | python3-codecs \ | 11 | python3-codecs \ |
@@ -14,18 +14,4 @@ RDEPENDS:${PN}:class-target += " \ | |||
14 | python3-shell \ | 14 | python3-shell \ |
15 | " | 15 | " |
16 | 16 | ||
17 | SRC_URI += " \ | ||
18 | file://run-ptest \ | ||
19 | " | ||
20 | |||
21 | RDEPENDS:${PN}-ptest += " \ | ||
22 | python3-pytest \ | ||
23 | python3-unittest-automake-output \ | ||
24 | " | ||
25 | |||
26 | do_install_ptest() { | ||
27 | install -d ${D}${PTEST_PATH}/tests | ||
28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
29 | } | ||
30 | |||
31 | BBCLASSEXTEND = "native nativesdk" | 17 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-pytz/run-ptest b/meta/recipes-devtools/python/python3-pytz/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-pytz/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-pytz_2024.2.bb b/meta/recipes-devtools/python/python3-pytz_2024.2.bb index 04bd1d632d..a379e19234 100644 --- a/meta/recipes-devtools/python/python3-pytz_2024.2.bb +++ b/meta/recipes-devtools/python/python3-pytz_2024.2.bb | |||
@@ -3,7 +3,9 @@ HOMEPAGE = "http://pythonhosted.org/pytz" | |||
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999" |
5 | 5 | ||
6 | inherit pypi setuptools3 ptest | 6 | inherit pypi setuptools3 ptest-python-pytest |
7 | |||
8 | PTEST_PYTEST_DIR = "pytz/tests" | ||
7 | 9 | ||
8 | SRC_URI[sha256sum] = "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a" | 10 | SRC_URI[sha256sum] = "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a" |
9 | 11 | ||
@@ -18,19 +20,11 @@ RDEPENDS:${PN}:class-target += "\ | |||
18 | 20 | ||
19 | BBCLASSEXTEND = "native nativesdk" | 21 | BBCLASSEXTEND = "native nativesdk" |
20 | 22 | ||
21 | SRC_URI += " \ | ||
22 | file://run-ptest \ | ||
23 | " | ||
24 | |||
25 | RDEPENDS:${PN}-ptest += " \ | 23 | RDEPENDS:${PN}-ptest += " \ |
26 | python3-pytest \ | 24 | python3-pytest \ |
27 | python3-unittest-automake-output \ | 25 | python3-unittest-automake-output \ |
28 | " | 26 | " |
29 | 27 | ||
30 | do_install_ptest() { | 28 | do_install_ptest:append() { |
31 | install -d ${D}${PTEST_PATH}/pytz | ||
32 | install -d ${D}${PTEST_PATH}/pytz/tests | ||
33 | cp -rf ${S}/pytz/tests/* ${D}${PTEST_PATH}/pytz/tests/ | ||
34 | cp -f ${S}/README.rst ${D}${PTEST_PATH}/ | 29 | cp -f ${S}/README.rst ${D}${PTEST_PATH}/ |
35 | |||
36 | } | 30 | } |
diff --git a/meta/recipes-devtools/python/python3-pyyaml/run-ptest b/meta/recipes-devtools/python/python3-pyyaml/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-pyyaml/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb index 6ea342eae3..7ebe3f7d9f 100644 --- a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb +++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb | |||
@@ -8,28 +8,17 @@ SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff | |||
8 | 8 | ||
9 | SRC_URI += "\ | 9 | SRC_URI += "\ |
10 | https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \ | 10 | https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \ |
11 | file://run-ptest \ | ||
12 | " | 11 | " |
13 | SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a" | 12 | SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a" |
14 | 13 | ||
15 | inherit pypi python_setuptools_build_meta ptest cython | 14 | inherit pypi python_setuptools_build_meta ptest-python-pytest cython |
16 | 15 | ||
17 | PACKAGECONFIG ?= "libyaml" | 16 | PACKAGECONFIG ?= "libyaml" |
18 | PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" | 17 | PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" |
19 | 18 | ||
20 | do_install_ptest() { | ||
21 | install -d ${D}${PTEST_PATH}/tests | ||
22 | cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/ | ||
23 | } | ||
24 | |||
25 | RDEPENDS:${PN} += "\ | 19 | RDEPENDS:${PN} += "\ |
26 | python3-datetime \ | 20 | python3-datetime \ |
27 | python3-netclient \ | 21 | python3-netclient \ |
28 | " | 22 | " |
29 | 23 | ||
30 | RDEPENDS:${PN}-ptest += " \ | ||
31 | python3-pytest \ | ||
32 | python3-unittest-automake-output \ | ||
33 | " | ||
34 | |||
35 | BBCLASSEXTEND = "native nativesdk" | 24 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-rpds-py/run-ptest b/meta/recipes-devtools/python/python3-rpds-py/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-rpds-py/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-rpds-py_0.21.0.bb b/meta/recipes-devtools/python/python3-rpds-py_0.21.0.bb index 81a8cb79a4..d162f71c19 100644 --- a/meta/recipes-devtools/python/python3-rpds-py_0.21.0.bb +++ b/meta/recipes-devtools/python/python3-rpds-py_0.21.0.bb | |||
@@ -4,13 +4,11 @@ HOMEPAGE = "https://pypi.org/project/rpds-py/" | |||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984" |
6 | 6 | ||
7 | SRC_URI += "file://run-ptest" | ||
8 | |||
9 | SRC_URI[sha256sum] = "ed6378c9d66d0de903763e7706383d60c33829581f0adff47b6535f1802fa6db" | 7 | SRC_URI[sha256sum] = "ed6378c9d66d0de903763e7706383d60c33829581f0adff47b6535f1802fa6db" |
10 | 8 | ||
11 | require ${BPN}-crates.inc | 9 | require ${BPN}-crates.inc |
12 | 10 | ||
13 | inherit pypi cargo-update-recipe-crates python_maturin ptest | 11 | inherit pypi cargo-update-recipe-crates python_maturin ptest-python-pytest |
14 | 12 | ||
15 | PYPI_PACKAGE = "rpds_py" | 13 | PYPI_PACKAGE = "rpds_py" |
16 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | 14 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" |
@@ -19,13 +17,6 @@ RDEPENDS:${PN}-ptest += " \ | |||
19 | python3-iniconfig \ | 17 | python3-iniconfig \ |
20 | python3-packaging \ | 18 | python3-packaging \ |
21 | python3-pluggy \ | 19 | python3-pluggy \ |
22 | python3-pytest \ | ||
23 | python3-unittest-automake-output \ | ||
24 | " | 20 | " |
25 | 21 | ||
26 | do_install_ptest() { | ||
27 | install -d ${D}${PTEST_PATH}/tests | ||
28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
29 | } | ||
30 | |||
31 | BBCLASSEXTEND = "native nativesdk" | 22 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest b/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-trove-classifiers_2024.10.21.16.bb b/meta/recipes-devtools/python/python3-trove-classifiers_2024.10.21.16.bb index 8640ee156b..b63d39b784 100644 --- a/meta/recipes-devtools/python/python3-trove-classifiers_2024.10.21.16.bb +++ b/meta/recipes-devtools/python/python3-trove-classifiers_2024.10.21.16.bb | |||
@@ -8,22 +8,8 @@ SRC_URI[sha256sum] = "17cbd055d67d5e9d9de63293a8732943fabc21574e4c7b74edf112b492 | |||
8 | PYPI_PACKAGE = "trove_classifiers" | 8 | PYPI_PACKAGE = "trove_classifiers" |
9 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | 9 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" |
10 | 10 | ||
11 | inherit pypi python_setuptools_build_meta ptest | 11 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
12 | 12 | ||
13 | DEPENDS += " python3-calver-native" | 13 | DEPENDS += " python3-calver-native" |
14 | 14 | ||
15 | SRC_URI += " \ | ||
16 | file://run-ptest \ | ||
17 | " | ||
18 | |||
19 | RDEPENDS:${PN}-ptest += " \ | ||
20 | python3-pytest \ | ||
21 | python3-unittest-automake-output \ | ||
22 | " | ||
23 | |||
24 | do_install_ptest() { | ||
25 | install -d ${D}${PTEST_PATH}/tests | ||
26 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
27 | } | ||
28 | |||
29 | BBCLASSEXTEND = "native nativesdk" | 15 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-uritools/run-ptest b/meta/recipes-devtools/python/python3-uritools/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-uritools/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-uritools_4.0.3.bb b/meta/recipes-devtools/python/python3-uritools_4.0.3.bb index 640c3f3ab6..4210407e00 100644 --- a/meta/recipes-devtools/python/python3-uritools_4.0.3.bb +++ b/meta/recipes-devtools/python/python3-uritools_4.0.3.bb | |||
@@ -6,17 +6,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=539275e657c6b7af026bb908356f7541" | |||
6 | 6 | ||
7 | SRC_URI[sha256sum] = "ee06a182a9c849464ce9d5fa917539aacc8edd2a4924d1b7aabeeecabcae3bc2" | 7 | SRC_URI[sha256sum] = "ee06a182a9c849464ce9d5fa917539aacc8edd2a4924d1b7aabeeecabcae3bc2" |
8 | 8 | ||
9 | SRC_URI += "file://run-ptest" | 9 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
10 | |||
11 | inherit pypi python_setuptools_build_meta ptest | ||
12 | |||
13 | do_install_ptest() { | ||
14 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/ | ||
15 | } | ||
16 | |||
17 | RDEPENDS:${PN}-ptest += " \ | ||
18 | python3-pytest \ | ||
19 | python3-unittest-automake-output \ | ||
20 | " | ||
21 | 10 | ||
22 | BBCLASSEXTEND = "native nativesdk" | 11 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-wcwidth/run-ptest b/meta/recipes-devtools/python/python3-wcwidth/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-wcwidth/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-wcwidth_0.2.13.bb b/meta/recipes-devtools/python/python3-wcwidth_0.2.13.bb index 4a9bf75323..71bb1a2703 100644 --- a/meta/recipes-devtools/python/python3-wcwidth_0.2.13.bb +++ b/meta/recipes-devtools/python/python3-wcwidth_0.2.13.bb | |||
@@ -6,20 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b15979c39a2543892fca8cd86b4b52cb" | |||
6 | 6 | ||
7 | SRC_URI[sha256sum] = "72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5" | 7 | SRC_URI[sha256sum] = "72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5" |
8 | 8 | ||
9 | inherit pypi setuptools3 ptest | 9 | inherit pypi setuptools3 ptest-python-pytest |
10 | 10 | ||
11 | SRC_URI += " \ | 11 | do_install_ptest:aapend() { |
12 | file://run-ptest \ | ||
13 | " | ||
14 | |||
15 | RDEPENDS:${PN}-ptest += " \ | ||
16 | python3-pytest \ | ||
17 | python3-unittest-automake-output \ | ||
18 | " | ||
19 | |||
20 | do_install_ptest() { | ||
21 | install -d ${D}${PTEST_PATH}/tests | ||
22 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
23 | install -d ${D}${PTEST_PATH}/bin | 12 | install -d ${D}${PTEST_PATH}/bin |
24 | cp -rf ${S}/bin/* ${D}${PTEST_PATH}/bin/ | 13 | cp -rf ${S}/bin/* ${D}${PTEST_PATH}/bin/ |
25 | } | 14 | } |
diff --git a/meta/recipes-devtools/python/python3-webcolors/run-ptest b/meta/recipes-devtools/python/python3-webcolors/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta/recipes-devtools/python/python3-webcolors/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-webcolors_24.8.0.bb b/meta/recipes-devtools/python/python3-webcolors_24.8.0.bb index 1998cfc4c1..c5ed4bd7d3 100644 --- a/meta/recipes-devtools/python/python3-webcolors_24.8.0.bb +++ b/meta/recipes-devtools/python/python3-webcolors_24.8.0.bb | |||
@@ -5,24 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cbaebec43b7d199c7fd8f5411b3b0448" | |||
5 | 5 | ||
6 | SRC_URI[sha256sum] = "08b07af286a01bcd30d583a7acadf629583d1f79bfef27dd2c2c5c263817277d" | 6 | SRC_URI[sha256sum] = "08b07af286a01bcd30d583a7acadf629583d1f79bfef27dd2c2c5c263817277d" |
7 | 7 | ||
8 | inherit pypi python_setuptools_build_meta ptest | 8 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
9 | 9 | ||
10 | RDEPENDS:${PN}:class-target = "\ | 10 | RDEPENDS:${PN}:class-target = "\ |
11 | python3-stringold \ | 11 | python3-stringold \ |
12 | " | 12 | " |
13 | 13 | ||
14 | SRC_URI += " \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | |||
18 | RDEPENDS:${PN}-ptest += " \ | ||
19 | python3-pytest \ | ||
20 | python3-unittest-automake-output \ | ||
21 | " | ||
22 | |||
23 | do_install_ptest() { | ||
24 | install -d ${D}${PTEST_PATH}/tests | ||
25 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
26 | } | ||
27 | |||
28 | BBCLASSEXTEND = "native nativesdk" | 14 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-xmltodict/run-ptest b/meta/recipes-devtools/python/python3-xmltodict/run-ptest deleted file mode 100644 index 3385d68939..0000000000 --- a/meta/recipes-devtools/python/python3-xmltodict/run-ptest +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' | ||
diff --git a/meta/recipes-devtools/python/python3-xmltodict_0.14.2.bb b/meta/recipes-devtools/python/python3-xmltodict_0.14.2.bb index e99fa3826e..56cdf6ff4a 100644 --- a/meta/recipes-devtools/python/python3-xmltodict_0.14.2.bb +++ b/meta/recipes-devtools/python/python3-xmltodict_0.14.2.bb | |||
@@ -9,11 +9,7 @@ PYPI_PACKAGE = "xmltodict" | |||
9 | 9 | ||
10 | BBCLASSEXTEND = "native nativesdk" | 10 | BBCLASSEXTEND = "native nativesdk" |
11 | 11 | ||
12 | inherit pypi setuptools3 ptest | 12 | inherit pypi setuptools3 ptest-python-pytest |
13 | |||
14 | SRC_URI += " \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | 13 | ||
18 | RDEPENDS:${PN} += " \ | 14 | RDEPENDS:${PN} += " \ |
19 | python3-core \ | 15 | python3-core \ |
@@ -21,11 +17,3 @@ RDEPENDS:${PN} += " \ | |||
21 | python3-io \ | 17 | python3-io \ |
22 | " | 18 | " |
23 | 19 | ||
24 | RDEPENDS:${PN}-ptest += " \ | ||
25 | python3-pytest \ | ||
26 | " | ||
27 | |||
28 | do_install_ptest() { | ||
29 | install -d ${D}${PTEST_PATH}/tests | ||
30 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
31 | } | ||