]> git.pld-linux.org Git - packages/python3-numpy.git/commitdiff
- run tests auto/th/python3-numpy-1.18.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 18 Jan 2020 19:09:24 +0000 (20:09 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 18 Jan 2020 19:09:24 +0000 (20:09 +0100)
python3-numpy.spec

index 7fcd2bff44315a7ab2aceb7c2547435eee548cf8..9c88df6a5cf3c77200a1366e73ecdb1d09f60476 100644 (file)
@@ -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
 %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
 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
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 Requires:      python3-libs >= 1:3.5
@@ -69,6 +76,10 @@ LDFLAGS="%{rpmldflags} -shared"
 
 %py3_build
 
 
 %py3_build
 
+%if %{with tests}
+%{__python3} runtests.py --mode=full
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.08387 seconds and 4 git commands to generate.