python3-propcache: enable ptest
PATCH 1/5 python3-propcache: enable ptest
- Tested on qemux86-64 and qemuarm64
- Added ptest to PTESTS_FAST_META_PYTHON
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 37
PASS: 37
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 7
END: /usr/lib/python3-propcache/ptest
2024-10-11T08:21
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 37
PASS: 37
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 6
END: /usr/lib/python3-propcache/ptest
2024-10-11T08:16
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-propcache/run-ptest | 3 +++ .../python/python3-propcache_0.2.0.bb | 21 ++++++++++++++++--- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-propcache/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -49,6 +49,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-portalocker \ python3-precise-runner \ python3-prettytable \ + python3-propcache \ python3-pydantic \ python3-pydantic-core \ python3-pylint \
meta-python/recipes-devtools/python/python3-propcache/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb +18 -3
@@ -5,9 +5,24 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" SRC_URI[sha256sum] = "df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70" -inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" DEPENDS += " \ - python3-expandvars-native \ - python3-cython-native \ + python3-expandvars-native \ + python3-cython-native \ " + +RDEPENDS:${PN}-ptest = " \ + python3-pytest \ + python3-pytest-xdist \ + 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.25.1
PATCH 2/5 python3-python-multipart: upgrade 0.0.11 > 0.0.12 and enable ptest
- Tested on qemux86-64 and qemuarm64
- Added ptest into PTESTS_FAST_META_PYTHON
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 115
PASS: 115
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 24
END: /usr/lib/python3-python-multipart/ptest
2024-10-11T09:02
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 115
PASS: 115
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 22
END: /usr/lib/python3-python-multipart/ptest
2024-10-11T09:08
STOP: ptest-runner
TOTAL: 1 FAIL: 0
Changelog:
- Enforce 100% coverage
- Add mypy strict typing
- Improve error message when boundary character does not match
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-python-multipart/run-ptest | 3 +++ .../python/python3-python-multipart_0.0.11.bb | 9 ------- .../python/python3-python-multipart_0.0.12.bb | 24 +++++++++++++++++++ 4 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-python-multipart/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-python-multipart_0.0.11.bb create mode 100644 meta-python/recipes-devtools/python/python3-python-multipart_0.0.12.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -53,6 +53,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-pydantic \ python3-pydantic-core \ python3-pylint \ + python3-python-multipart \ python3-ptyprocess \ python3-py-cpuinfo \ python3-pyasn1-modules \
meta-python/recipes-devtools/python/python3-python-multipart/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-python-multipart_0.0.11.bb deleted +0 -9
@@ -1,9 +0,0 @@ -SUMMARY = "A streaming multipart parser for Python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3d98f0d58b28321924a89ab60c82410e" - -SRC_URI[sha256sum] = "1d377f074b69a47dd204c990de57a7cf03d9b85695a3e57faec32d54b78e3e48" - -inherit pypi python_hatchling - -PYPI_PACKAGE = "python_multipart"
meta-python/recipes-devtools/python/python3-python-multipart_0.0.12.bb new file +24 -0
@@ -0,0 +1,24 @@ +SUMMARY = "A streaming multipart parser for Python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3d98f0d58b28321924a89ab60c82410e" + +SRC_URI[sha256sum] = "045e1f98d719c1ce085ed7f7e1ef9d8ccc8c02ba02b5566d5f7521410ced58cb" + +inherit pypi python_hatchling ptest + +PYPI_PACKAGE = "python_multipart" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest = " \ + 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/ +}
Signature · 1 line
2.25.1
PATCH 3/5 python3-outcome: enable ptest
In reply to alperak- Tested on qemux86-64 and qemuarm64
- Added ptest into PTESTS_FAST_META_PYTHON
- The PyPi package name defaults to PN without the python3- prefix, so there is no need to set PYPI_PACKAGE as outcome, it is by default.
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 10
PASS: 10
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 7
END: /usr/lib/python3-outcome/ptest
2024-10-11T09:27
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 10
PASS: 10
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 6
END: /usr/lib/python3-outcome/ptest
2024-10-11T09:24
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-outcome/run-ptest | 3 +++ .../python/python3-outcome_1.3.0.post0.bb | 26 ++++++++++++++++--- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-outcome/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -42,6 +42,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-multidict \ python3-netaddr \ python3-ordered-set \ + python3-outcome \ python3-parse \ python3-parse-type \ python3-platformdirs \
meta-python/recipes-devtools/python/python3-outcome/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-outcome_1.3.0.post0.bb +22 -4
@@ -7,10 +7,28 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fa7b86389e58dd4087a8d2b833e5fe96 \ SRC_URI[sha256sum] = "9dcf02e65f2971b80047b377468e72a268e15c0af3cf1238e6ff14f7f91143b8" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest -RDEPENDS:${PN} += "python3-attrs" +SRC_URI += " \ + file://run-ptest \ +" -RDEPENDS:${PN} += "python3-asyncio python3-core python3-pytest python3-typing-extensions" +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-pytest-asyncio \ + python3-unittest-automake-output \ + python3-outcome \ +" -PYPI_PACKAGE = "outcome" +RDEPENDS:${PN} += " \ + python3-asyncio \ + python3-attrs \ + python3-core \ + 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.25.1
PATCH 4/5 python3-portion: enable ptest
In reply to alperak- Tested on qemux86-64 and qemuarm64
- Added ptest into PTESTS_FAST_META_PYTHON
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 205
PASS: 205
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 27
END: /usr/lib/python3-portion/ptest
2024-10-11T12:13
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 205
PASS: 205
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 25
END: /usr/lib/python3-portion/ptest
2024-10-11T12:18
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-portion/run-ptest | 3 +++ .../python/python3-portion_2.5.0.bb | 22 ++++++++++++++++--- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-portion/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -48,6 +48,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-platformdirs \ python3-polyline \ python3-portalocker \ + python3-portion \ python3-precise-runner \ python3-prettytable \ python3-propcache \
meta-python/recipes-devtools/python/python3-portion/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-portion_2.5.0.bb +19 -3
@@ -5,12 +5,28 @@ SECTION = "devel/python" LICENSE = "LGPL-3.0-only" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3000208d539ec061b899bce1d9ce9404" -inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest SRC_URI[sha256sum] = "80ae7bab71f4844e3eb33c57954d76a3bd4cb351039b6e260e779325aeb4a487" -RDEPENDS:${PN} = "\ - python3-sortedcontainers \ +SRC_URI += " \ + file://run-ptest \ " +RDEPENDS:${PN} += "\ + python3-sortedcontainers \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + # This file tests README.md and deleted as redundant. + rm -f ${S}/tests/test_doc.py + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + BBCLASSEXTEND = "native"
Signature · 1 line
2.25.1
PATCH 5/5 python3-configobj: enable ptest
In reply to alperak- Tested on qemux86-64 and qemuarm64
- Added ptest into PTESTS_FAST_META_PYTHON
- The PyPi package name defaults to PN without the python3- prefix, so there is no need to set PYPI_PACKAGE as configobj, it is by default.
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 75
PASS: 75
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 12
END: /usr/lib/python3-configobj/ptest
2024-10-11T12:59
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 75
PASS: 75
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-configobj/ptest
2024-10-11T12:56
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-configobj/run-ptest | 3 +++ .../python/python3-configobj_5.0.9.bb | 21 +++++++++++++++---- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100755 meta-python/recipes-devtools/python/python3-configobj/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -16,6 +16,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-blinker \ python3-cachetools \ python3-cbor2 \ + python3-configobj \ python3-click \ python3-dasbus \ python3-dominate \
meta-python/recipes-devtools/python/python3-configobj/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb +17 -4
@@ -3,12 +3,25 @@ SECTION = "devel/python" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95" -PYPI_PACKAGE = "configobj" SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848" -inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" RDEPENDS:${PN} += " \ - python3-pprint \ - python3-six \ + python3-pprint \ + python3-six \ " + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/src/tests/* ${D}${PTEST_PATH}/tests/ +}
Signature · 1 line
2.25.1