Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyUSID for openSUSE:Factory checked in at 2022-05-05 23:06:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyUSID (Old) and /work/SRC/openSUSE:Factory/.python-pyUSID.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyUSID" Thu May 5 23:06:38 2022 rev:8 rq:975006 version:0.0.10 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyUSID/python-pyUSID.changes 2022-02-07 23:40:07.757607395 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyUSID.new.1538/python-pyUSID.changes 2022-05-05 23:07:11.965617670 +0200 @@ -1,0 +2,7 @@ +Wed May 4 22:02:36 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Skip failing tests (gh#pycroscopy/pyUSID#80). +- Add abc_iterable.patch to make tests compatible + (gh#pycroscopy/pyUSID#81). + +------------------------------------------------------------------- New: ---- abc_iterable.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyUSID.spec ++++++ --- /var/tmp/diff_new_pack.90goCu/_old 2022-05-05 23:07:12.557618409 +0200 +++ /var/tmp/diff_new_pack.90goCu/_new 2022-05-05 23:07:12.561618415 +0200 @@ -19,8 +19,6 @@ %define packagename pyUSID %{?!python_module:%define python_module() python-%{**}} %define skip_python2 1 -# no dask for python 3.10 yet -%define skip_python310 1 Name: python-pyUSID Version: 0.0.10 Release: 0 @@ -28,6 +26,9 @@ License: MIT URL: https://pycroscopy.github.io/pyUSID/ Source0: https://github.com/pycroscopy/pyUSID/archive/%{version}.tar.gz#/%{packagename}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM abc_iterable.patch gh#pycroscopy/pyUSID#81 mc...@suse.com +# Iterable goes from collections.abc not directly from collections +Patch0: abc_iterable.patch BuildRequires: %{python_module Pillow} BuildRequires: %{python_module cytoolz} BuildRequires: %{python_module dask >= 0.10} @@ -66,7 +67,8 @@ and Imaging Data (USID). %prep -%setup -q -n %{packagename}-%{version} +%autosetup -p1 -n %{packagename}-%{version} + # https://pycroscopy.github.io/pyUSID/ sed -i 's:pytest-runner:pytest:' setup.py @@ -78,7 +80,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# gh#pycroscopy/pyUSID#80 for skips +%pytest -k 'not (test_custom_interp or test_single_default_interp or test_tuple_default_interp or test_normalize_and_default_interp)' %files %{python_files} %doc README.rst ++++++ abc_iterable.patch ++++++ --- pyUSID/io/hdf_utils/simple.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/pyUSID/io/hdf_utils/simple.py +++ b/pyUSID/io/hdf_utils/simple.py @@ -968,7 +968,7 @@ def check_for_matching_attrs(h5_obj, new break if isinstance(old_value, np.ndarray): - if not isinstance(new_parms[key], collections.Iterable): + if not isinstance(new_parms[key], collections.abc.Iterable): if verbose: print('New parm: {} \t- new parm not iterable unlike old parm *****'.format(key)) tests.append(False) @@ -992,7 +992,7 @@ def check_for_matching_attrs(h5_obj, new print('New parm: {} \t- match: {}'.format(key, answer)) tests.append(answer) else: - """if isinstance(new_parms[key], collections.Iterable): + """if isinstance(new_parms[key], collections.abc.Iterable): if verbose: print('New parm: {} \t- new parm is iterable unlike old parm *****'.format(key)) tests.append(False)