From c36e95f6d5f932334da51ab6126b08d3bfe052e7f7ac682b30b517ca25600b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 16:26:05 +0000 Subject: [PATCH] Accepting request 1277216 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277216 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-before-after?expand=0&rev=8 --- python-before-after.changes | 5 +++++ python-before-after.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-before-after.changes b/python-before-after.changes index 5b13af1..0555285 100644 --- a/python-before-after.changes +++ b/python-before-after.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 16:20:54 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Jul 6 10:22:05 UTC 2023 - ecsos diff --git a/python-before-after.spec b/python-before-after.spec index 63f6232..a949dac 100644 --- a/python-before-after.spec +++ b/python-before-after.spec @@ -1,7 +1,7 @@ # # spec file for package python-before-after # -# Copyright (c) 2022 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 @@ -28,7 +28,9 @@ Source: https://files.pythonhosted.org/packages/source/b/before_after/be Source1: https://raw.githubusercontent.com/c-oreills/before_after/master/LICENSE Patch0: https://patch-diff.githubusercontent.com/raw/c-oreills/before_after/pull/6.patch#/pr_6.patch Patch1: https://patch-diff.githubusercontent.com/raw/c-oreills/before_after/pull/10.patch#/pr_10.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -45,10 +47,10 @@ before_after provides utilities for testing race conditions. cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %{python_expand rm -r %{buildroot}%{$python_sitelib}/before_after/tests/ %fdupes %{buildroot}%{$python_sitelib} } @@ -59,6 +61,7 @@ cp %{SOURCE1} . %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/before[-_]after +%{python_sitelib}/before[-_]after-%{version}*-info %changelog