14
0
forked from pool/python-joblib
Tomáš Chvátal
2018-07-20 11:48:55 +00:00
committed by Git OBS Bridge
parent 4e8bbf4af9
commit 067943c263
2 changed files with 8 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 20 11:48:47 UTC 2018 - tchvatal@suse.com
- Enable tests
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 18 03:03:33 UTC 2018 - arun@gmx.de Wed Jul 18 03:03:33 UTC 2018 - arun@gmx.de

View File

@@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-joblib Name: python-joblib
Version: 0.12.1 Version: 0.12.1
Release: 0 Release: 0
@@ -31,10 +30,10 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Recommends: python-numpy Recommends: python-numpy
BuildArch: noarch BuildArch: noarch
%if %{with test} BuildRequires: %{python_module lz4}
BuildRequires: %{python_module numpy} BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
%endif Requires: python-lz4
%python_subpackages %python_subpackages
%description %description
@@ -60,10 +59,8 @@ Joblib can handle large data and has specific optimizations for `numpy` arrays.
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
%python_expand py.test-%{$python_bin_suffix} joblib %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} joblib
%endif
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt