1
0
forked from pool/python-sparse
Files
python-sparse/python-sparse.spec

82 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-sparse
#
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-sparse
Version: 0.14.0
Release: 0
Summary: Sparse n-dimensional arrays for Python
License: BSD-3-Clause
Group: Development/Languages/Python
Accepting request 859094 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.11.2 * 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, thanks @daletovar) * Added the COO.swapaxes method. (PR #344, thanks @lueckem) * Added multi-axis 1-D indexing support. (PR #343, thanks @mikeymezher) * Fix outer for arrays that weren’t 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, PR #386) - Changelog for 0.10.0 * 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 arrays. (Issue #306, PR #318) * Implement deterministic dask tokenization. (Issue #300, PR #320, thanks @danielballan) * 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). OBS-URL: https://build.opensuse.org/request/show/859094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=5
2020-12-29 20:52:19 +00:00
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}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module dask-array}
Accepting request 859094 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.11.2 * 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, thanks @daletovar) * Added the COO.swapaxes method. (PR #344, thanks @lueckem) * Added multi-axis 1-D indexing support. (PR #343, thanks @mikeymezher) * Fix outer for arrays that weren’t 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, PR #386) - Changelog for 0.10.0 * 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 arrays. (Issue #306, PR #318) * Implement deterministic dask tokenization. (Issue #300, PR #320, thanks @danielballan) * 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). OBS-URL: https://build.opensuse.org/request/show/859094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=5
2020-12-29 20:52:19 +00:00
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
Accepting request 859094 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.11.2 * 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, thanks @daletovar) * Added the COO.swapaxes method. (PR #344, thanks @lueckem) * Added multi-axis 1-D indexing support. (PR #343, thanks @mikeymezher) * Fix outer for arrays that weren’t 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, PR #386) - Changelog for 0.10.0 * 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 arrays. (Issue #306, PR #318) * Implement deterministic dask tokenization. (Issue #300, PR #320, thanks @danielballan) * 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). OBS-URL: https://build.opensuse.org/request/show/859094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=5
2020-12-29 20:52:19 +00:00
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
Accepting request 859094 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.11.2 * 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, thanks @daletovar) * Added the COO.swapaxes method. (PR #344, thanks @lueckem) * Added multi-axis 1-D indexing support. (PR #343, thanks @mikeymezher) * Fix outer for arrays that weren’t 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, PR #386) - Changelog for 0.10.0 * 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 arrays. (Issue #306, PR #318) * Implement deterministic dask tokenization. (Issue #300, PR #320, thanks @danielballan) * 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). OBS-URL: https://build.opensuse.org/request/show/859094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=5
2020-12-29 20:52:19 +00:00
%autosetup -p1 -n sparse-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/pydata/sparse/issues/594
donttest="test_tensordot"
# 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 -k "not ($donttest)"
fi
%files %{python_files}
%doc README.rst docs/*.rst
%license LICENSE
Accepting request 859094 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.11.2 * 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, thanks @daletovar) * Added the COO.swapaxes method. (PR #344, thanks @lueckem) * Added multi-axis 1-D indexing support. (PR #343, thanks @mikeymezher) * Fix outer for arrays that weren’t 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, PR #386) - Changelog for 0.10.0 * 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 arrays. (Issue #306, PR #318) * Implement deterministic dask tokenization. (Issue #300, PR #320, thanks @danielballan) * 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). OBS-URL: https://build.opensuse.org/request/show/859094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=5
2020-12-29 20:52:19 +00:00
%{python_sitelib}/sparse
%{python_sitelib}/sparse-%{version}*-info
%changelog