* [PATCH 1/4] python3-numpy: Upgrade to 1.19.4
@ 2020-11-17 22:54 Khem Raj
2020-11-17 22:54 ` [PATCH 2/4] python3-hypothesis: Add recipe Khem Raj
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Khem Raj @ 2020-11-17 22:54 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
Unify inc file into single recipe, py2 is gone
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb | 3 ---
.../{python-numpy.inc => python3-numpy_1.19.4.bb} | 6 ++++--
2 files changed, 4 insertions(+), 5 deletions(-)
delete mode 100644 meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
rename meta/recipes-devtools/python-numpy/{python-numpy.inc => python3-numpy_1.19.4.bb} (94%)
diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
deleted file mode 100644
index d388e88d25..0000000000
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
+++ /dev/null
@@ -1,3 +0,0 @@
-inherit setuptools3
-require python-numpy.inc
-
diff --git a/meta/recipes-devtools/python-numpy/python-numpy.inc b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
similarity index 94%
rename from meta/recipes-devtools/python-numpy/python-numpy.inc
rename to meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index 40f81046ee..7ff057b781 100644
--- a/meta/recipes-devtools/python-numpy/python-numpy.inc
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -8,14 +8,16 @@ 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 \
- "
-SRC_URI[sha256sum] = "9179d259a9bc53ed7b153d31fc3156d1ca560d61079f53191cf177c3efc4a498"
+"
+SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
UPSTREAM_CHECK_URI = "https://github.com/numpy/numpy/releases"
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
DEPENDS += "python3-cython-native"
+inherit setuptools3
+
S = "${WORKDIR}/numpy-${PV}"
CLEANBROKEN = "1"
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] python3-hypothesis: Add recipe
2020-11-17 22:54 [PATCH 1/4] python3-numpy: Upgrade to 1.19.4 Khem Raj
@ 2020-11-17 22:54 ` Khem Raj
2020-11-17 22:54 ` [PATCH 3/4] python3-sortedcontainers: " Khem Raj
2020-11-17 22:54 ` [PATCH 4/4] python-numpy: Add ptest Khem Raj
2 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2020-11-17 22:54 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
Its used in many python packages for testing eg. numpy
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../python/python3-hypothesis_5.41.2.bb | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb
diff --git a/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb b/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb
new file mode 100644
index 0000000000..a2bf2af33f
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb
@@ -0,0 +1,12 @@
+SUMMARY = "A library for property-based testing"
+HOMEPAGE = "https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c"
+
+PYPI_PACKAGE = "hypothesis"
+
+inherit pypi setuptools3
+
+SRC_URI[sha256sum] = "f8c281355aaba1da696e40f1488c2bb47c42660424f5750daea45a85e2d047b3"
+
+RDEPENDS_${PN} += "python3-core"
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] python3-sortedcontainers: Add recipe
2020-11-17 22:54 [PATCH 1/4] python3-numpy: Upgrade to 1.19.4 Khem Raj
2020-11-17 22:54 ` [PATCH 2/4] python3-hypothesis: Add recipe Khem Raj
@ 2020-11-17 22:54 ` Khem Raj
2020-11-17 22:54 ` [PATCH 4/4] python-numpy: Add ptest Khem Raj
2 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2020-11-17 22:54 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
Used in some python package testing infrastructures
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../python/python3-sortedcontainers_2.3.0.bb | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb
diff --git a/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb b/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb
new file mode 100644
index 0000000000..6060c03723
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb
@@ -0,0 +1,9 @@
+SUMMARY = "Sorted Containers is an Apache2 licensed sorted collections library, written in pure-Python, and fast as C-extensions."
+HOMEPAGE = "http://www.grantjenks.com/docs/sortedcontainers/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7c7c6a1a12ec816da16c1839137d53ae"
+
+inherit pypi setuptools3
+SRC_URI[sha256sum] = "59cc937650cf60d677c16775597c89a960658a09cf7c1a668f86e1e4464b10a1"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] python-numpy: Add ptest
2020-11-17 22:54 [PATCH 1/4] python3-numpy: Upgrade to 1.19.4 Khem Raj
2020-11-17 22:54 ` [PATCH 2/4] python3-hypothesis: Add recipe Khem Raj
2020-11-17 22:54 ` [PATCH 3/4] python3-sortedcontainers: " Khem Raj
@ 2020-11-17 22:54 ` Khem Raj
2020-11-20 11:19 ` [OE-core] " Richard Purdie
2 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-11-17 22:54 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
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
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 \
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 4/4] python-numpy: Add ptest
2020-11-17 22:54 ` [PATCH 4/4] python-numpy: Add ptest Khem Raj
@ 2020-11-20 11:19 ` Richard Purdie
0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2020-11-20 11:19 UTC (permalink / raw)
To: Khem Raj, openembedded-core; +Cc: Orling, Timothy T, Trevor Gamblin
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-11-20 11:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-17 22:54 [PATCH 1/4] python3-numpy: Upgrade to 1.19.4 Khem Raj
2020-11-17 22:54 ` [PATCH 2/4] python3-hypothesis: Add recipe Khem Raj
2020-11-17 22:54 ` [PATCH 3/4] python3-sortedcontainers: " Khem Raj
2020-11-17 22:54 ` [PATCH 4/4] python-numpy: Add ptest Khem Raj
2020-11-20 11:19 ` [OE-core] " Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox