python3-cryptography: add python3-pytest-benchmark rdepends
PATCH 1/1 python3-cryptography: add python3-pytest-benchmark rdepends
From: Mingli Yu <[email protected]>
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
--- meta/recipes-devtools/python/python3-cryptography_37.0.1.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-cryptography_37.0.1.bb +1 -0
@@ -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 \
Signature · 1 line
2.25.1
Hi Yu,
Il giorno Sat, 14 May 2022 10:13:15 +0800 "Yu, Mingli" <[email protected]> ha scritto:
Quoted 7 lines
From: Mingli Yu <[email protected]>
The new version introduced below change, so add python3-pytest-benchmark to rdepends to fix the gap.
496703c8Refs #7079 -- added basic scaffholding for benchmarks (#7087)Fixes:
Quoted 8 lines
# ./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/ptestSigned-off-by Mingli Yu <[email protected]>
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
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 1/7 python3-cryptography: add python3-pytest-benchmark rdepends
From: Mingli Yu <[email protected]>
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
--- meta/recipes-devtools/python/python3-cryptography_37.0.1.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-cryptography_37.0.1.bb +1 -0
@@ -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 \
Signature · 1 line
2.25.1
PATCH 2/7 python3-pytest-benchmark: move from meta-python
From: Mingli Yu <[email protected]>
A pytest fixture for benchmarking code. It will group the tests into rounds that are calibrated to the chosen timer.
--- .../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
meta/recipes-devtools/python/python3-pytest-benchmark_3.4.1.bb new file +15 -0
@@ -0,0 +1,15 @@ +# Copyright (C) 2021 Khem Raj <[email protected]> +# 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"
Signature · 1 line
2.25.1
PATCH 3/7 python3-aspectlib: move from meta-python
In reply to [email protected]From: Mingli Yu <[email protected]>
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.
--- ...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
meta/recipes-devtools/python/python3-aspectlib/0001-Remove-tornado-6-test-constraint.-Ref-15.patch new file +45 -0
@@ -0,0 +1,45 @@ +From d3ae6ac951cc5bbce29b9c987741e0a557c9b777 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-devtools/python/python3-aspectlib/run-ptest new file +3 -0
@@ -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}}'
meta/recipes-devtools/python/python3-aspectlib_1.5.2.bb new file +29 -0
@@ -0,0 +1,29 @@ +# Copyright (C) 2021 Khem Raj <[email protected]> +# 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"
Signature · 1 line
2.25.1
PATCH 4/7 python3-py-cpuinfo: move from meta-python
In reply to [email protected]From: Mingli Yu <[email protected]>
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.
--- .../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
meta/recipes-devtools/python/python3-py-cpuinfo/run-ptest new file +3 -0
@@ -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}}'
meta/recipes-devtools/python/python3-py-cpuinfo_8.0.0.bb new file +27 -0
@@ -0,0 +1,27 @@ +# Copyright (C) 2021 Khem Raj <[email protected]> +# 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"
Signature · 1 line
2.25.1
PATCH 5/7 python3-fields: move from meta-python
In reply to [email protected]From: Mingli Yu <[email protected]>
Container class boilerplate killer.
--- .../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
meta/recipes-devtools/python/python3-fields_5.0.0.bb new file +15 -0
@@ -0,0 +1,15 @@ +# Copyright (C) 2021 Khem Raj <[email protected]> +# 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"
Signature · 1 line
2.25.1
PATCH 6/7 python3-process-tests: move from meta-python
In reply to [email protected]From: Mingli Yu <[email protected]>
--- .../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
meta/recipes-devtools/python/python3-process-tests_2.1.2.bb new file +15 -0
@@ -0,0 +1,15 @@ +# Copyright (C) 2021 Khem Raj <[email protected]> +# 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"
Signature · 1 line
2.25.1
PATCH 7/7 python3-tornad: move from meta-python
In reply to [email protected]From: Mingli Yu <[email protected]>
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
--- .../python/python3-tornado_6.1.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-tornado_6.1.bb
meta/recipes-devtools/python/python3-tornado_6.1.bb new file +28 -0
@@ -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* \ +"
Signature · 1 line
2.25.1
Re: [OE-core] [PATCH 7/7] python3-tornad: move from meta-python
don't forget to send a patch to delete it from meta-python once merged into core.
Quoted 58 lines · Mingli
From: Mingli Yu <[email protected]>
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Signed-off-by Mingli Yu <[email protected]>--- .../python/python3-tornado_6.1.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-tornado_6.1.bbmeta/recipes-devtools/python/python3-tornado_6.1.bb new file +28
-1@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 6 lines · Mingli
From: Mingli Yu <[email protected]>
The new version introduced below change, so add python3-pytest-benchmark to rdepends to fix the gap.
496703c8Refs #7079 -- added basic scaffholding for benchmarks (#7087)
Quoted 7 lines
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
PATCH v3 1/1 python3-cryptography: remove --benchmark-disable option
From: Mingli Yu <[email protected]>
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
--- ...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
meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch new file +40 -0
@@ -0,0 +1,40 @@ +From ce972ea92d724f232323a9a6265a8b44d913d4d8 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-devtools/python/python3-cryptography_37.0.1.bb +1 -0
@@ -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 \
Signature · 1 line
2.25.1
PATCH v3 1/1 python3-cryptography: remove --benchmark-disable option
In reply to [email protected]From: Mingli Yu <[email protected]>
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):
Quoted 3 lines
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.
--- meta/recipes-devtools/python/python3-cryptography_37.0.2.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-devtools/python/python3-cryptography_37.0.2.bb +3 -0
@@ -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}/
Signature · 1 line
2.25.1
Re: [OE-core] [PATCH v3] python3-cryptography: remove --benchmark-disable option
Hi,
Quoted 14 lines · Mingli
From: Mingli Yu <[email protected]>
The new version introduced below change, so remove the option to avoid python3-pytest-benchmark rdepends to fix the gap.
496703c8Refs #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
Quoted 8 lines
Remove the case
test_x509.pyto avoid below failure:
file/usr/lib64/python3-cryptography/ptest/tests/bench/test_x509.py, line 9
deftest_aki_public_bytes(benchmark):Quoted 3 lines
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 <[email protected]>
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!
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v4 1/1 python3-cryptography: remove test_x509.py
From: Mingli Yu <[email protected]>
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):
Quoted 3 lines
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.
--- meta/recipes-devtools/python/python3-cryptography_37.0.2.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-devtools/python/python3-cryptography_37.0.2.bb +3 -0
@@ -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}/
Signature · 1 line
2.25.1