1
0
forked from pool/python-sparse

Compare commits

8 Commits

Author SHA256 Message Date
50ee1a1deb Accepting request 1248473 from devel:languages:python:numeric
- update to 0.15.5:
  * Make sure [r]matmul__ returns NotImplemented on invalid types.

- Limit numpy to < 2.
- skip python 3.6 build
  * Fix TypingError on sparse.dot with complex dtypes. (Issue #403,
    PR #404)
  * Improve the performance of sparse.dot. (Issue #331, PR #389,
  * Added multi-axis 1-D indexing support. (PR #343, thanks
  * Fix outer for arrays that weren’t one-dimensional. (Issue #346,
  * Fix for COO constructor accepting invalid inputs. (Issue #385,
  * Fixed a bug where converting an empty DOK array to COO leads to
  * Remove broadcasting restriction between sparse arrays and dense
  * Implement deterministic dask tokenization. (Issue #300, PR
  * Improve testing around densification (PR #321, thanks
  * Replace linear_loc with ravel_multi_index, which is 3x faster.
  * Add error msg to tensordot operation when ndim==0 (Issue #332,
  * Maintainence fixes for Sphinx 3.0 and Numba 0.49, and dropping
  * Fixed a bug where indexing with an empty list could lead to
  * Add the diagonal and diagonalize functions. (Issue #288, PR
  * Add stack and concatenate for GCXS. (Issue #301, PR #303,
  * Fix issue where functions dispatching to an attribute access
  * Add partial support for constructing and mirroring COO objects

OBS-URL: https://build.opensuse.org/request/show/1248473
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sparse?expand=0&rev=21
2025-02-26 16:17:21 +00:00
82c2b8f5fe - update to 0.15.5:
* Make sure [r]matmul__ returns NotImplemented on invalid types.
- Limit numpy to < 2.
- skip python 3.6 build
  * Fix TypingError on sparse.dot with complex dtypes. (Issue #403,
    PR #404)
  * Improve the performance of sparse.dot. (Issue #331, PR #389,
  * Added multi-axis 1-D indexing support. (PR #343, thanks
  * Fix outer for arrays that weren’t one-dimensional. (Issue #346,
  * Fix for COO constructor accepting invalid inputs. (Issue #385,
  * Fixed a bug where converting an empty DOK array to COO leads to
  * Remove broadcasting restriction between sparse arrays and dense
  * Implement deterministic dask tokenization. (Issue #300, PR
  * Improve testing around densification (PR #321, thanks
  * Replace linear_loc with ravel_multi_index, which is 3x faster.
  * Add error msg to tensordot operation when ndim==0 (Issue #332,
  * Maintainence fixes for Sphinx 3.0 and Numba 0.49, and dropping
  * Fixed a bug where indexing with an empty list could lead to
  * Add the diagonal and diagonalize functions. (Issue #288, PR
  * Add stack and concatenate for GCXS. (Issue #301, PR #303,
  * Fix issue where functions dispatching to an attribute access
  * Add partial support for constructing and mirroring COO objects

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=35
2025-02-25 20:19:11 +00:00
68e3bcfff9 Accepting request 1226481 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1226481
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sparse?expand=0&rev=20
2024-11-27 21:10:53 +00:00
7c42eea15b - Re-enable python 3.13 since numba has been patched to support it
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=33
2024-11-26 11:04:23 +00:00
4598db3a34 Accepting request 1225339 from devel:languages:python:numeric
- Skip python313: No numba 0.61 yet (forwarded request 1225338 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/1225339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sparse?expand=0&rev=19
2024-11-21 14:14:02 +00:00
fb247d5359 - Skip python313: No numba 0.61 yet
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=31
2024-11-20 16:26:21 +00:00
dfc96593d3 Accepting request 1202832 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1202832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sparse?expand=0&rev=18
2024-09-24 15:33:59 +00:00
245d09b6e4 - Switch to testing in multibuild: The obs runtime requirement
resolver deals with numba/numpy blockage more gracefully than
  trying to resolve a BuildRequires on them. Numba 0.60 is
  restricted to Numpy < 2.1 right now.
* Test in parallel with xdist

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=29
2024-09-24 08:47:37 +00:00
5 changed files with 82 additions and 40 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Tue Feb 25 20:18:47 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.15.5:
* Make sure [r]matmul__ returns NotImplemented on invalid types.
-------------------------------------------------------------------
Tue Nov 26 10:27:28 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Re-enable python 3.13 since numba has been patched to support it
-------------------------------------------------------------------
Wed Nov 20 15:53:53 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Skip python313: No numba 0.61 yet
-------------------------------------------------------------------
Mon Sep 23 19:48:30 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Switch to testing in multibuild: The obs runtime requirement
resolver deals with numba/numpy blockage more gracefully than
trying to resolve a BuildRequires on them. Numba 0.60 is
restricted to Numpy < 2.1 right now.
* Test in parallel with xdist
-------------------------------------------------------------------
Fri Aug 30 14:42:24 UTC 2024 - Ben Greiner <code@bnavigator.de>
@@ -6,7 +31,7 @@ Fri Aug 30 14:42:24 UTC 2024 - Ben Greiner <code@bnavigator.de>
-------------------------------------------------------------------
Mon Jul 8 05:01:00 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Limit numpy to < 2.
- Limit numpy to < 2.
-------------------------------------------------------------------
Thu Jun 6 18:03:14 UTC 2024 - Ben Greiner <code@bnavigator.de>
@@ -114,61 +139,61 @@ Wed Sep 22 12:39:03 UTC 2021 - Ben Greiner <code@bnavigator.de>
-------------------------------------------------------------------
Fri Feb 12 14:15:38 UTC 2021 - Dirk Müller <dmueller@suse.com>
- skip python 3.6 build
- skip python 3.6 build
-------------------------------------------------------------------
Mon Dec 28 11:56:48 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to 0.11.2
* Fix TypingError on sparse.dot with complex dtypes. (Issue #403,
PR #404)
* Fix TypingError on sparse.dot with complex dtypes. (Issue #403,
PR #404)
- Changelog for 0.11.1
* Fix ValueError on sparse.dot with extremely small values.
(Issue #398, PR #399)
- Changelog for 0.11.0
* Improve the performance of sparse.dot. (Issue #331, PR #389,
* Improve the performance of sparse.dot. (Issue #331, PR #389,
thanks @daletovar)
* Added the COO.swapaxes method. (PR #344, thanks @lueckem)
* Added multi-axis 1-D indexing support. (PR #343, thanks
* Added multi-axis 1-D indexing support. (PR #343, thanks
@mikeymezher)
* Fix outer for arrays that werent one-dimensional. (Issue #346,
* Fix outer for arrays that werent one-dimensional. (Issue #346,
PR #347)
* Add casting kwarg to COO.astype. (Issue #391, PR #392)
* Fix for COO constructor accepting invalid inputs. (Issue #385,
* Fix for COO constructor accepting invalid inputs. (Issue #385,
PR #386)
- Changelog for 0.10.0
* Fixed a bug where converting an empty DOK array to COO leads to
* Fixed a bug where converting an empty DOK array to COO leads to
an incorrect dtype. (Issue #314, PR #315)
* Change code formatter to black. (PR #284)
* Add COO.flatten and sparse.outer. (Issue #316, PR #317).
* Remove broadcasting restriction between sparse arrays and dense
* Remove broadcasting restriction between sparse arrays and dense
arrays. (Issue #306, PR #318)
* Implement deterministic dask tokenization. (Issue #300, PR
* Implement deterministic dask tokenization. (Issue #300, PR
#320, thanks @danielballan)
* Improve testing around densification (PR #321, thanks
* Improve testing around densification (PR #321, thanks
@danielballan)
* Simplify Numba extension. (PR #324, thanks @eric-wieser).
* Respect copy=False in astype (PR #328, thanks @eric-wieser).
* Replace linear_loc with ravel_multi_index, which is 3x faster.
* Replace linear_loc with ravel_multi_index, which is 3x faster.
(PR #330, thanks @eric-wieser).
* Add error msg to tensordot operation when ndim==0 (Issue #332,
* Add error msg to tensordot operation when ndim==0 (Issue #332,
PR #333, thanks @guilhermeleobas).
* Maintainence fixes for Sphinx 3.0 and Numba 0.49, and dropping
* Maintainence fixes for Sphinx 3.0 and Numba 0.49, and dropping
support for Python 3.5. (PR #337).
* Fixed signature for numpy.clip.
- Changelog for 0.9.1
* Fixed a bug where indexing with an empty list could lead to
* Fixed a bug where indexing with an empty list could lead to
issues. (Issue #281, PR #282)
* Change code formatter to black. (PR #284)
* Add the diagonal and diagonalize functions. (Issue #288, PR
* Add the diagonal and diagonalize functions. (Issue #288, PR
#289, thanks @pettni)
* Add HTML repr for notebooks. (PR #283, thanks @daletovar)
* Avoid making copy of coords when making a new COO array.
* Add stack and concatenate for GCXS. (Issue #301, PR #303,
* Add stack and concatenate for GCXS. (Issue #301, PR #303,
thanks @daletovar).
* Fix issue where functions dispatching to an attribute access
* Fix issue where functions dispatching to an attribute access
wouldnt work with __array_function__. (Issue #308, PR #309).
* Add partial support for constructing and mirroring COO objects
* Add partial support for constructing and mirroring COO objects
to Numba.
- add sparse-pr421-fix-cootype.patch
* gh#pydata/sparse#420

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sparse
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,21 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == ""
%define psuffix %{nil}
%bcond_with test
BuildArch: noarch
%else
%bcond_without test
%define psuffix -%{flavor}
# 32bit fails in half of the test suite because the tests try to convert to 64bit types
ExcludeArch: %{ix86} %{arm} ppc
%endif
%{?sle15_python_module_pythons}
Name: python-sparse
Version: 0.15.4
Name: python-sparse%{psuffix}
Version: 0.15.5
Release: 0
Summary: Sparse n-dimensional arrays for Python
License: BSD-3-Clause
@@ -29,20 +41,17 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 64}
BuildRequires: %{python_module setuptools_scm >= 8}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module dask-array}
BuildRequires: %{python_module numba >= 0.49}
BuildRequires: %{python_module numpy >= 1.17}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy >= 0.19}
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-numba >= 0.49
Requires: python-numpy >= 1.17
Requires: python-scipy >= 0.19
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module dask-array}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sparse = %{version}}
%endif
%python_subpackages
%description
@@ -59,22 +68,27 @@ intended for somewhat general use.
sed -i /addopts/d pytest.ini
%build
%if !%{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
# 32bit fails in half of the test suite because the tests try to convert to 64bit types
if [ $(getconf LONG_BIT) -eq 64 ]; then
%pytest
fi
%pytest -n auto
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst docs/*.rst
%license LICENSE
%{python_sitelib}/sparse
%{python_sitelib}/sparse-%{version}*-info
%{python_sitelib}/sparse-%{version}.dist-info
%endif
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d4b1c57d24ff0f64f2fd5b5a95b49b7fb84ed207a26d7d58ce2764dcc5c72b84
size 359721

3
sparse-0.15.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c76ce0c96f5cd5c31b7e79e650f0022424c2b16f05f10049e9c6381ee4be266
size 359719