From f0659b1f7ac3a418a0d45cf28b03b9f5cbad1a3d9bb87f11b4789cb72e243b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 15 Jan 2025 07:49:29 +0000 Subject: [PATCH] Accepting request 1237991 from home:mcalabkova:branches:devel:languages:python - Remove ed25519 tests to avoid that module in Leap OBS-URL: https://build.opensuse.org/request/show/1237991 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-securesystemslib?expand=0&rev=10 --- python-securesystemslib.changes | 5 +++++ python-securesystemslib.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-securesystemslib.changes b/python-securesystemslib.changes index ff4496f..6c80aee 100644 --- a/python-securesystemslib.changes +++ b/python-securesystemslib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 14 17:00:34 UTC 2025 - Markéta Machová + +- Remove ed25519 tests to avoid that module in Leap + ------------------------------------------------------------------- Thu Oct 31 07:30:30 UTC 2024 - Daniel Garcia diff --git a/python-securesystemslib.spec b/python-securesystemslib.spec index 729afc6..d0a644d 100644 --- a/python-securesystemslib.spec +++ b/python-securesystemslib.spec @@ -1,7 +1,7 @@ # # spec file for package python-securesystemslib # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,6 @@ Source: securesystemslib-%{version}.tar.xz BuildRequires: %{python_module PyKCS11} BuildRequires: %{python_module asn1crypto} BuildRequires: %{python_module cryptography >= 3.3.2} -BuildRequires: %{python_module ed25519} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} @@ -59,9 +58,10 @@ rm -rf %{buildroot}%{$python_sitelib}/securesystemslib/_vendor/ed25519/.gitignor %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -donttest="test_ed25519_kat or test_checkparams" # spinhcs+ key support requires the pyspx library -donttest+=" or test_sphincs" +donttest="test_sphincs" +# remove the ed25519 tests, the module is "Not Recommended For New Applications: Use pynacl Instead" +rm securesystemslib/_vendor/ed25519/test_ed25519.py %pytest -k "not ($donttest)" %files %{python_files}