From d2cb2cc7be9c7bd86fe9ca90d9d94e83e403bda7788356cc20e65cddab667cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 14:42:13 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-noiseprotocol?expand=0&rev=3 --- python-noiseprotocol.changes | 5 +++++ python-noiseprotocol.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-noiseprotocol.changes b/python-noiseprotocol.changes index 0e7e671..38abb2c 100644 --- a/python-noiseprotocol.changes +++ b/python-noiseprotocol.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 14:41:52 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Sep 19 10:27:26 UTC 2023 - Ondřej Súkup diff --git a/python-noiseprotocol.spec b/python-noiseprotocol.spec index 2539f94..dab32f1 100644 --- a/python-noiseprotocol.spec +++ b/python-noiseprotocol.spec @@ -1,7 +1,7 @@ # # spec file for package python-noiseprotocol # -# Copyright (c) 2023 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 @@ -22,12 +22,14 @@ Release: 0 Summary: Implementation of Noise Protocol Framework License: MIT URL: https://github.com/plizonczyk/noiseprotocol -Source: https://github.com/plizonczyk/noiseprotocol/archive/refs/tags/v0.3.1.tar.gz#/noiseprotocol-%{version}.tar.gz -BuildRequires: python-rpm-macros +Source: https://github.com/plizonczyk/noiseprotocol/archive/refs/tags/v0.3.1.tar.gz#/noiseprotocol-%{version}.tar.gz BuildRequires: %{python_module cryptography} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-cryptography BuildArch: noarch %python_subpackages @@ -39,10 +41,10 @@ A Python 3 implementation of Noise Protocol Framework. Compatible with revisions %setup -q -n noiseprotocol-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check