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..795a5a5 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,8 @@ staticmethods and even for (unofficial) hybrid methods. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/methodtools.py +%{python_sitelib}/methodtools-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/methodtools* %changelog