Skip to contentSkip to conversation

python3-cryptography: upgrade 41.0.7 to 42.0.2

PATCH New Richard Purdie 1 participant 1 message Feb 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-cryptography: upgrade 41.0.7 to 42.0.2

From: Tim Orling <[email protected]>

* Also upgrade python3-cryptography-vectors
* Drop patch for 9129, fixed upstream
* Refresh pyproject.toml --benchmark-disable patch
* Refresh -crates.inc

Changes:
https://cryptography.io/en/latest/changelog/#v42-0-2
https://cryptography.io/en/latest/changelog/#v42-0-1
https://cryptography.io/en/latest/changelog/#v42-0-0
https://github.com/pyca/cryptography/compare/41.0.7...42.0.2

RP: Add new REPENDS on python3-mmap for ptest
RP: Increase memory in ptest image to avoid test failures

---
 meta/recipes-core/images/core-image-ptest.bb  |   2 +-
 .../python/python3-cryptography-crates.inc    | 170 ++++++++----------
 ...=> python3-cryptography-vectors_42.0.2.bb} |   2 +-
 ...-directory-when-cross-compiling-9129.patch |  52 ------
 ...toml-remove-benchmark-disable-option.patch |  22 ++-
 ....0.7.bb => python3-cryptography_42.0.2.bb} |   4 +-
 6 files changed, 92 insertions(+), 160 deletions(-)
 rename meta/recipes-devtools/python/{python3-cryptography-vectors_41.0.7.bb => python3-cryptography-vectors_42.0.2.bb} (91%)
 delete mode 100644 meta/recipes-devtools/python/python3-cryptography/0001-Fix-include-directory-when-cross-compiling-9129.patch
 rename meta/recipes-devtools/python/{python3-cryptography_41.0.7.bb => python3-cryptography_42.0.2.bb} (92%)
meta/recipes-core/images/core-image-ptest.bb +1 -1
index 7f7b4381d4a..72081f938de 100644
@@ -31,7 +31,7 @@ IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-tar = "1524288"
 QB_MEM = "-m 1024"
 QB_MEM:virtclass-mcextend-lttng-tools = "-m 4096"
 QB_MEM:virtclass-mcextend-python3 = "-m 2048"
-QB_MEM:virtclass-mcextend-python3-cryptography = "-m 4096"
+QB_MEM:virtclass-mcextend-python3-cryptography = "-m 5100"
 
 TEST_SUITES = "ping ssh parselogs ptest"
 
meta/recipes-devtools/python/python3-cryptography-crates.inc +78 -92

191 lines not on this page · raw message

meta/recipes-devtools/python/python3-cryptography-vectors_42.0.2.bb renamed from meta/recipes-devtools/python/python3-cryptography-vectors_41.0.7.bb +1 -1
similarity index 91%
rename from meta/recipes-devtools/python/python3-cryptography-vectors_41.0.7.bb
rename to meta/recipes-devtools/python/python3-cryptography-vectors_42.0.2.bb
index eda492d312a..46778e426f5 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
 # NOTE: Make sure to keep this recipe at the same version as python3-cryptography
 #       Upgrade both recipes at the same time
 
-SRC_URI[sha256sum] = "7b36f976b6e58cc1801310e1c93c584c6539d371da7f8538edd8fc463dc80d5b"
+SRC_URI[sha256sum] = "adcdccf5d9ee661a9602ad21d2525f678ba07a6e768ce79835994e208bab0e16"
 
 PYPI_PACKAGE = "cryptography_vectors"
 
meta/recipes-devtools/python/python3-cryptography/0001-Fix-include-directory-when-cross-compiling-9129.patch deleted +0 -52

52 lines not on this page · raw message

meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch +10 -12
index 69cf451d576..f9c8d1393d2 100644
@@ -19,16 +19,18 @@ Upstream-Status: Inappropriate [OE specific]
 
 Signed-off-by: Mingli Yu <[email protected]>
 
+Refresh for 42.02
+Signed-off-by: Tim Orling <[email protected]>
 ---
- pyproject.toml | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/pyproject.toml b/pyproject.toml
-index b2e511f..4a285af 100644
+index c9a7979bd..dec4b7157 100644
 --- a/pyproject.toml
 +++ b/pyproject.toml
-@@ -85,7 +85,7 @@ line-length = 79
- target-version = ["py37"]
+@@ -92,7 +92,7 @@ rust-version = ">=1.63.0"
+ 
  
  [tool.pytest.ini_options]
 -addopts = "-r s --capture=no --strict-markers --benchmark-disable"
@@ -36,10 +38,6 @@ index b2e511f..4a285af 100644
  console_output_style = "progress-even-when-capture-no"
  markers = [
      "skip_fips: this test is not executed in FIPS mode",
-@@ -151,4 +151,4 @@ git-only = [
-     "ci-constraints-requirements.txt",
-     ".gitattributes",
-     ".gitignore",
--]
-\ No newline at end of file
-+]
+-- 
+2.34.1
+
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb renamed from meta/recipes-devtools/python/python3-cryptography_41.0.7.bb +2 -2
similarity index 92%
rename from meta/recipes-devtools/python/python3-cryptography_41.0.7.bb
rename to meta/recipes-devtools/python/python3-cryptography_42.0.2.bb
index 45856774403..7ac0225a391 100644
@@ -8,10 +8,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
                    "
 LDSHARED += "-pthread"
 
-SRC_URI[sha256sum] = "13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc"
+SRC_URI[sha256sum] = "e0ec52ba3c7f1b7d813cd52649a5b3ef1fc0d433219dc8c93827c57eab6cf888"
 
 SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
-            file://0001-Fix-include-directory-when-cross-compiling-9129.patch \
             file://check-memfree.py \
             file://run-ptest \
            "
@@ -38,6 +37,7 @@ RDEPENDS:${PN}-ptest += " \
     ${PYTHON_PN}-cryptography-vectors (= ${PV}) \
     ${PYTHON_PN}-hypothesis \
     ${PYTHON_PN}-iso8601 \
+    ${PYTHON_PN}-mmap \
     ${PYTHON_PN}-pretend \
     ${PYTHON_PN}-psutil \
     ${PYTHON_PN}-pytest \
Signature · 1 line
2.40.1