Message ID | 20201117225428.877691-4-raj.khem@gmail.com |
---|---|
State | Master Next |
Commit | e2c5b0ec162cd740cb72b56c18ff2bb7c5add909 |
Headers | show |
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 @@ +#!/usr/bin/env python3 + +import numpy +numpy.test(label='full', verbose=2) + 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 7ff057b781..08130821c8 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" 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-numpy-core-Define-RISCV-32-support.patch \ + file://run-ptest \ " SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413" @@ -16,7 +17,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar" DEPENDS += "python3-cython-native" -inherit setuptools3 +inherit ptest setuptools3 S = "${WORKDIR}/numpy-${PV}" @@ -30,7 +31,6 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \ ${PYTHON_PN}-pprint \ ${PYTHON_PN}-pickle \ ${PYTHON_PN}-shell \ - ${PYTHON_PN}-nose \ ${PYTHON_PN}-doctest \ ${PYTHON_PN}-datetime \ ${PYTHON_PN}-distutils \ @@ -39,6 +39,9 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \ ${PYTHON_PN}-netclient \ ${PYTHON_PN}-numbers \ ${PYTHON_PN}-pydoc \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-hypothesis \ + ${PYTHON_PN}-sortedcontainers \ ${PYTHON_PN}-pkgutil \ ${PYTHON_PN}-email \ ${PYTHON_PN}-compression \
On Tue, 2020-11-17 at 14:54 -0800, Khem Raj wrote: > Since 1.15, numpy have replaced nose with pytest testing framework > it additionally needs hypothesis and sortedcontainers modules > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > --- > meta/recipes-devtools/python-numpy/files/run-ptest | 5 +++++ > meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 7 +++++-- > 2 files changed, 10 insertions(+), 2 deletions(-) > create mode 100644 meta/recipes-devtools/python-numpy/files/run-ptest This series isn't quite there as it needs python3-pytest and I think its missing some BBCLASSEXTENDs too. stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-hypothesis' (but virtual:nativesdk:/home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb RDEPENDS on or otherwise requires it) stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pytest' (but virtual:nativesdk:/home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb RDEPENDS on or otherwise requires it) stdio: WARNING: Nothing RPROVIDES 'python3-pytest' (but /home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb RDEPENDS on or otherwise requires it) stdio: WARNING: Nothing RPROVIDES 'python3-numpy' (but /home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb RDEPENDS on or otherwise requires it) Cheers, Richard -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#144851): https://lists.openembedded.org/g/openembedded-core/message/144851 Mute This Topic: https://lists.openembedded.org/mt/78328456/1003190 Group Owner: openembedded-core+owner@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org] -=-=-=-=-=-=-=-=-=-=-=-
Since 1.15, numpy have replaced nose with pytest testing framework it additionally needs hypothesis and sortedcontainers modules Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta/recipes-devtools/python-numpy/files/run-ptest | 5 +++++ meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/python-numpy/files/run-ptest -- 2.29.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#144757): https://lists.openembedded.org/g/openembedded-core/message/144757 Mute This Topic: https://lists.openembedded.org/mt/78328456/1003190 Group Owner: openembedded-core+owner@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org] -=-=-=-=-=-=-=-=-=-=-=-