From 7ca31a8f27589aef05cf1f42599606a83f7cd6fcbbba2072e04b6ebf2b4269e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 08:56:54 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-methodtools?expand=0&rev=6 --- python-methodtools.changes | 5 +++++ python-methodtools.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-methodtools.changes b/python-methodtools.changes index d9fcef9..3ce89e2 100644 --- a/python-methodtools.changes +++ b/python-methodtools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 08:56:43 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Dec 7 22:17:50 UTC 2023 - Dirk Müller diff --git a/python-methodtools.spec b/python-methodtools.spec index 28f80ef..ef95f07 100644 --- a/python-methodtools.spec +++ b/python-methodtools.spec @@ -1,7 +1,7 @@ # # spec file for package python-methodtools # -# 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 @@ -23,9 +23,11 @@ Summary: Expand Standard Functools to Methods License: BSD-2-Clause URL: https://github.com/youknowone/methodtools Source0: https://github.com/youknowone/methodtools/archive/%{version}.tar.gz#/methodtools-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 4.6.7} BuildRequires: %{python_module pytest-cov >= 2.6.1} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module wirerope >= 0.4.7} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -41,10 +43,10 @@ staticmethods and even for (unofficial) hybrid methods. %setup -q -n methodtools-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -53,6 +55,7 @@ staticmethods and even for (unofficial) hybrid methods. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/methodtools +%{python_sitelib}/methodtools-%{version}*-info %changelog From 4ebe1fd6c3b7b8a508d9aeeb8f0b609d066a8af35e6904ee418e13d84f46ee3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 09:00:58 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-methodtools?expand=0&rev=7 --- python-methodtools.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-methodtools.spec b/python-methodtools.spec index ef95f07..795a5a5 100644 --- a/python-methodtools.spec +++ b/python-methodtools.spec @@ -55,7 +55,8 @@ staticmethods and even for (unofficial) hybrid methods. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/methodtools +%{python_sitelib}/methodtools.py %{python_sitelib}/methodtools-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/methodtools* %changelog