Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-datadiff for openSUSE:Factory
checked in at 2024-01-10 21:52:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-datadiff (Old)
and /work/SRC/openSUSE:Factory/.python-datadiff.new.21961 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-datadiff"
Wed Jan 10 21:52:35 2024 rev:5 rq:1137862 version:2.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-datadiff/python-datadiff.changes
2023-10-05 20:05:00.650739839 +0200
+++
/work/SRC/openSUSE:Factory/.python-datadiff.new.21961/python-datadiff.changes
2024-01-10 21:52:49.413332665 +0100
@@ -1,0 +2,7 @@
+Wed Jan 10 05:02:55 UTC 2024 - Steve Kowalik <[email protected]>
+
+- Add patch support-python312.patch:
+ * In Python 3.12, slice() is now hashable, use a class that isn't hashable.
+- Switch to pyproject macros.
+
+-------------------------------------------------------------------
New:
----
support-python312.patch
BETA DEBUG BEGIN:
New:
- Add patch support-python312.patch:
* In Python 3.12, slice() is now hashable, use a class that isn't hashable.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-datadiff.spec ++++++
--- /var/tmp/diff_new_pack.z4lDua/_old 2024-01-10 21:52:49.989353583 +0100
+++ /var/tmp/diff_new_pack.z4lDua/_new 2024-01-10 21:52:49.989353583 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-datadiff
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2019, Martin Hauke <[email protected]>
#
# All modifications and additions to the file contributed by third parties
@@ -26,9 +26,13 @@
#Source:
https://files.pythonhosted.org/packages/source/d/datadiff/datadiff-%%{version}.tar.gz
#Git-Clone: https://git.code.sf.net/p/datadiff/code
Source: datadiff-%{version}.tar.xz
-# https://sourceforge.net/p/datadiff/code/merge-requests/3/
+# PATCH-FIX-UPSTREAM https://sourceforge.net/p/datadiff/code/merge-requests/3/
Patch0: python-datadiff-no-six.patch
+# PATCH-FIX-UPSTREAM https://sourceforge.net/p/datadiff/code/merge-requests/4/
+Patch1: support-python312.patch
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -50,10 +54,10 @@
%autosetup -p1 -n datadiff-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -62,5 +66,5 @@
%files %{python_files}
%license LICENSE
%{python_sitelib}/datadiff
-%{python_sitelib}/datadiff-%{version}*-info
+%{python_sitelib}/datadiff-%{version}.dist-info
++++++ support-python312.patch ++++++
Index: datadiff-2.2.0/datadiff/tests/test_datadiff.py
===================================================================
--- datadiff-2.2.0.orig/datadiff/tests/test_datadiff.py
+++ datadiff-2.2.0/datadiff/tests/test_datadiff.py
@@ -377,8 +377,12 @@ def test_DataDiff_change_type():
def test_unhashable_type():
+ class UnhashableType:
+ def __eq__(self, other):
+ return False
+
a = []
- b = [slice(1)]
+ b = [UnhashableType()]
pytest.raises(NotHashable, diff, a, b)