[packages/python-chardet] - pytest-runner is deprecated, call pytest directly

qboosh qboosh at pld-linux.org
Sun Dec 29 12:14:13 CET 2019


commit 9206d4a48ede856f595f806fe2bc1330c5661f5e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 29 12:15:02 2019 +0100

    - pytest-runner is deprecated, call pytest directly

 python-chardet.spec | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/python-chardet.spec b/python-chardet.spec
index 56bc0be..070d722 100644
--- a/python-chardet.spec
+++ b/python-chardet.spec
@@ -81,11 +81,19 @@ Dokumentacja API modułu Pythona chardet.
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -m pytest test.py
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest test.py
+%endif
 %endif
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-chardet.git/commitdiff/9206d4a48ede856f595f806fe2bc1330c5661f5e



More information about the pld-cvs-commit mailing list