2018-06-02 10:00:04 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sparse
|
|
|
|
#
|
2021-02-12 14:15:51 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-06-02 10:00:04 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-24 10:44:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-02 10:00:04 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-09-26 18:37:13 +00:00
|
|
|
%define skip_python2 1
|
2018-06-02 10:00:04 +00:00
|
|
|
Name: python-sparse
|
2021-09-22 17:42:15 +00:00
|
|
|
Version: 0.13.0
|
2018-06-02 10:00:04 +00:00
|
|
|
Release: 0
|
2018-07-31 14:01:25 +00:00
|
|
|
Summary: Sparse n-dimensional arrays for Python
|
2018-06-02 10:00:04 +00:00
|
|
|
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
|
2018-06-02 10:00:04 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sparse/sparse-%{version}.tar.gz
|
2019-04-14 10:21:49 +00:00
|
|
|
BuildRequires: %{python_module pathlib}
|
2018-06-02 10:00:04 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
# SECTION test requirements
|
2022-01-25 07:37:32 +00:00
|
|
|
BuildRequires: %{python_module dask-array if %python-base < 3.10}
|
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}
|
2021-09-22 17:42:15 +00:00
|
|
|
BuildRequires: %{python_module numpy >= 1.17}
|
2018-06-02 10:00:04 +00:00
|
|
|
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
|
2021-09-22 17:42:15 +00:00
|
|
|
Requires: python-numpy >= 1.17
|
2018-06-02 10:00:04 +00:00
|
|
|
Requires: python-scipy >= 0.19
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-31 14:01:25 +00:00
|
|
|
This module implements sparse multidimensional arrays on top of NumPy and
|
|
|
|
Scipy.sparse. It generalizes the scipy.sparse.coo_matrix layout, but
|
2018-06-02 10:00:04 +00:00
|
|
|
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}
|
2018-06-02 10:00:04 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2022-01-25 07:37:32 +00:00
|
|
|
# dask is not available for python310 yet
|
|
|
|
python310_flags="--ignore sparse/tests/test_dask_interop.py"
|
|
|
|
%pytest ${$python_flags}
|
2018-06-02 10:00:04 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-04-14 10:21:49 +00:00
|
|
|
%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
|
2018-06-02 10:00:04 +00:00
|
|
|
|
|
|
|
%changelog
|