17
0

- drop do-not-use-numpy-decorators.patch

- drop numpy125.patch
- Update to 0.4.1
  * BLD: fix building with Clang, avoid using GCC-specific -print-sysroot
  * BLD: try to locate OpenBLAS with pkg-config first
  * BLD: add support for using a native file to set library/include dirs
  * DOC: update and extend the install instructions
  * MAINT: include particular headers only for version < 6
- 0.4.0
  * Allow reuse of symbolic factorization
  * do not use deprecated pkg_resources
  * fix deprecation warning
  * do not use NumPy decorators
  * do not use nose-compat NumPy functions
  * BLD: fix the build, remove `stdint.h` and suppress warnings
  * TST: fix issues in test suite
  * BLD: fix building in conda envs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-umfpack?expand=0&rev=15
This commit is contained in:
2024-02-07 07:31:40 +00:00
committed by Git OBS Bridge
parent bd6941befb
commit 613d28098a
6 changed files with 35 additions and 162 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-scikit-umfpack
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,18 @@
%define oldpython python
Name: python-scikit-umfpack
Version: 0.3.3
Version: 0.4.1
Release: 0
Summary: Python interface to UMFPACK sparse direct solver
License: BSD-3-Clause
URL: https://github.com/scikit-umfpack/scikit-umfpack
Source0: https://files.pythonhosted.org/packages/source/s/scikit-umfpack/scikit-umfpack-%{version}.tar.gz
# PATCH-FIX-UPSTREAM both patches sent upstream in https://github.com/scikit-umfpack/scikit-umfpack/pull/87 NumPy 1.25 compatibility fixes
Patch0: do-not-use-numpy-decorators.patch
Patch1: numpy125.patch
Source0: https://files.pythonhosted.org/packages/source/s/scikit-umfpack/scikit_umfpack-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module meson-python}
BuildRequires: %{python_module numpy-devel >= 1.14.3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module scipy >= 1.0.0rc1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: c++_compiler
BuildRequires: fdupes
BuildRequires: gcc-fortran
@@ -54,27 +53,26 @@ Obsoletes: %{oldpython}-scikits-umfpack < %{version}
The scikit-umfpack package provides wrapper of UMFPACK sparse direct solver to SciPy.
%prep
%setup -q -n scikit-umfpack-%{version}
%setup -q -n scikit_umfpack-%{version}
%autopatch -p1
sed -i -e '/^#!\//, 1d' scikits/umfpack/setup.py
sed -i -e '/^#!\//, 1d' scikits/umfpack/tests/try_umfpack.py
%build
export LANG=en_US.UTF-8
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
export LANG=en_US.UTF-8
%python_install
%pyproject_install
%python_expand rm %{buildroot}%{$python_sitearch}/scikits/__init__.py*
%python_expand rm %{buildroot}%{$python_sitearch}/MANIFEST.in
%python_expand rm -rf %{buildroot}%{$python_sitearch}/scikits/__pycache__
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
export LANG=en_US.UTF-8
export CFLAGS="%{optflags}"
%pytest_arch
%pytest_arch --pyargs scikits.umfpack
%files %{python_files}
%doc README.rst