mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
python3-intervals: update recipe to use the ptest-python-pytest class
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
pytest --automake
|
|
||||||
@@ -7,18 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
|
|||||||
|
|
||||||
PYPI_PACKAGE := "python-intervals"
|
PYPI_PACKAGE := "python-intervals"
|
||||||
|
|
||||||
SRC_URI += " \
|
inherit pypi setuptools3 ptest-python-pytest
|
||||||
file://run-ptest \
|
|
||||||
"
|
|
||||||
|
|
||||||
inherit pypi setuptools3 ptest
|
do_install_ptest:append () {
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
|
||||||
python3-pytest \
|
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install_ptest() {
|
|
||||||
cp -f ${S}/test_intervals.py ${D}${PTEST_PATH}
|
cp -f ${S}/test_intervals.py ${D}${PTEST_PATH}
|
||||||
cp -f ${S}/README.md ${D}${PTEST_PATH}
|
cp -f ${S}/README.md ${D}${PTEST_PATH}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user