python3-cryptography: add python3-pytest-benchmark rdepends

Message ID 20220514021315.308344-1-mingli.yu@windriver.com
State New
Headers show
Series python3-cryptography: add python3-pytest-benchmark rdepends | expand

Commit Message

Yu, Mingli May 14, 2022, 2:13 a.m. UTC
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(+)

Comments

Luca Ceresoli May 16, 2022, 8:45 a.m. UTC | #1
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

Patch

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 \