diff --git a/python-mccabe.changes b/python-mccabe.changes index 11204c0..f0910e8 100644 --- a/python-mccabe.changes +++ b/python-mccabe.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 08:10:53 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue May 9 04:58:14 UTC 2023 - Johannes Kastl diff --git a/python-mccabe.spec b/python-mccabe.spec index d85a2b8..cc8956d 100644 --- a/python-mccabe.spec +++ b/python-mccabe.spec @@ -1,7 +1,7 @@ # # spec file for package python-mccabe # -# 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 @@ -27,8 +27,10 @@ URL: https://github.com/flintwork/mccabe Source: https://files.pythonhosted.org/packages/source/m/mccabe/mccabe-%{version}.tar.gz BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module hypothesmith} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -44,10 +46,10 @@ This module provides a plugin for flake8, the Python code checker. sed -i 's:pytest-runner::' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +58,7 @@ sed -i 's:pytest-runner::' setup.py %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/mccabe +%{python_sitelib}/mccabe-%{version}*-info %changelog