From e7ec19e1c6465b6a681dfc54fdd08a95a1e95d216c30639ab7d1a586d55cf0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 10:23:05 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-expiringdict?expand=0&rev=9 --- python-expiringdict.changes | 5 +++++ python-expiringdict.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-expiringdict.changes b/python-expiringdict.changes index a129267..9ebf61f 100644 --- a/python-expiringdict.changes +++ b/python-expiringdict.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 10:22:54 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Feb 13 13:07:40 UTC 2024 - Daniel Garcia diff --git a/python-expiringdict.spec b/python-expiringdict.spec index bb4e8cb..713510d 100644 --- a/python-expiringdict.spec +++ b/python-expiringdict.spec @@ -1,7 +1,7 @@ # # spec file for package python-expiringdict # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2021, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -17,8 +17,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-expiringdict Version: 1.2.2 Release: 0 @@ -28,7 +26,9 @@ URL: https://www.mailgun.com/ Source: https://github.com/mailgun/expiringdict/archive/refs/tags/v%{version}.tar.gz#/expiringdict-%{version}.tar.gz Patch0: remove-nose.patch BuildRequires: %{python_module dill} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-dill @@ -51,10 +51,10 @@ max_len elements - the oldest will be deleted. %autopatch -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check