Commit Graph

5 Commits

Author SHA1 Message Date
Ross Burton
4e87cfb56d python3-cryptography: remove obsolete PIP_INSTALL_DIST_PATH
(From OE-Core rev: 1ebf3774655a57807ca5e03530fef2bd80442adb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-16 08:48:08 +00:00
Richard Purdie
2e1cb386f9 python3-cryptography: Add missing ptest tomli dependency
Add missing tomli runtime dependency to allow ptests to execute.

(From OE-Core rev: eb75f5b64146912f4e312eb1fe00162169ae70fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-16 08:48:08 +00:00
Ross Burton
a5d252eea3 python3-cryptography: mark test_create_certificate_with_extensions as expected to fail
This test causes OpenSSL to leak some memory. Until this is resolved in
OpenSSL, mark the test as expected-to-fail.

(From OE-Core rev: b32917b113df6dce0200d35dd1b539279635d524)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-16 08:48:08 +00:00
Richard Purdie
89f9740f98 setuptools3_rust: Rename to python_setuptools3_rust
(From OE-Core rev: 57bef31cdcafeef2d1ca5ff3aee7b2e2181a0514)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-16 08:48:08 +00:00
Tim Orling
c6f79207f8 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 <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-16 08:48:08 +00:00