Files
python-sparse/python-sparse.spec
Matej Cepl 2dcc927e62 Accepting request 920893 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.13.0
  * GCXS improvements and changes.
  * Maintainence fixes
  * sparse.DOK.from_scipy_sparse method
  * Black re-formatting
  * Add sparse.pad
  * Switch to GitHub Actions
  * Fix a number of bugs in format conversion.
  * Fix bug in sparse.matmul for higher-dimensional arrays.
  * Fix scalar conversion to COO
  * Fix OOB memory accesses
  * Fixes element-wise ops with scalar COO array.
  * Fix scalar broadcast_to with nnz==0.
  * Add order parameter to {zero, ones, full}[_like].
  * Fix tensordot typing bugs.
- Release 0.12.0
  * There are a number of large changes in this release. For
    example, we have implemented the GCXS type, and its
    specializations CSR and CSC. We plan on gradually improving the
    performance of these.
  * A number of GCXS fixes and additions
  * Ability to change the index dtype for better storage
    characteristics.
  * Some work on DOK arrays to bring them closer to the other
    formats
  * CSR and CSC specializations of GCXS
  * Fix a number of bugs
  * Add nnz parameter to sparse.random
- Drop sparse-pr421-fix-cootype.patch merged upstream

OBS-URL: https://build.opensuse.org/request/show/920893
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=9
2021-09-22 17:42:15 +00:00

77 lines
2.3 KiB
RPMSpec

#
# spec file for package python-sparse
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
Name: python-sparse
Version: 0.13.0
Release: 0
Summary: Sparse n-dimensional arrays for Python
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
BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module setuptools}
# 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
%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}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst docs/*.rst
%license LICENSE
%{python_sitelib}/sparse
%{python_sitelib}/sparse-%{version}*-info
%changelog