14
0
forked from pool/python-joblib

- Switch to %pytest

- Add patch to work well with new numpy:
  * numpy16.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=28
This commit is contained in:
Tomáš Chvátal
2019-05-30 08:05:13 +00:00
committed by Git OBS Bridge
parent 8baf6f89c9
commit d91362b135
3 changed files with 67 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/joblib/joblib
Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz
Patch0: numpy16.patch
BuildRequires: %{python_module lz4}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module psutil}
@@ -53,6 +54,7 @@ Joblib can handle large data and has specific optimizations for `numpy` arrays.
%prep
%setup -q -n joblib-%{version}
%patch0 -p1
%build
%python_build
@@ -63,9 +65,7 @@ Joblib can handle large data and has specific optimizations for `numpy` arrays.
%check
export LANG=en_US.UTF-8
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix} joblib
}
%pytest
%files %{python_files}
%license LICENSE.txt