summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-11-28 23:47:59 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-30 14:42:22 +0000
commit0ac99625bf2c8a19d4ee746dc13e9c6b2e1956e2 (patch)
treee922ba1370d8c53f7ebc7cd2b3ee2abc00711089
parent37259ebab2cde325628068b4a8af0d73a952969e (diff)
downloadpoky-0ac99625bf2c8a19d4ee746dc13e9c6b2e1956e2.tar.gz
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>
-rw-r--r--meta/recipes-devtools/python-numpy/files/run-ptest5
-rw-r--r--meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb10
2 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/run-ptest b/meta/recipes-devtools/python-numpy/files/run-ptest
new file mode 100644
index 0000000000..9a1c72aeb1
--- /dev/null
+++ b/meta/recipes-devtools/python-numpy/files/run-ptest
@@ -0,0 +1,5 @@
1#!/usr/bin/env python3
2
3import numpy
4numpy.test(label='full', verbose=2)
5
diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index d54f2f6c18..2bfc913aa0 100644
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -8,6 +8,7 @@ SRCNAME = "numpy"
8SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz \ 8SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz \
9 file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ 9 file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
10 file://0001-numpy-core-Define-RISCV-32-support.patch \ 10 file://0001-numpy-core-Define-RISCV-32-support.patch \
11 file://run-ptest \
11" 12"
12SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413" 13SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
13 14
@@ -16,7 +17,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
16 17
17DEPENDS += "python3-cython-native" 18DEPENDS += "python3-cython-native"
18 19
19inherit setuptools3 20inherit ptest setuptools3
20 21
21S = "${WORKDIR}/numpy-${PV}" 22S = "${WORKDIR}/numpy-${PV}"
22 23
@@ -30,7 +31,6 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
30 ${PYTHON_PN}-pprint \ 31 ${PYTHON_PN}-pprint \
31 ${PYTHON_PN}-pickle \ 32 ${PYTHON_PN}-pickle \
32 ${PYTHON_PN}-shell \ 33 ${PYTHON_PN}-shell \
33 ${PYTHON_PN}-nose \
34 ${PYTHON_PN}-doctest \ 34 ${PYTHON_PN}-doctest \
35 ${PYTHON_PN}-datetime \ 35 ${PYTHON_PN}-datetime \
36 ${PYTHON_PN}-distutils \ 36 ${PYTHON_PN}-distutils \
@@ -46,6 +46,12 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
46 ${PYTHON_PN}-threading \ 46 ${PYTHON_PN}-threading \
47 ${PYTHON_PN}-multiprocessing \ 47 ${PYTHON_PN}-multiprocessing \
48" 48"
49RDEPENDS_${PN}-ptest += "${PYTHON_PN}-pytest \
50 ${PYTHON_PN}-hypothesis \
51 ${PYTHON_PN}-sortedcontainers \
52 ${PYTHON_PN}-resource \
53 ldd \
54"
49 55
50RDEPENDS_${PN}_class-native = "" 56RDEPENDS_${PN}_class-native = ""
51 57