From 0d49e8a218d4128c14377a91174eceb8ae274db8867d9c0f7cac6d6bd786b395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 11:19:40 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-dictdiffer revision 3628e3d530519daf32d372ade42431a3 --- .gitattributes | 23 ++++++++++++++ dictdiffer-0.9.0.tar.gz | 3 ++ lower-reqs.diff | 22 +++++++++++++ python-dictdiffer.changes | 39 +++++++++++++++++++++++ python-dictdiffer.spec | 66 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 153 insertions(+) create mode 100644 .gitattributes create mode 100644 dictdiffer-0.9.0.tar.gz create mode 100644 lower-reqs.diff create mode 100644 python-dictdiffer.changes create mode 100644 python-dictdiffer.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/dictdiffer-0.9.0.tar.gz b/dictdiffer-0.9.0.tar.gz new file mode 100644 index 0000000..d15f370 --- /dev/null +++ b/dictdiffer-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17bacf5fbfe613ccf1b6d512bd766e6b21fb798822a133aa86098b8ac9997578 +size 31513 diff --git a/lower-reqs.diff b/lower-reqs.diff new file mode 100644 index 0000000..4d7f809 --- /dev/null +++ b/lower-reqs.diff @@ -0,0 +1,22 @@ +Index: dictdiffer-0.9.0/setup.py +=================================================================== +--- dictdiffer-0.9.0.orig/setup.py 2021-07-22 15:24:20.000000000 +0200 ++++ dictdiffer-0.9.0/setup.py 2021-12-14 14:19:30.354291584 +0100 +@@ -30,7 +30,7 @@ tests_require = [ + 'pytest-pydocstyle>=2;python_version<="3.5"', + 'pytest-pydocstyle>=2.2.0;python_version>"3.5"', + 'sphinx>=3', +- 'tox>=3.7.0', ++ 'tox>=2.9.0', + ] + + extras_require = { +@@ -55,7 +55,7 @@ for key, reqs in extras_require.items(): + + setup_requires = [ + 'pytest-runner>=2.7', +- 'setuptools_scm>=3.1.0', ++ 'setuptools_scm>=1.15.0', + ] + + packages = find_packages() diff --git a/python-dictdiffer.changes b/python-dictdiffer.changes new file mode 100644 index 0000000..2a6b355 --- /dev/null +++ b/python-dictdiffer.changes @@ -0,0 +1,39 @@ +------------------------------------------------------------------- +Wed Mar 27 20:55:44 UTC 2024 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Feb 29 03:16:06 UTC 2024 - Steve Kowalik + +- Switch to autosetup and pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Thu Mar 17 08:58:50 UTC 2022 - pgajdos@suse.com + +- actually does not require python-mock for build + +------------------------------------------------------------------- +Tue Dec 14 13:23:16 UTC 2021 - pgajdos@suse.com + +- version update to 0.9.0 + - Adds absolute tolerance feature for floats (@adrien-berchet) (#152) + - Drops support of Python<3.5 (@adrien-berchet) (#160) + - Adds `assert_no_diff` helper to assist pytest users (@joesolly) (#153) + - Migrates CI to gh-actions (@ParthS007 @diegodelemos) (#145) + - Removes dependency on pkg_resources (@eldruin) +- modified patches + % lower-reqs.diff (refreshed) + +------------------------------------------------------------------- +Sun Jun 7 05:35:54 UTC 2020 - John Vandenberg + +- Tidy spec, running test suite via pytest directly + +------------------------------------------------------------------- +Sat Feb 8 16:04:39 UTC 2020 - Kurt Garloff + +- Build python-dictdiffer-0.8.1 via py2pack. +- lower-reqs.diff: Allow building with tox >= 2.9 and + setuptools_scm >= 1.15. diff --git a/python-dictdiffer.spec b/python-dictdiffer.spec new file mode 100644 index 0000000..6788452 --- /dev/null +++ b/python-dictdiffer.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-dictdiffer +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-dictdiffer +Version: 0.9.0 +Release: 0 +Summary: Dictdiffer is a library that helps you to diff and patch dictionaries +License: MIT +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 wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-numpy >= 1.11.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest >= 2.8.0} +# /SECTION +%python_subpackages + +%description +Dictdiffer is a library that helps you to diff and patch dictionaries. + +%prep +%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 +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc AUTHORS CHANGES README.rst +%license LICENSE +%{python_sitelib}/dictdiffer +%{python_sitelib}/dictdiffer-%{version}.dist-info + +%changelog