From 657c0bc1ce34aafe2414d74bc421815e284489ebf463fcf15c564be5ae4916cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 19 Feb 2019 12:53:12 +0000 Subject: [PATCH] - Enable testsuite OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=11 --- python-numpy.changes | 5 +++++ python-numpy.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/python-numpy.changes b/python-numpy.changes index 914444e..c62d1ca 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 19 12:52:51 UTC 2019 - Tomáš Chvátal + +- Enable testsuite + ------------------------------------------------------------------- Tue Feb 5 22:14:25 UTC 2019 - Todd R diff --git a/python-numpy.spec b/python-numpy.spec index adfc130..943bef0 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -200,7 +200,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %if %{without hpc} -%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite +#%%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite %else @@ -245,6 +245,12 @@ EOF } %endif +%check +pushd doc &> /dev/null +export PYTHONDONTWRITEBYTECODE=1 +%python_expand PYTHONPATH="%{buildroot}%{$python_sitearch}" PATH="%{buildroot}%{_bindir}:$PATH" $python -m pytest -v --pyargs numpy +popd &> /dev/null + %files %{python_files} %defattr(-,root,root) %doc *.txt