- 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
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 19 02:01:25 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros, which also now means we now use flit-core
|
||||
to build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 10 17:39:22 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user