From d15a80722a25f1296e07f20b9c44c031ecd03425f9b0ee10cb7acd2a50aade08 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 19 Dec 2023 02:02:49 +0000 Subject: [PATCH] - Switch to pyproject macros, which also now means we now use flit-core to build. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ordered-set?expand=0&rev=23 --- python-ordered-set.changes | 6 ++++++ python-ordered-set.spec | 13 +++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python-ordered-set.changes b/python-ordered-set.changes index 4754a24..40b0d20 100644 --- a/python-ordered-set.changes +++ b/python-ordered-set.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 19 02:01:25 UTC 2023 - Steve Kowalik + +- Switch to pyproject macros, which also now means we now use flit-core + to build. + ------------------------------------------------------------------- Sat Jun 10 17:39:22 UTC 2023 - ecsos diff --git a/python-ordered-set.spec b/python-ordered-set.spec index e26d6ba..9525652 100644 --- a/python-ordered-set.spec +++ b/python-ordered-set.spec @@ -37,14 +37,14 @@ Summary: Custom MutableSet that remembers its order License: MIT URL: https://github.com/rspeer/ordered-set Source: https://files.pythonhosted.org/packages/source/o/%{modname}/%{modname}-%{version}.tar.gz -# this package is build dependency of setuptools BuildRequires: %{python_module base} +BuildRequires: %{python_module flit-core >= 3.2} +BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch %if %{with test} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} %endif # work around boo#1186870 Provides: %{mypython}%{python_version}dist(%modname) = %{version} @@ -59,15 +59,13 @@ entry has an index that can be looked up. %prep %setup -q -n %{modname}-%{version} -# we are build dep of setuptools -sed -i -e 's:from setuptools :from distutils.core :g' setup.py %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -81,8 +79,7 @@ sed -i -e 's:from setuptools :from distutils.core :g' setup.py %license MIT-LICENSE %doc README.md %{python_sitelib}/%{dir_name}/ -# Note: The distutils generated egg-info is not a directory -%{python_sitelib}/%{dir_name}-%{version}-py%{python_version}.egg-info +%{python_sitelib}/%{dir_name}-%{version}.dist-info %endif %changelog