[v2,1/7] python3-cryptography: add python3-pytest-benchmark rdepends

Message ID 20220517081633.2992360-1-mingli.yu@windriver.com
State New
Headers show
Series [v2,1/7] python3-cryptography: add python3-pytest-benchmark rdepends | expand

Commit Message

Yu, Mingli May 17, 2022, 8:16 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

Richard Purdie May 17, 2022, 8:40 a.m. UTC | #1
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

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 \