diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-cryptography')
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 @@ | |||
| 1 | From 04aac6c88152088778c6551dfa86b2fc446dc61c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Mon, 19 Jun 2023 13:27:28 +0200 | ||
| 4 | Subject: [PATCH] cryptography-cffi: substitute include path from target | ||
| 5 | sysroot | ||
| 6 | |||
| 7 | Upstream-Status: Accepted [https://github.com/pyca/cryptography/pull/9105] | ||
| 8 | |||
| 9 | Signed-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 | |||
| 14 | diff --git a/src/rust/cryptography-cffi/build.rs b/src/rust/cryptography-cffi/build.rs | ||
| 15 | index 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 | -- | ||
| 28 | 2.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 @@ | |||
| 1 | From ce972ea92d724f232323a9a6265a8b44d913d4d8 Mon Sep 17 00:00:00 2001 | 1 | From b7dd3ce1d75d1e6255e1aca82aa7f401d4246a75 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
| 3 | Date: Tue, 17 May 2022 17:22:48 +0800 | 3 | Date: Tue, 17 May 2022 17:22:48 +0800 |
| 4 | Subject: [PATCH] pyproject.toml: remove --benchmark-disable option | 4 | Subject: [PATCH] pyproject.toml: remove --benchmark-disable option |
| @@ -18,23 +18,28 @@ Fixes: | |||
| 18 | Upstream-Status: Inappropriate [OE specific] | 18 | Upstream-Status: Inappropriate [OE specific] |
| 19 | 19 | ||
| 20 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 20 | Signed-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 | ||
| 25 | diff --git a/pyproject.toml b/pyproject.toml | 26 | diff --git a/pyproject.toml b/pyproject.toml |
| 26 | index 4d58129..b011fca 100644 | 27 | index 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", |
| 39 | 2.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 @@ | |||
| 1 | From 4b73298b214a5b69ea6edf3c2e21dd82b2b29708 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tim Orling <tim.orling@konsulko.com> | ||
| 3 | Date: Fri, 14 Jan 2022 22:34:59 -0800 | ||
| 4 | Subject: [PATCH 2/2] Cargo.toml: edition 2018 -> 2021 | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Tim Orling <tim.orling@konsulko.com> | ||
| 9 | --- | ||
| 10 | src/rust/Cargo.toml | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml | ||
| 14 | index 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 | -- | ||
| 27 | 2.30.2 | ||
| 28 | |||
