diff options
author | Tim Orling <tim.orling@konsulko.com> | 2022-01-11 15:29:50 -0800 |
---|---|---|
committer | Tim Orling <tim.orling@konsulko.com> | 2022-01-16 08:58:36 -0800 |
commit | 6d3be5f2e1aa041d7c93b41215902576eb666ffe (patch) | |
tree | 0d9fbe80cdfe1e0ceb6a8f772e8aa4eb8a95c4e6 /meta-python/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch | |
parent | ccbbadc9e32ee3051b7a086d578e9f322484671e (diff) | |
download | meta-openembedded-contrib-6d3be5f2e1aa041d7c93b41215902576eb666ffe.tar.gz |
python3-cryptography: upgrade 3.3.2 -> 36.0.1
See https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#3601---2021-12-14
for changes
Add PSF-2.0 license and explicitly add checksums for the LICENSE files that
are packaged.
RDEPENDS on python3-hypothesis (in oe-core) for ptest so we can drop the
patch for skipping.
Drop backported patch for openssl3 support.
Add ptest
inherit new setuptools_rust class (which inherits new pyo3 class, which
inherits cargo and python3-dir).
DEPENDS on python3-setuptools-rust-native
RDEPENDS on python3-pytest-subtests for ptest
Copy pyproject.toml for ptest as it defines the pytest.marker(s) needed
Cleanup and alphabetize the RDEPENDS
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>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch b/meta-python/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch new file mode 100644 index 0000000000..366e3a4d39 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch @@ -0,0 +1,28 @@ +From 4b73298b214a5b69ea6edf3c2e21dd82b2b29708 Mon Sep 17 00:00:00 2001 +From: Tim Orling <tim.orling@konsulko.com> +Date: Fri, 14 Jan 2022 22:34:59 -0800 +Subject: [PATCH 2/2] Cargo.toml: edition 2018 -> 2021 + +Upstream-Status: Pending + +Signed-off-by: Tim Orling <tim.orling@konsulko.com> +--- + src/rust/Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml +index 174eaa80..7ad053d9 100644 +--- a/src/rust/Cargo.toml ++++ b/src/rust/Cargo.toml +@@ -2,7 +2,7 @@ + name = "cryptography-rust" + version = "0.1.0" + authors = ["The cryptography developers <cryptography-dev@python.org>"] +-edition = "2018" ++edition = "2021" + publish = false + + [dependencies] +-- +2.30.2 + |