forked from pool/python-joblib
- Enable tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=14
This commit is contained in:
committed by
Git OBS Bridge
parent
4e8bbf4af9
commit
067943c263
@@ -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
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-joblib
|
||||
Version: 0.12.1
|
||||
Release: 0
|
||||
@@ -31,10 +30,10 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Recommends: python-numpy
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module lz4}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
Requires: python-lz4
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -60,10 +59,8 @@ Joblib can handle large data and has specific optimizations for `numpy` arrays.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_expand py.test-%{$python_bin_suffix} joblib
|
||||
%endif
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} joblib
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
Reference in New Issue
Block a user