diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 7864b632a7..8f739f24f8 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -42,6 +42,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-multidict \ python3-netaddr \ python3-ordered-set \ + python3-outcome \ python3-parse \ python3-parse-type \ python3-platformdirs \ diff --git a/meta-python/recipes-devtools/python/python3-outcome/run-ptest b/meta-python/recipes-devtools/python/python3-outcome/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-outcome/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-outcome_1.3.0.post0.bb b/meta-python/recipes-devtools/python/python3-outcome_1.3.0.post0.bb index 89c0da470e..9714301879 100644 --- a/meta-python/recipes-devtools/python/python3-outcome_1.3.0.post0.bb +++ b/meta-python/recipes-devtools/python/python3-outcome_1.3.0.post0.bb @@ -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/ +}