]> git.pld-linux.org Git - packages/python3-filelock.git/commitdiff
use use pytest for running tests
authorJan Palus <atler@pld-linux.org>
Wed, 12 Jan 2022 19:29:19 +0000 (20:29 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 12 Jan 2022 19:29:19 +0000 (20:29 +0100)
python-filelock.spec

index 706968cfa77ea3ace503cbc9dc3f6c82d0a0e09f..3424646bb59f655548a4be87d8c9f44edccdb014 100644 (file)
@@ -20,10 +20,16 @@ BuildRequires:      rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires: python-modules >= 1:2.7
 BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-pytest
+%endif
 %endif
 %if %{with python3}
 BuildRequires: python3-modules >= 1:3.4
 BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
 %endif
 Requires:      python-modules >= 1:2.7
 BuildArch:     noarch
@@ -63,7 +69,8 @@ komunikacji miÄ™dzyprocesowej.
 %py_build
 
 %if %{with tests}
-%{__python} test.py
+PYTHONPATH=$(pwd)/src \
+%{__python} -m pytest tests
 %endif
 %endif
 
@@ -71,7 +78,8 @@ komunikacji miÄ™dzyprocesowej.
 %py3_build
 
 %if %{with tests}
-%{__python3} test.py
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
 %endif
 %endif
 
This page took 0.131231 seconds and 4 git commands to generate.