diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-cryptography')
3 files changed, 0 insertions, 59 deletions
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 deleted file mode 100644 index 16681e80a8..0000000000 --- a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | From b033cd32813a104fb216135cdca7da7180912e56 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
| 3 | Date: Tue, 17 May 2022 17:22:48 +0800 | ||
| 4 | Subject: [PATCH] pyproject.toml: remove --benchmark-disable option | ||
| 5 | |||
| 6 | The new version introduced below change, so remove the option | ||
| 7 | to avoid python3-pytest-benchmark rdepends to fix the gap. | ||
| 8 | 496703c8 Refs #7079 -- added basic scaffholding for benchmarks (#7087) | ||
| 9 | |||
| 10 | Fixes: | ||
| 11 | # ./run-ptest | ||
| 12 | Free memory: 31.283 GB | ||
| 13 | ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] | ||
| 14 | pytest: error: unrecognized arguments: --benchmark-disable | ||
| 15 | inifile: /usr/lib/python3-cryptography/ptest/pyproject.toml | ||
| 16 | rootdir: /usr/lib/python3-cryptography/ptest | ||
| 17 | |||
| 18 | Upstream-Status: Inappropriate [OE specific] | ||
| 19 | |||
| 20 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 21 | |||
| 22 | Refresh for 42.02 | ||
| 23 | Signed-off-by: Tim Orling <tim.orling@konsulko.com> | ||
| 24 | --- | ||
| 25 | pyproject.toml | 2 +- | ||
| 26 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 27 | |||
| 28 | diff --git a/pyproject.toml b/pyproject.toml | ||
| 29 | index 4746201..df98351 100644 | ||
| 30 | --- a/pyproject.toml | ||
| 31 | +++ b/pyproject.toml | ||
| 32 | @@ -129,7 +129,7 @@ exclude = [ | ||
| 33 | ] | ||
| 34 | |||
| 35 | [tool.pytest.ini_options] | ||
| 36 | -addopts = "-r s --capture=no --strict-markers --benchmark-disable" | ||
| 37 | +addopts = "-r s --capture=no --strict-markers" | ||
| 38 | console_output_style = "progress-even-when-capture-no" | ||
| 39 | markers = [ | ||
| 40 | "skip_fips: this test is not executed in FIPS mode", | ||
diff --git a/meta/recipes-devtools/python/python3-cryptography/check-memfree.py b/meta/recipes-devtools/python/python3-cryptography/check-memfree.py deleted file mode 100755 index ed680d8d5b..0000000000 --- a/meta/recipes-devtools/python/python3-cryptography/check-memfree.py +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | #!/usr/bin/env python3 | ||
| 2 | # https://stackoverflow.com/questions/22102999/get-total-physical-memory-in-python/28161352 | ||
| 3 | import sys | ||
| 4 | meminfo = dict((i.split()[0].rstrip(':'),int(i.split()[1])) for i in open('/proc/meminfo').readlines()) | ||
| 5 | mem_free = meminfo['MemTotal']/1024./1024. | ||
| 6 | if mem_free < 2.: | ||
| 7 | print("Insufficient free memory({:.3f}): requires > 2 GB".format(mem_free)) | ||
| 8 | sys.exit(1) | ||
| 9 | else: | ||
| 10 | print("Free memory: {:.3f} GB".format(mem_free)) | ||
diff --git a/meta/recipes-devtools/python/python3-cryptography/run-ptest b/meta/recipes-devtools/python/python3-cryptography/run-ptest deleted file mode 100644 index fe191a5dc4..0000000000 --- a/meta/recipes-devtools/python/python3-cryptography/run-ptest +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if ./check-memfree.py; then | ||
| 4 | # Skip the bench test module, we don't yet have pytest3-benchmark in core | ||
| 5 | # and these are more benchmarks than unit tests. | ||
| 6 | pytest --automake -k 'not bench' | ||
| 7 | else | ||
| 8 | echo "SKIP: crytography.not_enough_memory" | ||
| 9 | fi | ||
