python3-cryptography: Upgrade 3.3.1 -> 3.4.6
PATCH 1/1 python3-cryptography: Upgrade 3.3.1 -> 3.4.6
Upgrade to release 3.4.6:
- Updated Windows, macOS, and manylinux wheels to be compiled with OpenSSL 1.1.1j.
New versions of python3-cryptography depend on Rust. Temporary, the environment variable CRYPTOGRAPHY_DONT_BUILD_RUST has been set to disable Rust and to avoid dependency on addional layers such as meta-rust. Hopefully, in long-term with the introduction of Rust recipes in newer Yocto releases this will be fixed.
---
.../python/python3-cryptography/h-test.patch | 23 ++++++++++++++++---
...3.3.1.bb => python3-cryptography_3.4.6.bb} | 7 +++++-
2 files changed, 26 insertions(+), 4 deletions(-)
rename meta-python/recipes-devtools/python/{python3-cryptography_3.3.1.bb => python3-cryptography_3.4.6.bb} (84%)meta-python/recipes-devtools/python/python3-cryptography/h-test.patch +20 -3
@@ -1,10 +1,27 @@ +From 0707dc0701ea265cbf979d4a10457b29721bcaf7 Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Fri, 26 Feb 2021 12:58:22 +0200 +Subject: [PATCH] tests/hypothesis/__init__.py: Import pytest + +Import pytest. + +Signed-off-by: Leon Anavi <[email protected]> +--- + tests/hypothesis/__init__.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tests/hypothesis/__init__.py b/tests/hypothesis/__init__.py +index b5093362..d4c9b80b 100644 --- a/tests/hypothesis/__init__.py +++ b/tests/hypothesis/__init__.py -@@ -3,3 +3,7 @@ +@@ -1,3 +1,7 @@ + # This file is dual licensed under the terms of the Apache License, Version + # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. - - from __future__ import absolute_import, division, print_function + +import pytest +hypothesis = pytest.importorskip("hypothesis") + +-- +2.17.1 +
meta-python/recipes-devtools/python/python3-cryptography_3.4.6.bb renamed from meta-python/recipes-devtools/python/python3-cryptography_3.3.1.bb +6 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=bf405a8056a6647e7d077b0e7bc36aba" LDSHARED += "-pthread" -SRC_URI[sha256sum] = "7e177e4bea2de937a584b13645cab32f25e3d96fc0bc4a4cf99c27dc77682be6" +SRC_URI[sha256sum] = "2d32223e5b0ee02943f32b19245b61a62db83a882f0e76cc564e1cec60d48f87" SRC_URI += " \ file://run-ptest \
@@ -15,11 +15,16 @@ SRC_URI += " \ inherit pypi setuptools3 +# Set the environment variable to disable Rust +export CRYPTOGRAPHY_DONT_BUILD_RUST="1" + DEPENDS += " \ ${PYTHON_PN}-cffi \ ${PYTHON_PN}-cffi-native \ ${PYTHON_PN}-asn1crypto \ ${PYTHON_PN}-six \ + ${PYTHON_PN}-semantic-version-native \ + ${PYTHON_PN}-setuptools-rust-native \ " RDEPENDS_${PN} += " \
Signature · 1 line
2.17.1
it seems to be causing
00:02:15.567 ERROR: Nothing PROVIDES 'python3-setuptools-rust-native'
(but /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-cryptography_3.4.6.bb DEPENDS on or otherwise requires it). Close matches:
00:02:15.567 python3-setuptools-native 00:02:15.567 python3-setuptools-scm 00:02:15.567 python3-setuptools-scm-native
00:02:16.009 ERROR: Nothing RPROVIDES 'python3-pyopenssl' (but /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-autobahn_21.3.1.bb, /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-urllib3_1.26.4.bb, /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-pyopenssl_20.0.1.bb, /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-requests_2.25.1.bb, /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-ndg-httpsclient_0.5.1.bb RDEPENDS on or otherwise requires it)
Quoted 93 lines · Leon Anavi
Upgrade to release 3.4.6:
- Updated Windows, macOS, and manylinux wheels to be compiled with OpenSSL 1.1.1j.
New versions of python3-cryptography depend on Rust. Temporary, the environment variable
CRYPTOGRAPHY_DONT_BUILD_RUSThas been set to disable Rust and to avoid dependency on addional layers such as meta-rust. Hopefully, in long-term with the introduction of Rust recipes in newer Yocto releases this will be fixed.Signed-off-by Leon Anavi <[email protected]>--- .../python/python3-cryptography/h-test.patch | 23 ++++++++++++++++--- ...3.3.1.bb => python3-cryptography_3.4.6.bb} | 7 +++++- 2 files changed, 26 insertions(+), 4 deletions(-) rename meta-python/recipes-devtools/python/{python3-cryptography_3.3.1.bb => python3-cryptography_3.4.6.bb} (84%)meta-python/recipes-devtools/python/python3-cryptography/h-test.patch +20
-3@@ -1,10 +1,27 @@ +From 0707dc0701ea265cbf979d4a10457b29721bcaf7 Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Fri, 26 Feb 2021 12:58:22 +0200 +Subject: [PATCH] tests/hypothesis/__init__.py: Import pytest + +Import pytest. + +Signed-off-by: Leon Anavi <[email protected]> +--- + tests/hypothesis/__init__.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tests/hypothesis/__init__.py b/tests/hypothesis/__init__.py +index b5093362..d4c9b80b 100644 --- a/tests/hypothesis/__init__.py +++ b/tests/hypothesis/__init__.py -@@ -3,3 +3,7 @@ +@@ -1,3 +1,7 @@ + # This file is dual licensed under the terms of the Apache License, Version + # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. - - from __future__ import absolute_import, division, print_function + +import pytest +hypothesis = pytest.importorskip("hypothesis") + +-- +2.17.1 +meta-python/recipes-devtools/python/python3-cryptography_3.4.6.bb renamed from meta-python/recipes-devtools/python/python3-cryptography_3.3.1.bb +6
-2@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=bf405a8056a6647e7d077b0e7bc36aba" LDSHARED += "-pthread" -SRC_URI[sha256sum] = "7e177e4bea2de937a584b13645cab32f25e3d96fc0bc4a4cf99c27dc77682be6" +SRC_URI[sha256sum] = "2d32223e5b0ee02943f32b19245b61a62db83a882f0e76cc564e1cec60d48f87" SRC_URI += " \ file://run-ptest \@@ -15,11 +15,16 @@ SRC_URI += " \ inherit pypi setuptools3 +# Set the environment variable to disable Rust +export CRYPTOGRAPHY_DONT_BUILD_RUST="1" + DEPENDS += " \ ${PYTHON_PN}-cffi \ ${PYTHON_PN}-cffi-native \ ${PYTHON_PN}-asn1crypto \ ${PYTHON_PN}-six \ + ${PYTHON_PN}-semantic-version-native \ + ${PYTHON_PN}-setuptools-rust-native \ " RDEPENDS_${PN} += " \ --2.17.1
Hi Khem,
Thank you for the feedback. I forgot I have the recipe for this dependency only locally. I've just submitted it for a review at openembedded-core mailing list:
Thanks,
Leon
Quoted 109 lines · Khem Raj
it seems to be causing
00:02:15.567 ERROR: Nothing PROVIDES 'python3-setuptools-rust-native'
(but/mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-cryptography_3.4.6.bbDEPENDS on or otherwise requires it). Close matches:00:02:15.567 python3-setuptools-native 00:02:15.567 python3-setuptools-scm 00:02:15.567 python3-setuptools-scm-native00:02:16.009 ERROR: Nothing RPROVIDES 'python3-pyopenssl' (but
/mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-autobahn_21.3.1.bb,/mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-urllib3_1.26.4.bb,/mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-pyopenssl_20.0.1.bb,/mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-requests_2.25.1.bb,/mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-ndg-httpsclient_0.5.1.bbRDEPENDS on or otherwise requires it)Quoted 92 lines · Leon Anavi
Upgrade to release 3.4.6:
- Updated Windows, macOS, and manylinux wheels to be compiled with OpenSSL 1.1.1j.
New versions of python3-cryptography depend on Rust. Temporary, the environment variable
CRYPTOGRAPHY_DONT_BUILD_RUSThas been set to disable Rust and to avoid dependency on addional layers such as meta-rust. Hopefully, in long-term with the introduction of Rust recipes in newer Yocto releases this will be fixed.Signed-off-by Leon Anavi <[email protected]>--- .../python/python3-cryptography/h-test.patch | 23 ++++++++++++++++--- ...3.3.1.bb => python3-cryptography_3.4.6.bb} | 7 +++++- 2 files changed, 26 insertions(+), 4 deletions(-)rename meta-python/recipes-devtools/python/{python3-cryptography_3.3.1.bb => python3-cryptography_3.4.6.bb} (84%)
meta-python/recipes-devtools/python/python3-cryptography/h-test.patch +20
-3@@ -1,10 +1,27 @@ +From 0707dc0701ea265cbf979d4a10457b29721bcaf7 Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Fri, 26 Feb 2021 12:58:22 +0200 +Subject: [PATCH] tests/hypothesis/__init__.py: Import pytest + +Import pytest. + +Signed-off-by: Leon Anavi <[email protected]> +--- + tests/hypothesis/__init__.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tests/hypothesis/__init__.py b/tests/hypothesis/__init__.py +index b5093362..d4c9b80b 100644 --- a/tests/hypothesis/__init__.py +++ b/tests/hypothesis/__init__.py -@@ -3,3 +3,7 @@ +@@ -1,3 +1,7 @@ + # This file is dual licensed under the terms of the Apache License, Version + # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. - - from __future__ import absolute_import, division, print_function + +import pytest +hypothesis = pytest.importorskip("hypothesis") + +-- +2.17.1 +meta-python/recipes-devtools/python/python3-cryptography_3.4.6.bb renamed from meta-python/recipes-devtools/python/python3-cryptography_3.3.1.bb +6
-2@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=bf405a8056a6647e7d077b0e7bc36aba" LDSHARED += "-pthread" -SRC_URI[sha256sum] = "7e177e4bea2de937a584b13645cab32f25e3d96fc0bc4a4cf99c27dc77682be6" +SRC_URI[sha256sum] = "2d32223e5b0ee02943f32b19245b61a62db83a882f0e76cc564e1cec60d48f87" SRC_URI += " \ file://run-ptest \@@ -15,11 +15,16 @@ SRC_URI += " \ inherit pypi setuptools3 +# Set the environment variable to disable Rust +export CRYPTOGRAPHY_DONT_BUILD_RUST="1" + DEPENDS += " \ ${PYTHON_PN}-cffi \ ${PYTHON_PN}-cffi-native \ ${PYTHON_PN}-asn1crypto \ ${PYTHON_PN}-six \ + ${PYTHON_PN}-semantic-version-native \ + ${PYTHON_PN}-setuptools-rust-native \ " RDEPENDS_${PN} += " \ --2.17.1
Signature · 3 lines
Leon Anavi Software Engineer konsulko.com