From b61703c6e8524ba2e1e29550b2f496c65e1f59b0fef007cccd05f4bb651c4abf Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 22 Oct 2024 13:26:27 +0000 Subject: [PATCH] - update to 43.0.3: * Fixed release metadata for cryptography-vectors * Fixed compilation when using LibreSSL 4.0.0. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=232 --- cryptography-43.0.1.tar.gz | 3 --- cryptography-43.0.3.tar.gz | 3 +++ no-pytest_benchmark.patch | 38 ++++++++++++++++++------------------- python-cryptography.changes | 7 +++++++ python-cryptography.spec | 3 ++- vendor.tar.zst | 4 ++-- 6 files changed, 33 insertions(+), 25 deletions(-) delete mode 100644 cryptography-43.0.1.tar.gz create mode 100644 cryptography-43.0.3.tar.gz diff --git a/cryptography-43.0.1.tar.gz b/cryptography-43.0.1.tar.gz deleted file mode 100644 index 7144d6e..0000000 --- a/cryptography-43.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:203e92a75716d8cfb491dc47c79e17d0d9207ccffcbcb35f598fbe463ae3444d -size 686927 diff --git a/cryptography-43.0.3.tar.gz b/cryptography-43.0.3.tar.gz new file mode 100644 index 0000000..422826a --- /dev/null +++ b/cryptography-43.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:315b9001266a492a6ff443b61238f956b214dbec9910a081ba5b6646a055a805 +size 686989 diff --git a/no-pytest_benchmark.patch b/no-pytest_benchmark.patch index a4a740e..a1dd680 100644 --- a/no-pytest_benchmark.patch +++ b/no-pytest_benchmark.patch @@ -7,13 +7,13 @@ tests/bench/test_x509.py | 16 ++++++------- 7 files changed, 37 insertions(+), 68 deletions(-) -Index: cryptography-43.0.1/pyproject.toml +Index: cryptography-43.0.3/pyproject.toml =================================================================== ---- cryptography-43.0.1.orig/pyproject.toml -+++ cryptography-43.0.1/pyproject.toml +--- cryptography-43.0.3.orig/pyproject.toml ++++ cryptography-43.0.3/pyproject.toml @@ -66,8 +66,6 @@ nox = ["nox"] test = [ - "cryptography_vectors==43.0.1", + "cryptography_vectors==43.0.3", "pytest >=6.2.0", - "pytest-benchmark", - "pytest-cov", @@ -63,10 +63,10 @@ Index: cryptography-43.0.1/pyproject.toml [tool.ruff] line-length = 79 -Index: cryptography-43.0.1/tests/bench/test_aead.py +Index: cryptography-43.0.3/tests/bench/test_aead.py =================================================================== ---- cryptography-43.0.1.orig/tests/bench/test_aead.py -+++ cryptography-43.0.1/tests/bench/test_aead.py +--- cryptography-43.0.3.orig/tests/bench/test_aead.py ++++ cryptography-43.0.3/tests/bench/test_aead.py @@ -26,84 +26,84 @@ def _aead_supported(cls): not _aead_supported(ChaCha20Poly1305), reason="Requires OpenSSL with ChaCha20Poly1305 support", @@ -172,10 +172,10 @@ Index: cryptography-43.0.1/tests/bench/test_aead.py ct = aes.encrypt(b"\x00" * 12, b"hello world plaintext", None) - benchmark(aes.decrypt, b"\x00" * 12, ct, None) + aes.decrypt(b"\x00" * 12, ct, None) -Index: cryptography-43.0.1/tests/bench/test_ec_load.py +Index: cryptography-43.0.3/tests/bench/test_ec_load.py =================================================================== ---- cryptography-43.0.1.orig/tests/bench/test_ec_load.py -+++ cryptography-43.0.1/tests/bench/test_ec_load.py +--- cryptography-43.0.3.orig/tests/bench/test_ec_load.py ++++ cryptography-43.0.3/tests/bench/test_ec_load.py @@ -5,9 +5,9 @@ from ..hazmat.primitives.fixtures_ec import EC_KEY_SECP256R1 @@ -190,10 +190,10 @@ Index: cryptography-43.0.1/tests/bench/test_ec_load.py - benchmark(EC_KEY_SECP256R1.private_key) +def test_load_ec_private_numbers(): + EC_KEY_SECP256R1.private_key() -Index: cryptography-43.0.1/tests/bench/test_hashes.py +Index: cryptography-43.0.3/tests/bench/test_hashes.py =================================================================== ---- cryptography-43.0.1.orig/tests/bench/test_hashes.py -+++ cryptography-43.0.1/tests/bench/test_hashes.py +--- cryptography-43.0.3.orig/tests/bench/test_hashes.py ++++ cryptography-43.0.3/tests/bench/test_hashes.py @@ -5,10 +5,10 @@ from cryptography.hazmat.primitives import hashes @@ -207,10 +207,10 @@ Index: cryptography-43.0.1/tests/bench/test_hashes.py - benchmark(bench) + bench() -Index: cryptography-43.0.1/tests/bench/test_hmac.py +Index: cryptography-43.0.3/tests/bench/test_hmac.py =================================================================== ---- cryptography-43.0.1.orig/tests/bench/test_hmac.py -+++ cryptography-43.0.1/tests/bench/test_hmac.py +--- cryptography-43.0.3.orig/tests/bench/test_hmac.py ++++ cryptography-43.0.3/tests/bench/test_hmac.py @@ -5,10 +5,10 @@ from cryptography.hazmat.primitives import hashes, hmac @@ -224,10 +224,10 @@ Index: cryptography-43.0.1/tests/bench/test_hmac.py - benchmark(bench) + bench() -Index: cryptography-43.0.1/tests/bench/test_x509.py +Index: cryptography-43.0.3/tests/bench/test_x509.py =================================================================== ---- cryptography-43.0.1.orig/tests/bench/test_x509.py -+++ cryptography-43.0.1/tests/bench/test_x509.py +--- cryptography-43.0.3.orig/tests/bench/test_x509.py ++++ cryptography-43.0.3/tests/bench/test_x509.py @@ -13,40 +13,40 @@ from cryptography import x509 from ..utils import load_vectors_from_file diff --git a/python-cryptography.changes b/python-cryptography.changes index e74164d..5f1d3dc 100644 --- a/python-cryptography.changes +++ b/python-cryptography.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 22 13:26:21 UTC 2024 - Dirk Müller + +- update to 43.0.3: + * Fixed release metadata for cryptography-vectors + * Fixed compilation when using LibreSSL 4.0.0. + ------------------------------------------------------------------- Sat Sep 28 19:45:04 UTC 2024 - Dirk Müller diff --git a/python-cryptography.spec b/python-cryptography.spec index 5aadc72..0ff25e7 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -27,7 +27,8 @@ %endif %{?sle15_python_module_pythons} Name: python-cryptography%{psuffix} -Version: 43.0.1 +# ALWAYS KEEP IN SYNC WITH python-cryptography-vectors! +Version: 43.0.3 Release: 0 Summary: Python library which exposes cryptographic recipes and primitives License: Apache-2.0 OR BSD-3-Clause diff --git a/vendor.tar.zst b/vendor.tar.zst index e5b7fa1..62edfe7 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:390ded5117f5bc0c1f422e60efdc70f13f089d05f41c7b5578f1b0f081636032 -size 1990453 +oid sha256:dfcf0bf7d3157582b488524714f7b1a36f8d1d0cf4e549186c85f2eaec4ba492 +size 2005993