mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
python3-numpy: Add ptest
Since 1.15, numpy have replaced nose with pytest testing framework it additionally needs hypothesis and sortedcontainers modules (From OE-Core rev: 13ff38ffd216fcd7044d7a0f46c8907d64ce3f6e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import numpy
|
||||||
|
numpy.test(label='full', verbose=2)
|
||||||
|
|
||||||
@@ -8,6 +8,7 @@ SRCNAME = "numpy"
|
|||||||
SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz \
|
SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz \
|
||||||
file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
|
file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
|
||||||
file://0001-numpy-core-Define-RISCV-32-support.patch \
|
file://0001-numpy-core-Define-RISCV-32-support.patch \
|
||||||
|
file://run-ptest \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
|
SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
|
||||||
|
|
||||||
@@ -16,7 +17,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
|
|||||||
|
|
||||||
DEPENDS += "python3-cython-native"
|
DEPENDS += "python3-cython-native"
|
||||||
|
|
||||||
inherit setuptools3
|
inherit ptest setuptools3
|
||||||
|
|
||||||
S = "${WORKDIR}/numpy-${PV}"
|
S = "${WORKDIR}/numpy-${PV}"
|
||||||
|
|
||||||
@@ -30,7 +31,6 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
|
|||||||
${PYTHON_PN}-pprint \
|
${PYTHON_PN}-pprint \
|
||||||
${PYTHON_PN}-pickle \
|
${PYTHON_PN}-pickle \
|
||||||
${PYTHON_PN}-shell \
|
${PYTHON_PN}-shell \
|
||||||
${PYTHON_PN}-nose \
|
|
||||||
${PYTHON_PN}-doctest \
|
${PYTHON_PN}-doctest \
|
||||||
${PYTHON_PN}-datetime \
|
${PYTHON_PN}-datetime \
|
||||||
${PYTHON_PN}-distutils \
|
${PYTHON_PN}-distutils \
|
||||||
@@ -46,6 +46,12 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
|
|||||||
${PYTHON_PN}-threading \
|
${PYTHON_PN}-threading \
|
||||||
${PYTHON_PN}-multiprocessing \
|
${PYTHON_PN}-multiprocessing \
|
||||||
"
|
"
|
||||||
|
RDEPENDS_${PN}-ptest += "${PYTHON_PN}-pytest \
|
||||||
|
${PYTHON_PN}-hypothesis \
|
||||||
|
${PYTHON_PN}-sortedcontainers \
|
||||||
|
${PYTHON_PN}-resource \
|
||||||
|
ldd \
|
||||||
|
"
|
||||||
|
|
||||||
RDEPENDS_${PN}_class-native = ""
|
RDEPENDS_${PN}_class-native = ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user