mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
python3-jdcal: 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,21 +7,12 @@ HOMEPAGE = "https://github.com/phn/jdcal"
|
|||||||
LICENSE = "BSD-2-Clause"
|
LICENSE = "BSD-2-Clause"
|
||||||
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=bd236e1f590973467a427bb354be0f46"
|
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=bd236e1f590973467a427bb354be0f46"
|
||||||
|
|
||||||
inherit pypi setuptools3 ptest
|
inherit pypi setuptools3 ptest-python-pytest
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8"
|
SRC_URI[sha256sum] = "472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8"
|
||||||
|
|
||||||
RDEPENDS:${PN} += "python3-compression python3-io python3-pprint python3-shell"
|
RDEPENDS:${PN} += "python3-compression python3-io python3-pprint python3-shell"
|
||||||
|
|
||||||
SRC_URI += " \
|
do_install_ptest:append () {
|
||||||
file://run-ptest \
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
|
||||||
python3-pytest \
|
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install_ptest() {
|
|
||||||
cp -f ${S}/test_jdcal.py ${D}${PTEST_PATH}/
|
cp -f ${S}/test_jdcal.py ${D}${PTEST_PATH}/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user