From 91884bf344008ebd7d17e9e4cec32c95b81f0776c81dcd86d502d71fa3ff1122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 10:46:45 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-serpent?expand=0&rev=21 --- python-serpent.changes | 5 +++++ python-serpent.spec | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-serpent.changes b/python-serpent.changes index 2bf9ef0..73391ea 100644 --- a/python-serpent.changes +++ b/python-serpent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 10:46:13 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Jun 11 13:53:35 UTC 2023 - ecsos diff --git a/python-serpent.spec b/python-serpent.spec index 93fc936..0e78985 100644 --- a/python-serpent.spec +++ b/python-serpent.spec @@ -1,7 +1,7 @@ # # spec file for package python-serpent # -# 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 @@ -24,7 +24,9 @@ Summary: Serialization based on astliteral_eval License: MIT URL: https://github.com/irmen/Serpent Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -46,17 +48,19 @@ and de-serialize it there. %setup -q -n serpent-%{version} %build -%python_build +%pyproject_wheel %check %pytest %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/serpent.py +%pycache_only %{python_sitelib}/__pycache__/serpent* +%{python_sitelib}/serpent-%{version}*-info %changelog