From 28c94dcdbe151f523a93b961a6e7a719e2fbdca47e26c5cd3e7d1187a2c1b84d Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 29 May 2018 14:51:50 +0000 Subject: [PATCH] Accepting request 612560 from devel:languages:python Scikits sparse matrix package OBS-URL: https://build.opensuse.org/request/show/612560 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-scikit-sparse?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + LICENSE.txt | 9 ++++ python-scikit-sparse.changes | 17 +++++++ python-scikit-sparse.spec | 88 ++++++++++++++++++++++++++++++++++++ scikit-sparse-0.4.3.tar.gz | 3 ++ 6 files changed, 141 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE.txt create mode 100644 python-scikit-sparse.changes create mode 100644 python-scikit-sparse.spec create mode 100644 scikit-sparse-0.4.3.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..f7f2128 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,9 @@ +Copyright (c) 2009-2018, Joscha Reimer, Alex Grigorievskiy, Antony Lee, Yuri, Leon Barrett, Dag Sverre Seljebotn, Nathaniel Smith, David Cournapeau + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/python-scikit-sparse.changes b/python-scikit-sparse.changes new file mode 100644 index 0000000..7adf837 --- /dev/null +++ b/python-scikit-sparse.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Thu May 24 17:42:59 UTC 2018 - toddrme2178@gmail.com + +- Add license file +- spec file cleanups + +------------------------------------------------------------------- +Thu Apr 19 16:51:57 UTC 2018 - toddrme2178@gmail.com + +- Update to version 0.4.3 + * The method solve_L can now also use the L matrix of the LL' decomposition. + * Supported versions updated to Python 3.6, 3.5 and 2.7, NumPy 1.14 and 1.13 and SciPy 1.0 and 0.19. + +------------------------------------------------------------------- +Thu May 25 16:14:07 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-scikit-sparse.spec b/python-scikit-sparse.spec new file mode 100644 index 0000000..1b91636 --- /dev/null +++ b/python-scikit-sparse.spec @@ -0,0 +1,88 @@ +# +# spec file for package python-scikit-sparse +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-scikit-sparse +Version: 0.4.3 +# For license file +%define tag c94f8418b6c36c3ff9db4f87e00fc08bd51cfb4b +Release: 0 +Summary: Scikits sparse matrix package +License: GPL-2.0-or-later AND LGPL-2.1-or-later +Group: Development/Languages/Python +Url: https://github.com/scikit-sparse/scikit-sparse/ +Source: https://files.pythonhosted.org/packages/source/s/scikit-sparse/scikit-sparse-%{version}.tar.gz +Source10: https://raw.githubusercontent.com/scikit-sparse/scikit-sparse/%{tag}/LICENSE.txt +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy-devel >= 1.12} +BuildRequires: %{python_module scipy >= 0.18} +BuildRequires: %{python_module setuptools >= 18.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: suitesparse-devel +# SECTION test requirements +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} +# /SECTION +Requires: python-numpy >= 1.12 +Requires: python-scipy >= 0.18 +ExcludeArch: %{ix86} + +%python_subpackages + +%description +Sparse matrix tools. + +This is a home for sparse matrix code in Python that plays well with +scipy.sparse, but that is somehow unsuitable for inclusion in scipy +proper. Usually this will be because it is released under the GPL. + +So far we have a wrapper for the CHOLMOD library for sparse Cholesky +decomposition. Further contributions are welcome! + +%prep +%setup -q -n scikit-sparse-%{version} +cp %{SOURCE10} . +rm -r .eggs + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +mkdir -p tester +pushd tester +ln -s ../sksparse/test_*.py . +ln -s ../sksparse/test_data . +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +py.test-%{$python_bin_suffix} +} +popd + +%files %{python_files} +%doc doc/changes.rst +%doc README.md +%license LICENSE.txt +%{python_sitearch}/* + +%changelog diff --git a/scikit-sparse-0.4.3.tar.gz b/scikit-sparse-0.4.3.tar.gz new file mode 100644 index 0000000..cd2f2af --- /dev/null +++ b/scikit-sparse-0.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4963d99b4b002378d86751d7e5020ba13a206b45f33368176485d8a194b32bdd +size 251879