All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] python3-cryptography: add python3-pytest-benchmark rdepends
@ 2022-05-14  2:13 mingli.yu
  2022-05-16  8:45 ` [OE-core] " Luca Ceresoli
  0 siblings, 1 reply; 15+ messages in thread
From: mingli.yu @ 2022-05-14  2:13 UTC (permalink / raw)
  To: openembedded-core

From: Mingli Yu <mingli.yu@windriver.com>

The new version introduced below change, so add python3-pytest-benchmark
to rdepends to fix the gap.
496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)

Fixes:
  # ./run-ptest
  Free memory: 31.283 GB
  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
  pytest: error: unrecognized arguments: --benchmark-disable
  inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
  rootdir: /usr/lib/python3-cryptography/ptest

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-devtools/python/python3-cryptography_37.0.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
index 1271954a08..78faea5e22 100644
--- a/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
@@ -92,6 +92,7 @@ RDEPENDS:${PN}-ptest += " \
     ${PYTHON_PN}-pretend \
     ${PYTHON_PN}-psutil \
     ${PYTHON_PN}-pytest \
+    ${PYTHON_PN}-pytest-benchmark \
     ${PYTHON_PN}-pytest-subtests \
     ${PYTHON_PN}-pytz \
     ${PYTHON_PN}-tomli \
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [OE-core] [PATCH] python3-cryptography: add python3-pytest-benchmark rdepends
  2022-05-14  2:13 [PATCH] python3-cryptography: add python3-pytest-benchmark rdepends mingli.yu
@ 2022-05-16  8:45 ` Luca Ceresoli
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
  0 siblings, 1 reply; 15+ messages in thread
From: Luca Ceresoli @ 2022-05-16  8:45 UTC (permalink / raw)
  To: Yu, Mingli; +Cc: openembedded-core

Hi Yu,

Il giorno Sat, 14 May 2022 10:13:15 +0800
"Yu, Mingli" <mingli.yu@windriver.com> ha scritto:

> From: Mingli Yu <mingli.yu@windriver.com>
> 
> The new version introduced below change, so add
> python3-pytest-benchmark to rdepends to fix the gap.
> 496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)
> 
> Fixes:
>   # ./run-ptest
>   Free memory: 31.283 GB
>   ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
>   pytest: error: unrecognized arguments: --benchmark-disable
>   inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
>   rootdir: /usr/lib/python3-cryptography/ptest
> 
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>

This patch is introducing build failures on the autobuilders:

ERROR: Nothing RPROVIDES 'python3-pytest-benchmark' (but
/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
RDEPENDS on or otherwise requires it)

Here are a few logs:

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3260/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3260/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/5253/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/5227/steps/11/logs/stdio

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends
  2022-05-16  8:45 ` [OE-core] " Luca Ceresoli
@ 2022-05-17  8:16   ` mingli.yu
  2022-05-17  8:16     ` [PATCH 2/7] python3-pytest-benchmark: move from meta-python mingli.yu
                       ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: mingli.yu @ 2022-05-17  8:16 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

The new version introduced below change, so add python3-pytest-benchmark
to rdepends to fix the gap.
496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)

Fixes:
  # ./run-ptest
  Free memory: 31.283 GB
  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
  pytest: error: unrecognized arguments: --benchmark-disable
  inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
  rootdir: /usr/lib/python3-cryptography/ptest

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-devtools/python/python3-cryptography_37.0.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
index 1271954a08..78faea5e22 100644
--- a/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
@@ -92,6 +92,7 @@ RDEPENDS:${PN}-ptest += " \
     ${PYTHON_PN}-pretend \
     ${PYTHON_PN}-psutil \
     ${PYTHON_PN}-pytest \
+    ${PYTHON_PN}-pytest-benchmark \
     ${PYTHON_PN}-pytest-subtests \
     ${PYTHON_PN}-pytz \
     ${PYTHON_PN}-tomli \
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 2/7] python3-pytest-benchmark: move from meta-python
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
@ 2022-05-17  8:16     ` mingli.yu
  2022-05-17  8:16     ` [PATCH 3/7] python3-aspectlib: " mingli.yu
                       ` (5 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: mingli.yu @ 2022-05-17  8:16 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

A pytest fixture for benchmarking code. It will group the tests
into rounds that are calibrated to the chosen timer.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../python/python3-pytest-benchmark_3.4.1.bb      | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pytest-benchmark_3.4.1.bb

diff --git a/meta/recipes-devtools/python/python3-pytest-benchmark_3.4.1.bb b/meta/recipes-devtools/python/python3-pytest-benchmark_3.4.1.bb
new file mode 100644
index 0000000000..bde9935ffe
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pytest-benchmark_3.4.1.bb
@@ -0,0 +1,15 @@
+# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "A ``pytest`` fixture for benchmarking code. It will group the tests into rounds that are calibrated to the chosen timer."
+HOMEPAGE = "https://github.com/ionelmc/pytest-benchmark"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=9c5c2c74370826468065c5702b8a1fcf"
+
+SRC_URI[sha256sum] = "40e263f912de5a81d891619032983557d62a3d85843f9a9f30b98baea0cd7b47"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core python3-py-cpuinfo python3-pytest python3-aspectlib"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 3/7] python3-aspectlib: move from meta-python
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
  2022-05-17  8:16     ` [PATCH 2/7] python3-pytest-benchmark: move from meta-python mingli.yu
@ 2022-05-17  8:16     ` mingli.yu
  2022-05-17  8:16     ` [PATCH 4/7] python3-py-cpuinfo: " mingli.yu
                       ` (4 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: mingli.yu @ 2022-05-17  8:16 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

aspectlib is an aspect-oriented programming, monkey-patch and
decorators library. It is useful when changing behavior in
existing code is desired. It includes tools for debugging and
testing: simple mock/record and a complete capture/replay
framework.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 ...ve-tornado-6-test-constraint.-Ref-15.patch | 45 +++++++++++++++++++
 .../python/python3-aspectlib/run-ptest        |  3 ++
 .../python/python3-aspectlib_1.5.2.bb         | 29 ++++++++++++
 3 files changed, 77 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-aspectlib/0001-Remove-tornado-6-test-constraint.-Ref-15.patch
 create mode 100644 meta/recipes-devtools/python/python3-aspectlib/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-aspectlib_1.5.2.bb

diff --git a/meta/recipes-devtools/python/python3-aspectlib/0001-Remove-tornado-6-test-constraint.-Ref-15.patch b/meta/recipes-devtools/python/python3-aspectlib/0001-Remove-tornado-6-test-constraint.-Ref-15.patch
new file mode 100644
index 0000000000..174f088e9e
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-aspectlib/0001-Remove-tornado-6-test-constraint.-Ref-15.patch
@@ -0,0 +1,45 @@
+From d3ae6ac951cc5bbce29b9c987741e0a557c9b777 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= <contact@ionelmc.ro>
+Date: Sun, 2 May 2021 09:50:43 +0300
+Subject: [PATCH] Remove tornado<6 test constraint. Ref #15.
+
+Upstream-Status: Backport [https://github.com/ionelmc/python-aspectlib/commit/7dccb198dfb426f529b81a28a755f3c02f8b50cb]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ tests/test_integrations_py3.py | 5 ++++-
+ tox.ini                        | 3 ++-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_integrations_py3.py b/tests/test_integrations_py3.py
+index e025eac..596589d 100644
+--- a/tests/test_integrations_py3.py
++++ b/tests/test_integrations_py3.py
+@@ -36,7 +36,10 @@ def test_decorate_tornado_coroutine():
+     @gen.coroutine
+     @debug.log(print_to=buf, module=False, stacktrace=2, result_repr=repr)
+     def coro():
+-        yield gen.Task(loop.add_timeout, timedelta(microseconds=10))
++        if hasattr(gen, 'Task'):
++            yield gen.Task(loop.add_timeout, timedelta(microseconds=10))
++        else:
++            yield gen.sleep(0.01)
+         return "result"
+ 
+     loop = ioloop.IOLoop.current()
+diff --git a/tox.ini b/tox.ini
+index 8c607de..08c31b3 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -55,7 +55,8 @@ deps =
+     pytest-clarity
+     pytest-cov
+     pytest-travis-fold
+-    tornado<6.0
++    six
++    tornado
+ commands =
+     {posargs:pytest --cov --cov-report=term-missing -vv --ignore=src}
+ 
+-- 
+2.32.0
+
diff --git a/meta/recipes-devtools/python/python3-aspectlib/run-ptest b/meta/recipes-devtools/python/python3-aspectlib/run-ptest
new file mode 100644
index 0000000000..b63c4de0d9
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-aspectlib/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta/recipes-devtools/python/python3-aspectlib_1.5.2.bb b/meta/recipes-devtools/python/python3-aspectlib_1.5.2.bb
new file mode 100644
index 0000000000..0cbeca21c7
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-aspectlib_1.5.2.bb
@@ -0,0 +1,29 @@
+# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "``aspectlib`` is an aspect-oriented programming, monkey-patch and decorators library. It is useful when changing"
+HOMEPAGE = "https://github.com/ionelmc/python-aspectlib"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d58b3f20fd10347a9458b8a03793b62e"
+
+SRC_URI[sha256sum] = "d275ec82c4c2712e564bb760e4accff8f061f648e38774feabeb8b241cf3a4aa"
+
+inherit ptest pypi setuptools3
+
+SRC_URI += "file://run-ptest \
+            file://0001-Remove-tornado-6-test-constraint.-Ref-15.patch \
+           "
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+RDEPENDS:${PN}-ptest += "\
+    python3-tornado \
+    python3-process-tests \
+"
+
+RDEPENDS:${PN} += "python3-core python3-fields"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 4/7] python3-py-cpuinfo: move from meta-python
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
  2022-05-17  8:16     ` [PATCH 2/7] python3-pytest-benchmark: move from meta-python mingli.yu
  2022-05-17  8:16     ` [PATCH 3/7] python3-aspectlib: " mingli.yu
@ 2022-05-17  8:16     ` mingli.yu
  2022-05-17  8:16     ` [PATCH 5/7] python3-fields: " mingli.yu
                       ` (3 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: mingli.yu @ 2022-05-17  8:16 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should
work without any extra programs or libraries, beyond what your
OS provides. It does not require any compilation(C/C++, assembly,
et cetera) to use. It works with Python 2 and 3.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../python/python3-py-cpuinfo/run-ptest       |  3 +++
 .../python/python3-py-cpuinfo_8.0.0.bb        | 27 +++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-py-cpuinfo/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-py-cpuinfo_8.0.0.bb

diff --git a/meta/recipes-devtools/python/python3-py-cpuinfo/run-ptest b/meta/recipes-devtools/python/python3-py-cpuinfo/run-ptest
new file mode 100644
index 0000000000..b63c4de0d9
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-py-cpuinfo/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta/recipes-devtools/python/python3-py-cpuinfo_8.0.0.bb b/meta/recipes-devtools/python/python3-py-cpuinfo_8.0.0.bb
new file mode 100644
index 0000000000..6de2f17459
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-py-cpuinfo_8.0.0.bb
@@ -0,0 +1,27 @@
+# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Get CPU info with pure Python 2 & 3"
+HOMEPAGE = "https://github.com/workhorsy/py-cpuinfo"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b0b97c022f12b14d9e02de0b283ee9e9"
+
+SRC_URI[sha256sum] = "5f269be0e08e33fd959de96b34cd4aeeeacac014dd8305f70eb28d06de2345c5"
+
+inherit ptest pypi setuptools3
+
+SRC_URI += "file://run-ptest \
+           "
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+RDEPENDS:${PN}-ptest += "\
+    python3-pytest \
+"
+
+RDEPENDS:${PN} += "python3-core python3-ctypes python3-datetime python3-json python3-io python3-mmap python3-multiprocessing python3-netclient python3-pickle python3-pprint python3-shell"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 5/7] python3-fields: move from meta-python
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
                       ` (2 preceding siblings ...)
  2022-05-17  8:16     ` [PATCH 4/7] python3-py-cpuinfo: " mingli.yu
@ 2022-05-17  8:16     ` mingli.yu
  2022-05-17  8:16     ` [PATCH 6/7] python3-process-tests: " mingli.yu
                       ` (2 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: mingli.yu @ 2022-05-17  8:16 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

Container class boilerplate killer.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../python/python3-fields_5.0.0.bb                | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-fields_5.0.0.bb

diff --git a/meta/recipes-devtools/python/python3-fields_5.0.0.bb b/meta/recipes-devtools/python/python3-fields_5.0.0.bb
new file mode 100644
index 0000000000..c1dfe0a377
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-fields_5.0.0.bb
@@ -0,0 +1,15 @@
+# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Container class boilerplate killer."
+HOMEPAGE = "https://github.com/ionelmc/python-fields"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e32c6705498713d9c904a9f565953a2c"
+
+SRC_URI[sha256sum] = "31d4aa03d8d44e35df13c431de35136997f047a924a597d84f7bc209e1be5727"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 6/7] python3-process-tests: move from meta-python
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
                       ` (3 preceding siblings ...)
  2022-05-17  8:16     ` [PATCH 5/7] python3-fields: " mingli.yu
@ 2022-05-17  8:16     ` mingli.yu
  2022-05-17  8:16     ` [PATCH 7/7] python3-tornad: " mingli.yu
  2022-05-17  8:40     ` [OE-core] [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends richard.purdie
  6 siblings, 0 replies; 15+ messages in thread
From: mingli.yu @ 2022-05-17  8:16 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../python/python3-process-tests_2.1.2.bb         | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-process-tests_2.1.2.bb

diff --git a/meta/recipes-devtools/python/python3-process-tests_2.1.2.bb b/meta/recipes-devtools/python/python3-process-tests_2.1.2.bb
new file mode 100644
index 0000000000..24ab0399f9
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-process-tests_2.1.2.bb
@@ -0,0 +1,15 @@
+# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Tools for testing processes."
+HOMEPAGE = "https://github.com/ionelmc/python-process-tests"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=37031056aff37e4b3310872a9a3d0b1e"
+
+SRC_URI[sha256sum] = "a3747ad947bdfc93e5c986bdb17a6d718f3f26e8577a0807a00962f29e26deba"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 7/7] python3-tornad: move from meta-python
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
                       ` (4 preceding siblings ...)
  2022-05-17  8:16     ` [PATCH 6/7] python3-process-tests: " mingli.yu
@ 2022-05-17  8:16     ` mingli.yu
  2022-05-17 15:33       ` [OE-core] " Khem Raj
  2022-05-17  8:40     ` [OE-core] [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends richard.purdie
  6 siblings, 1 reply; 15+ messages in thread
From: mingli.yu @ 2022-05-17  8:16 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

Tornado is a Python web framework and asynchronous networking
library, originally developed at FriendFeed.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../python/python3-tornado_6.1.bb             | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-tornado_6.1.bb

diff --git a/meta/recipes-devtools/python/python3-tornado_6.1.bb b/meta/recipes-devtools/python/python3-tornado_6.1.bb
new file mode 100644
index 0000000000..1dedc51029
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-tornado_6.1.bb
@@ -0,0 +1,28 @@
+SUMMARY  = "Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
+DESCRIPTION = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. \
+By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long \
+polling, WebSockets, and other applications that require a long-lived connection to each user."
+HOMEPAGE = "http://www.tornadoweb.org/en/stable/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI[md5sum] = "f324f5e7607798552359d6ab054c4321"
+SRC_URI[sha256sum] = "33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791"
+
+inherit pypi setuptools3
+
+# Requires _compression which is currently located in misc
+RDEPENDS:${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-numbers ${PYTHON_PN}-email \
+                   ${PYTHON_PN}-pkgutil ${PYTHON_PN}-html ${PYTHON_PN}-json ${PYTHON_PN}-certifi ${PYTHON_PN}-threading \
+                   ${PYTHON_PN}-ctypes ${PYTHON_PN}-misc"
+
+RDEPENDS:${PN}-test += "${PN} ${PYTHON_PN}-unittest"
+
+PACKAGES =+ "\
+    ${PN}-test \
+"
+
+FILES:${PN}-test = " \
+    ${libdir}/${PYTHON_DIR}/site-packages/*/test \
+    ${libdir}/${PYTHON_DIR}/site-packages/*/testing.py* \
+"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [OE-core] [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends
  2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
                       ` (5 preceding siblings ...)
  2022-05-17  8:16     ` [PATCH 7/7] python3-tornad: " mingli.yu
@ 2022-05-17  8:40     ` richard.purdie
  2022-05-17 10:22       ` [PATCH v3] python3-cryptography: remove --benchmark-disable option mingli.yu
  2022-06-08  9:31       ` mingli.yu
  6 siblings, 2 replies; 15+ messages in thread
From: richard.purdie @ 2022-05-17  8:40 UTC (permalink / raw)
  To: Yu, Mingli, openembedded-core, luca.ceresoli

On Tue, 2022-05-17 at 16:16 +0800, Yu, Mingli wrote:
> From: Mingli Yu <mingli.yu@windriver.com>
> 
> The new version introduced below change, so add python3-pytest-benchmark
> to rdepends to fix the gap.
> 496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)
> 
> Fixes:
>   # ./run-ptest
>   Free memory: 31.283 GB
>   ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
>   pytest: error: unrecognized arguments: --benchmark-disable
>   inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
>   rootdir: /usr/lib/python3-cryptography/ptest

It sounds like we're disabling the benchmarks anyway? :/

Can we not avoid the dependencies some other way?

The patch series as it stands won't build cleanly as there is no
maintainers entry for the new recipes.

Cheers,

Richard





^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v3] python3-cryptography: remove --benchmark-disable option
  2022-05-17  8:40     ` [OE-core] [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends richard.purdie
@ 2022-05-17 10:22       ` mingli.yu
  2022-06-08  9:31       ` mingli.yu
  1 sibling, 0 replies; 15+ messages in thread
From: mingli.yu @ 2022-05-17 10:22 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

From: Mingli Yu <mingli.yu@windriver.com>

The new version introduced below change, so remove the option
to avoid python3-pytest-benchmark rdepends to fix the gap.
496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)

Fixes:
  # ./run-ptest
  Free memory: 31.283 GB
  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
  pytest: error: unrecognized arguments: --benchmark-disable
  inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
  rootdir: /usr/lib/python3-cryptography/ptest

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 ...toml-remove-benchmark-disable-option.patch | 40 +++++++++++++++++++
 .../python/python3-cryptography_37.0.1.bb     |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch

diff --git a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch b/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
new file mode 100644
index 0000000000..481f595246
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
@@ -0,0 +1,40 @@
+From ce972ea92d724f232323a9a6265a8b44d913d4d8 Mon Sep 17 00:00:00 2001
+From: Mingli Yu <mingli.yu@windriver.com>
+Date: Tue, 17 May 2022 17:22:48 +0800
+Subject: [PATCH] pyproject.toml: remove --benchmark-disable option
+
+The new version introduced below change, so remove the option
+to avoid python3-pytest-benchmark rdepends to fix the gap.
+496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)
+
+Fixes:
+  # ./run-ptest
+  Free memory: 31.283 GB
+  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
+  pytest: error: unrecognized arguments: --benchmark-disable
+  inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
+  rootdir: /usr/lib/python3-cryptography/ptest
+
+Upstream-Status: Inappropriate [OE specific]
+
+Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 4d58129..b011fca 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -15,7 +15,7 @@ line-length = 79
+ target-version = ["py36"]
+ 
+ [tool.pytest.ini_options]
+-addopts = "-r s --capture=no --strict-markers --benchmark-disable"
++addopts = "-r s --capture=no --strict-markers"
+ markers = [
+     "skip_fips: this test is not executed in FIPS mode",
+     "supported: parametrized test requiring only_if and skip_message",
+-- 
+2.25.1
+
diff --git a/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
index 1271954a08..191ea29b9c 100644
--- a/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
@@ -15,6 +15,7 @@ SRC_URI += "file://run-ptest \
            file://check-memfree.py \
            file://0001-Cargo.toml-specify-pem-version.patch \
            file://0002-Cargo.toml-edition-2018-2021.patch \
+           file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
            crate://crates.io/Inflector/0.11.4 \
            crate://crates.io/aliasable/0.1.3 \
            crate://crates.io/asn1/0.8.7 \
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [OE-core] [PATCH 7/7] python3-tornad: move from meta-python
  2022-05-17  8:16     ` [PATCH 7/7] python3-tornad: " mingli.yu
@ 2022-05-17 15:33       ` Khem Raj
  0 siblings, 0 replies; 15+ messages in thread
From: Khem Raj @ 2022-05-17 15:33 UTC (permalink / raw)
  To: Yu, Mingli; +Cc: Patches and discussions about the oe-core layer, Luca Ceresoli

don't forget to send a patch to delete it from meta-python once merged
into core.

On Tue, May 17, 2022 at 1:16 AM Yu, Mingli <mingli.yu@windriver.com> wrote:
>
> From: Mingli Yu <mingli.yu@windriver.com>
>
> Tornado is a Python web framework and asynchronous networking
> library, originally developed at FriendFeed.
>
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ---
>  .../python/python3-tornado_6.1.bb             | 28 +++++++++++++++++++
>  1 file changed, 28 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/python3-tornado_6.1.bb
>
> diff --git a/meta/recipes-devtools/python/python3-tornado_6.1.bb b/meta/recipes-devtools/python/python3-tornado_6.1.bb
> new file mode 100644
> index 0000000000..1dedc51029
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-tornado_6.1.bb
> @@ -0,0 +1,28 @@
> +SUMMARY  = "Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
> +DESCRIPTION = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. \
> +By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long \
> +polling, WebSockets, and other applications that require a long-lived connection to each user."
> +HOMEPAGE = "http://www.tornadoweb.org/en/stable/"
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> +
> +SRC_URI[md5sum] = "f324f5e7607798552359d6ab054c4321"
> +SRC_URI[sha256sum] = "33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791"
> +
> +inherit pypi setuptools3
> +
> +# Requires _compression which is currently located in misc
> +RDEPENDS:${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-numbers ${PYTHON_PN}-email \
> +                   ${PYTHON_PN}-pkgutil ${PYTHON_PN}-html ${PYTHON_PN}-json ${PYTHON_PN}-certifi ${PYTHON_PN}-threading \
> +                   ${PYTHON_PN}-ctypes ${PYTHON_PN}-misc"
> +
> +RDEPENDS:${PN}-test += "${PN} ${PYTHON_PN}-unittest"
> +
> +PACKAGES =+ "\
> +    ${PN}-test \
> +"
> +
> +FILES:${PN}-test = " \
> +    ${libdir}/${PYTHON_DIR}/site-packages/*/test \
> +    ${libdir}/${PYTHON_DIR}/site-packages/*/testing.py* \
> +"
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#165718): https://lists.openembedded.org/g/openembedded-core/message/165718
> Mute This Topic: https://lists.openembedded.org/mt/91159238/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v3] python3-cryptography: remove --benchmark-disable option
  2022-05-17  8:40     ` [OE-core] [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends richard.purdie
  2022-05-17 10:22       ` [PATCH v3] python3-cryptography: remove --benchmark-disable option mingli.yu
@ 2022-06-08  9:31       ` mingli.yu
  2022-06-09  7:06         ` [OE-core] " Luca Ceresoli
  1 sibling, 1 reply; 15+ messages in thread
From: mingli.yu @ 2022-06-08  9:31 UTC (permalink / raw)
  To: openembedded-core

From: Mingli Yu <mingli.yu@windriver.com>

The new version introduced below change, so remove the option
to avoid python3-pytest-benchmark rdepends to fix the gap.
496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)

Fixes:
  # ./run-ptest
  Free memory: 31.283 GB
  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
  pytest: error: unrecognized arguments: --benchmark-disable
  inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
  rootdir: /usr/lib/python3-cryptography/ptest

Remove the case test_x509.py to avoid below failure:
 file /usr/lib64/python3-cryptography/ptest/tests/bench/test_x509.py, line 9
  def test_aki_public_bytes(benchmark):
 >       fixture 'benchmark' not found
 >       available fixtures: backend, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, disable_rsa_checks, doctesty
 >       use 'pytest --fixtures [testpath]' for help on them.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-devtools/python/python3-cryptography_37.0.2.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb b/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
index d7a720bf2b..470cf4388c 100644
--- a/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
@@ -104,6 +104,9 @@ do_install_ptest() {
     install -D ${WORKDIR}/check-memfree.py ${D}${PTEST_PATH}/
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    # remove test_x509.py as it needs benchmark and we don't
+    # want to introduce the benchmark dependency
+    rm -rf ${D}${PTEST_PATH}/tests/bench/test_x509.py
     install -d ${D}${PTEST_PATH}/tests/hazmat
     cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
     cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [OE-core] [PATCH v3] python3-cryptography: remove --benchmark-disable option
  2022-06-08  9:31       ` mingli.yu
@ 2022-06-09  7:06         ` Luca Ceresoli
  2022-06-13  7:30           ` [PATCH v4] python3-cryptography: remove test_x509.py mingli.yu
  0 siblings, 1 reply; 15+ messages in thread
From: Luca Ceresoli @ 2022-06-09  7:06 UTC (permalink / raw)
  To: Yu, Mingli; +Cc: openembedded-core

Hi,

On Wed, 8 Jun 2022 17:31:20 +0800
"Yu, Mingli" <mingli.yu@windriver.com> wrote:

> From: Mingli Yu <mingli.yu@windriver.com>
> 
> The new version introduced below change, so remove the option
> to avoid python3-pytest-benchmark rdepends to fix the gap.
> 496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087)
> 
> Fixes:
>   # ./run-ptest
>   Free memory: 31.283 GB
>   ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
>   pytest: error: unrecognized arguments: --benchmark-disable
>   inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml
>   rootdir: /usr/lib/python3-cryptography/ptest
> 
> Remove the case test_x509.py to avoid below failure:
>  file /usr/lib64/python3-cryptography/ptest/tests/bench/test_x509.py, line 9
>   def test_aki_public_bytes(benchmark):
>  >       fixture 'benchmark' not found
>  >       available fixtures: backend, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, disable_rsa_checks, doctesty
>  >       use 'pytest --fixtures [testpath]' for help on them.  
> 
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>

I currently see all patches at v1, and a patch has one v2 and two v3s.
This is confusing and chances are whatever I take for testing will be
wrong.

Could you please send the entire series as v4, updated at the
current state of the art and with all the changes discussed in previous
replies?

Thanks!
-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v4] python3-cryptography: remove test_x509.py
  2022-06-09  7:06         ` [OE-core] " Luca Ceresoli
@ 2022-06-13  7:30           ` mingli.yu
  0 siblings, 0 replies; 15+ messages in thread
From: mingli.yu @ 2022-06-13  7:30 UTC (permalink / raw)
  To: openembedded-core, luca.ceresoli

From: Mingli Yu <mingli.yu@windriver.com>

We already have removed --benchmark-disable option to avoid
adding python3-pytest-benchmark rdepends.

Also remove the case test_x509.py which needs benchmark feature
to avoid below failure:
 file /usr/lib64/python3-cryptography/ptest/tests/bench/test_x509.py, line 9
  def test_aki_public_bytes(benchmark):
 >       fixture 'benchmark' not found
 >       available fixtures: backend, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, disable_rsa_checks, doctesty
 >       use 'pytest --fixtures [testpath]' for help on them.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-devtools/python/python3-cryptography_37.0.2.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb b/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
index d7a720bf2b..470cf4388c 100644
--- a/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
@@ -104,6 +104,9 @@ do_install_ptest() {
     install -D ${WORKDIR}/check-memfree.py ${D}${PTEST_PATH}/
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    # remove test_x509.py as it needs benchmark and we don't
+    # want to introduce the benchmark dependency
+    rm -rf ${D}${PTEST_PATH}/tests/bench/test_x509.py
     install -d ${D}${PTEST_PATH}/tests/hazmat
     cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
     cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-06-13  7:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-14  2:13 [PATCH] python3-cryptography: add python3-pytest-benchmark rdepends mingli.yu
2022-05-16  8:45 ` [OE-core] " Luca Ceresoli
2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
2022-05-17  8:16     ` [PATCH 2/7] python3-pytest-benchmark: move from meta-python mingli.yu
2022-05-17  8:16     ` [PATCH 3/7] python3-aspectlib: " mingli.yu
2022-05-17  8:16     ` [PATCH 4/7] python3-py-cpuinfo: " mingli.yu
2022-05-17  8:16     ` [PATCH 5/7] python3-fields: " mingli.yu
2022-05-17  8:16     ` [PATCH 6/7] python3-process-tests: " mingli.yu
2022-05-17  8:16     ` [PATCH 7/7] python3-tornad: " mingli.yu
2022-05-17 15:33       ` [OE-core] " Khem Raj
2022-05-17  8:40     ` [OE-core] [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends richard.purdie
2022-05-17 10:22       ` [PATCH v3] python3-cryptography: remove --benchmark-disable option mingli.yu
2022-06-08  9:31       ` mingli.yu
2022-06-09  7:06         ` [OE-core] " Luca Ceresoli
2022-06-13  7:30           ` [PATCH v4] python3-cryptography: remove test_x509.py mingli.yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.