summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-cryptography
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-cryptography')
-rw-r--r--meta/recipes-devtools/python/python3-cryptography/0001-cryptography-cffi-substitute-include-path-from-targe.patch29
-rw-r--r--meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch25
-rw-r--r--meta/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch28
3 files changed, 44 insertions, 38 deletions
diff --git a/meta/recipes-devtools/python/python3-cryptography/0001-cryptography-cffi-substitute-include-path-from-targe.patch b/meta/recipes-devtools/python/python3-cryptography/0001-cryptography-cffi-substitute-include-path-from-targe.patch
new file mode 100644
index 0000000000..1a60abada7
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-cryptography/0001-cryptography-cffi-substitute-include-path-from-targe.patch
@@ -0,0 +1,29 @@
1From 04aac6c88152088778c6551dfa86b2fc446dc61c Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Mon, 19 Jun 2023 13:27:28 +0200
4Subject: [PATCH] cryptography-cffi: substitute include path from target
5 sysroot
6
7Upstream-Status: Accepted [https://github.com/pyca/cryptography/pull/9105]
8
9Signed-off-by: Alexander Kanavin <alex@linutronix.de>
10---
11 src/rust/cryptography-cffi/build.rs | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/rust/cryptography-cffi/build.rs b/src/rust/cryptography-cffi/build.rs
15index 4a40990..08abb95 100644
16--- a/src/rust/cryptography-cffi/build.rs
17+++ b/src/rust/cryptography-cffi/build.rs
18@@ -48,7 +48,7 @@ fn main() {
19 println!("cargo:rustc-cfg=python_implementation=\"{}\"", python_impl);
20 let python_include = run_python_script(
21 &python,
22- "import sysconfig; print(sysconfig.get_path('include'), end='')",
23+ "import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'), end='')",
24 )
25 .unwrap();
26 let openssl_include =
27--
282.30.2
29
diff --git a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch b/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
index 481f595246..69cf451d57 100644
--- a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
+++ b/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
@@ -1,4 +1,4 @@
1From ce972ea92d724f232323a9a6265a8b44d913d4d8 Mon Sep 17 00:00:00 2001 1From b7dd3ce1d75d1e6255e1aca82aa7f401d4246a75 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com> 2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Tue, 17 May 2022 17:22:48 +0800 3Date: Tue, 17 May 2022 17:22:48 +0800
4Subject: [PATCH] pyproject.toml: remove --benchmark-disable option 4Subject: [PATCH] pyproject.toml: remove --benchmark-disable option
@@ -18,23 +18,28 @@ Fixes:
18Upstream-Status: Inappropriate [OE specific] 18Upstream-Status: Inappropriate [OE specific]
19 19
20Signed-off-by: Mingli Yu <mingli.yu@windriver.com> 20Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
21
21--- 22---
22 pyproject.toml | 2 +- 23 pyproject.toml | 4 ++--
23 1 file changed, 1 insertion(+), 1 deletion(-) 24 1 file changed, 2 insertions(+), 2 deletions(-)
24 25
25diff --git a/pyproject.toml b/pyproject.toml 26diff --git a/pyproject.toml b/pyproject.toml
26index 4d58129..b011fca 100644 27index b2e511f..4a285af 100644
27--- a/pyproject.toml 28--- a/pyproject.toml
28+++ b/pyproject.toml 29+++ b/pyproject.toml
29@@ -15,7 +15,7 @@ line-length = 79 30@@ -85,7 +85,7 @@ line-length = 79
30 target-version = ["py36"] 31 target-version = ["py37"]
31 32
32 [tool.pytest.ini_options] 33 [tool.pytest.ini_options]
33-addopts = "-r s --capture=no --strict-markers --benchmark-disable" 34-addopts = "-r s --capture=no --strict-markers --benchmark-disable"
34+addopts = "-r s --capture=no --strict-markers" 35+addopts = "-r s --capture=no --strict-markers"
36 console_output_style = "progress-even-when-capture-no"
35 markers = [ 37 markers = [
36 "skip_fips: this test is not executed in FIPS mode", 38 "skip_fips: this test is not executed in FIPS mode",
37 "supported: parametrized test requiring only_if and skip_message", 39@@ -151,4 +151,4 @@ git-only = [
38-- 40 "ci-constraints-requirements.txt",
392.25.1 41 ".gitattributes",
40 42 ".gitignore",
43-]
44\ No newline at end of file
45+]
diff --git a/meta/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch b/meta/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch
deleted file mode 100644
index 366e3a4d39..0000000000
--- a/meta/recipes-devtools/python/python3-cryptography/0002-Cargo.toml-edition-2018-2021.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From 4b73298b214a5b69ea6edf3c2e21dd82b2b29708 Mon Sep 17 00:00:00 2001
2From: Tim Orling <tim.orling@konsulko.com>
3Date: Fri, 14 Jan 2022 22:34:59 -0800
4Subject: [PATCH 2/2] Cargo.toml: edition 2018 -> 2021
5
6Upstream-Status: Pending
7
8Signed-off-by: Tim Orling <tim.orling@konsulko.com>
9---
10 src/rust/Cargo.toml | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml
14index 174eaa80..7ad053d9 100644
15--- a/src/rust/Cargo.toml
16+++ b/src/rust/Cargo.toml
17@@ -2,7 +2,7 @@
18 name = "cryptography-rust"
19 version = "0.1.0"
20 authors = ["The cryptography developers <cryptography-dev@python.org>"]
21-edition = "2018"
22+edition = "2021"
23 publish = false
24
25 [dependencies]
26--
272.30.2
28