2018-06-02 10:00:04 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sparse
|
|
|
|
#
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
# Copyright (c) 2023 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
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-04-22 07:24:03 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-06-02 10:00:04 +00:00
|
|
|
Name: python-sparse
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
Version: 0.14.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
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-06-02 10:00:04 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-06-02 10:00:04 +00:00
|
|
|
# SECTION test requirements
|
2022-07-15 06:54:31 +00:00
|
|
|
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}
|
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
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
%pyproject_wheel
|
2018-06-02 10:00:04 +00:00
|
|
|
|
|
|
|
%install
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
%pyproject_install
|
2018-06-02 10:00:04 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2023-05-30 08:12:27 +00:00
|
|
|
# https://github.com/pydata/sparse/issues/594
|
|
|
|
donttest="test_tensordot"
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
# 32bit fails in half of the test suite because the tests try to convert to 64bit types
|
|
|
|
if [ $(getconf LONG_BIT) -eq 64 ]; then
|
2023-05-30 08:12:27 +00:00
|
|
|
%pytest -k "not ($donttest)"
|
Accepting request 1074413 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.0
* sparse.einsum support (PR #564 thanks @jcmgray)
* Some bug-fixes (PR #524, PR #527, PR #555 thanks @hameerabbasi,
PR #569, thanks @jamestwebber, PR #534, thanks
@sarveshbhatnagar)
* Some performance improvements (PR #570, thanks @jamestwebber,
PR #540, thanks @smldub).
- Skip python311 build: no numba yet
- Drop skip-32bit-archs.patch, disable 32bit test suite: too many
tests involve 64bit types
OBS-URL: https://build.opensuse.org/request/show/1074413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=17
2023-03-26 16:46:30 +00:00
|
|
|
fi
|
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
|