* 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
95 lines
2.7 KiB
RPMSpec
95 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-sparse
|
|
#
|
|
# 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
|
|
# 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/
|
|
#
|
|
|
|
|
|
%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%{psuffix}
|
|
Version: 0.15.5
|
|
Release: 0
|
|
Summary: Sparse n-dimensional arrays for Python
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/pydata/sparse
|
|
Source: https://files.pythonhosted.org/packages/source/s/sparse/sparse-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 64}
|
|
BuildRequires: %{python_module setuptools_scm >= 8}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-numba >= 0.49
|
|
Requires: python-numpy >= 1.17
|
|
Requires: python-scipy >= 0.19
|
|
%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
|
|
This module implements sparse multidimensional arrays on top of NumPy and
|
|
Scipy.sparse. It generalizes the scipy.sparse.coo_matrix layout, but
|
|
extends beyond just rows and columns to an arbitrary number of
|
|
dimensions.
|
|
|
|
The original motivation is for machine learning algorithms, but it is
|
|
intended for somewhat general use.
|
|
|
|
%prep
|
|
%autosetup -p1 -n sparse-%{version}
|
|
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
|
|
%pytest -n auto
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.rst docs/*.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/sparse
|
|
%{python_sitelib}/sparse-%{version}.dist-info
|
|
%endif
|
|
|
|
%changelog
|