[packages/python-mccabe] - don't rely on pytest-runner (although setup.py still requires it explicitly)

qboosh qboosh at pld-linux.org
Sat Jan 11 08:49:54 CET 2020


commit 32db545acde0ce1122ff73c9155222099dcc6b7a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jan 11 08:49:49 2020 +0100

    - don't rely on pytest-runner (although setup.py still requires it explicitly)

 python-mccabe.spec | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/python-mccabe.spec b/python-mccabe.spec
index 1b823f9..cc14744 100644
--- a/python-mccabe.spec
+++ b/python-mccabe.spec
@@ -61,11 +61,19 @@ Skrypt Neda do sprawdzania złożoności McCabe'a (cyklomatycznej).
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -m pytest test_mccabe.py
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest test_mccabe.py
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-mccabe.git/commitdiff/32db545acde0ce1122ff73c9155222099dcc6b7a



More information about the pld-cvs-commit mailing list