]> code.ossystems Code Review - openembedded-core.git/commit
python3-cryptography: move from meta-python
authorTim Orling <tim.orling@konsulko.com>
Sat, 12 Mar 2022 20:53:54 +0000 (12:53 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Mar 2022 08:40:11 +0000 (08:40 +0000)
commit180fceb365d4006fb27b2803821fb99f2ba4a0d8
tree98ea600463ee9a9b4648504a19e454f036765ae6
parent1ab888b37716cf7aa25bc432c1d069b19566875d
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

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
meta/recipes-devtools/python/python3-cryptography/0001-Cargo.toml-specify-pem-version.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3-cryptography/check-memfree.py [new file with mode: 0755]
meta/recipes-devtools/python/python3-cryptography/run-ptest [new file with mode: 0644]
meta/recipes-devtools/python/python3-cryptography_36.0.1.bb [new file with mode: 0644]