From c6f79207f8183eb3ec366dff39df070563e0e6e2 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Sat, 12 Mar 2022 12:53:54 -0800 Subject: python3-cryptography: move from meta-python * inherit new setuptools_rust class (which inherits new pyo3 class, which inherits cargo and python3-dir). * RDEPENDS on python3-pytest-subtests for ptest * Copy pyproject.toml for ptest as it defines the pytest.marker(s) needed * Use 'cargo bitbake' to generate the crate:// SRC_URIs - Needed some hacks to the Cargo.toml in src/rust/ to make this work (probably only package.repository was strictly required): [package] description = "cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, message digests, and key derivation functions." homepage = "https://github.com/pyca/cryptography" repository = "https://github.com/pyca/cryptography" * Add patches to src/rust/Cargo.toml to fix cargo errors including pem version * Add check-memfree.py to ptest to check for sufficient free memory (From OE-Core rev: 27bd134c899d00d93806ecb0a62ec3f30b1e6ec6) Signed-off-by: Tim Orling Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python3-cryptography/run-ptest | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-cryptography/run-ptest (limited to 'meta/recipes-devtools/python/python3-cryptography/run-ptest') diff --git a/meta/recipes-devtools/python/python3-cryptography/run-ptest b/meta/recipes-devtools/python/python3-cryptography/run-ptest new file mode 100644 index 0000000000..1e97dda63e --- /dev/null +++ b/meta/recipes-devtools/python/python3-cryptography/run-ptest @@ -0,0 +1,4 @@ +#!/bin/sh +if ./check-memfree.py; then + pytest -vvvv tests/ +fi -- cgit v1.2.3-54-g00ecf