commit 3a26a2ba211c07fc829fae6e4780ea05f0992cf2
Author: Jakub Bogusz <[email protected]>
Date:   Sat Jan 18 20:09:24 2020 +0100

    - run tests

 python3-numpy.spec | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/python3-numpy.spec b/python3-numpy.spec
index 7fcd2bf..9c88df6 100644
--- a/python3-numpy.spec
+++ b/python3-numpy.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+
 %define                module  numpy
 Summary:       Python 3.x numerical facilities
 Summary(pl.UTF-8):     Moduły do obliczeń numerycznych dla języka Python 3.x
@@ -16,6 +20,9 @@ BuildRequires:        lapack-devel >= 3.1.1-2
 BuildRequires: python3-Cython >= 0.29.14
 BuildRequires: python3-devel >= 1:3.5
 BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 Requires:      python3-libs >= 1:3.5
@@ -69,6 +76,10 @@ LDFLAGS="%{rpmldflags} -shared"
 
 %py3_build
 
+%if %{with tests}
+%{__python3} runtests.py --mode=full
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-numpy.git/commitdiff/3a26a2ba211c07fc829fae6e4780ea05f0992cf2

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to