From 2d0859fe957654647c4593c8b86627a7818caa6691b9e1072747599f3c3fde0a Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 26 Mar 2024 15:50:57 +0000 Subject: [PATCH] Accepting request 1162291 from home:glaubitz:branches:devel:languages:python - Switch build system from setuptools to pyproject.toml + Add python-pip and python-wheel to BuildRequires + Replace %python_build with %pyproject_wheel + Replace %python_install with %pyproject_install OBS-URL: https://build.opensuse.org/request/show/1162291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=88 --- python-redis.changes | 8 ++++++++ python-redis.spec | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-redis.changes b/python-redis.changes index 843f9f7..ef3bc98 100644 --- a/python-redis.changes +++ b/python-redis.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Mar 26 13:46:39 UTC 2024 - John Paul Adrian Glaubitz + +- Switch build system from setuptools to pyproject.toml + + Add python-pip and python-wheel to BuildRequires + + Replace %python_build with %pyproject_wheel + + Replace %python_install with %pyproject_install + ------------------------------------------------------------------- Mon Jan 15 20:19:45 UTC 2024 - Dirk Müller diff --git a/python-redis.spec b/python-redis.spec index 0b9d699..44cc2e7 100644 --- a/python-redis.spec +++ b/python-redis.spec @@ -33,10 +33,12 @@ Patch1: Close-various-objects-created-during-asyncio-tests.patch BuildRequires: %{python_module async-timeout >= 4.0.2} BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-timeout} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: psmisc BuildRequires: python-rpm-macros @@ -72,10 +74,10 @@ rm tests/test_json.py rm tests/test_timeseries.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with testing}