From e6f2374bfbdee394537d03dcb8a066ca688af5c638daf0eadfd16bd90f89b8c9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 21 Oct 2022 09:10:06 +0000 Subject: [PATCH 1/3] - Skip failing test on 32bit arch (gh#pydata/sparse#490). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=13 --- python-sparse.changes | 5 +++++ python-sparse.spec | 3 +++ skip-32bit-archs.patch | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 skip-32bit-archs.patch diff --git a/python-sparse.changes b/python-sparse.changes index 62b9b10..afc8b55 100644 --- a/python-sparse.changes +++ b/python-sparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 21 08:39:20 UTC 2022 - Matej Cepl + +- Skip failing test on 32bit arch (gh#pydata/sparse#490). + ------------------------------------------------------------------- Thu Jul 14 17:53:01 UTC 2022 - Ben Greiner diff --git a/python-sparse.spec b/python-sparse.spec index f94f14b..f0a4fca 100644 --- a/python-sparse.spec +++ b/python-sparse.spec @@ -26,6 +26,9 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/pydata/sparse Source: https://files.pythonhosted.org/packages/source/s/sparse/sparse-%{version}.tar.gz +# PATCH-FIX-UPSTREAM skip-32bit-archs.patch gh#pydata/sparse#490 mcepl@suse.com +# Skip some tests on 32bit architecture +Patch0: skip-32bit-archs.patch BuildRequires: %{python_module setuptools} # SECTION test requirements BuildRequires: %{python_module dask-array} diff --git a/skip-32bit-archs.patch b/skip-32bit-archs.patch new file mode 100644 index 0000000..f741067 --- /dev/null +++ b/skip-32bit-archs.patch @@ -0,0 +1,23 @@ +--- + sparse/tests/test_coo.py | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/sparse/tests/test_coo.py ++++ b/sparse/tests/test_coo.py +@@ -1,6 +1,7 @@ + import contextlib + import operator + import pickle ++import platform + import sys + from functools import reduce + +@@ -14,6 +15,8 @@ from sparse import COO + from sparse._settings import NEP18_ENABLED + from sparse._utils import assert_eq, random_value_array, html_table + ++pytestmark = pytest.mark.skipif(platform.architecture()[0] == '32bit', ++ reason='Fails on 32bit arch (gh#pydata/sparse#490)') + + @pytest.fixture(scope="module", params=["f8", "f4", "i8", "i4"]) + def random_sparse(request): From 1be273eba8fb832ccace3a98787960479de2c88dfbbad5d8fe1c857f99ab8ed9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 25 Oct 2022 05:06:32 +0000 Subject: [PATCH 2/3] - Add skip-32bit-archs.patch skiping a failing test on 32bit arch (gh#pydata/sparse#490). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=14 --- python-sparse.changes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-sparse.changes b/python-sparse.changes index afc8b55..a7a7ad1 100644 --- a/python-sparse.changes +++ b/python-sparse.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- Fri Oct 21 08:39:20 UTC 2022 - Matej Cepl -- Skip failing test on 32bit arch (gh#pydata/sparse#490). +- Add skip-32bit-archs.patch skiping a failing test on 32bit arch + (gh#pydata/sparse#490). ------------------------------------------------------------------- Thu Jul 14 17:53:01 UTC 2022 - Ben Greiner From 9ed46beb28de665a16399412d6f3a27796c322cc28604bad7f649ea09c5d6a6f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 25 Oct 2022 05:11:00 +0000 Subject: [PATCH 3/3] - Also remove conditional python_module definition. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=15 --- python-sparse.changes | 1 + python-sparse.spec | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/python-sparse.changes b/python-sparse.changes index a7a7ad1..fab7cce 100644 --- a/python-sparse.changes +++ b/python-sparse.changes @@ -3,6 +3,7 @@ Fri Oct 21 08:39:20 UTC 2022 - Matej Cepl - Add skip-32bit-archs.patch skiping a failing test on 32bit arch (gh#pydata/sparse#490). +- Also remove conditional python_module definition. ------------------------------------------------------------------- Thu Jul 14 17:53:01 UTC 2022 - Ben Greiner diff --git a/python-sparse.spec b/python-sparse.spec index f0a4fca..184f17b 100644 --- a/python-sparse.spec +++ b/python-sparse.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-sparse Version: 0.13.0