15
0

- Switch to autosetup and pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dictdiffer?expand=0&rev=6
This commit is contained in:
2024-02-29 03:16:37 +00:00
committed by Git OBS Bridge
parent 7bf06e5eaa
commit 211bc2fe03
2 changed files with 14 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 29 03:16:06 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Thu Mar 17 08:58:50 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dictdiffer
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,17 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dictdiffer
Version: 0.9.0
Release: 0
Summary: Dictdiffer is a library that helps you to diff and patch dictionaries
License: MIT
Group: Development/Languages/Python
URL: https://github.com/inveniosoftware/dictdiffer
Source: https://files.pythonhosted.org/packages/source/d/dictdiffer/dictdiffer-%{version}.tar.gz
Patch0: lower-reqs.diff
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-numpy >= 1.11.0
@@ -41,18 +40,17 @@ BuildRequires: %{python_module pytest >= 2.8.0}
Dictdiffer is a library that helps you to diff and patch dictionaries.
%prep
%setup -q -n dictdiffer-%{version}
%patch0 -p1
%autosetup -p1 -n dictdiffer-%{version}
# Remove dependence on unnecessary pytest plugins
rm pytest.ini
# https://github.com/inveniosoftware/dictdiffer/issues/167
sed -i '/pytest-runner/d' setup.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -61,6 +59,7 @@ sed -i '/pytest-runner/d' setup.py
%files %{python_files}
%doc AUTHORS CHANGES README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/dictdiffer
%{python_sitelib}/dictdiffer-%{version}.dist-info
%changelog