From b9dbc4049a834162eeb8ad0ca2d7568333690fd87f3e217fd8dbd58df53bdd54 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:18:23 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=54 --- python-pyfakefs.changes | 5 +++++ python-pyfakefs.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-pyfakefs.changes b/python-pyfakefs.changes index 33d9e47..3b2766c 100644 --- a/python-pyfakefs.changes +++ b/python-pyfakefs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:28 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon Apr 28 16:33:01 UTC 2025 - Dirk Müller diff --git a/python-pyfakefs.spec b/python-pyfakefs.spec index f0369ed..338f7de 100644 --- a/python-pyfakefs.spec +++ b/python-pyfakefs.spec @@ -32,7 +32,9 @@ Summary: Fake file system that mocks the Python file system modules License: Apache-2.0 URL: https://github.com/jmcgeheeiv/pyfakefs Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/python-pyfakefs-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python @@ -53,11 +55,11 @@ no modification to work with pyfakefs. %setup -q -n pyfakefs-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand rm -r %{buildroot}%{$python_sitelib}/pyfakefs/tests/ %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -73,7 +75,7 @@ export LANG=C.UTF-8 %doc CHANGES.md README.md %license COPYING %{python_sitelib}/pyfakefs -%{python_sitelib}/pyfakefs-%{version}*-info +%{python_sitelib}/pyfakefs-%{version}.dist-info %endif %changelog