From dca09f190b1e618fef54914c4db9bc8dc6c56f0cbbfddfae3fec6e1f07e4e9b7 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 5 Jun 2025 06:07:59 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distroinfo?expand=0&rev=13 --- python-distroinfo.changes | 5 +++++ python-distroinfo.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-distroinfo.changes b/python-distroinfo.changes index a1a2a65..84a9dbd 100644 --- a/python-distroinfo.changes +++ b/python-distroinfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 5 06:01:37 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Jan 14 13:31:23 UTC 2025 - pgajdos@suse.com diff --git a/python-distroinfo.spec b/python-distroinfo.spec index 84c3147..faefb7e 100644 --- a/python-distroinfo.spec +++ b/python-distroinfo.spec @@ -25,7 +25,9 @@ Group: Development/Languages/Python URL: https://github.com/softwarefactory-project/distroinfo Source: https://files.pythonhosted.org/packages/source/d/distroinfo/distroinfo-%{version}.tar.gz BuildRequires: %{python_module pbr >= 0.5.6} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyYAML @@ -49,10 +51,10 @@ metadata stored in human readable and reviewable text/YAML files. %setup -q -n distroinfo-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,7 +63,7 @@ metadata stored in human readable and reviewable text/YAML files. %files %{python_files} %doc AUTHORS ChangeLog README.rst %license LICENSE -%{python_sitelib}/distroinfo-%{version}-*-info %{python_sitelib}/distroinfo +%{python_sitelib}/distroinfo-%{version}.dist-info %changelog