]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Wed, 16 Mar 2022 08:44:46 +0000 (08:44 +0000)
commit27bd134c899d00d93806ecb0a62ec3f30b1e6ec6
tree10971f9f251dfe2855cb8f9d94b54db1888240b4
parentde3e166cf6f0de4fe0681ddb4b209fb9b8b06811
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]