From 425f18e83990607701a51d2f39df45b46161d85c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 18 2020 11:06:15 +0000 Subject: Call pytest directly instead of relying on the %tox macro --- diff --git a/python-watchdog.spec b/python-watchdog.spec index e46beb1..408a6b1 100644 --- a/python-watchdog.spec +++ b/python-watchdog.spec @@ -29,30 +29,23 @@ Obsoletes: python2-%{modname} < 0.8.3-12 %description -n python3-%{modname} A Python API and shell utilities to monitor file system events. - %prep %setup -q -n %{modname}-%{version} - # Remove all shebangs find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d' - # Remove +x of the README file chmod -x README.rst - # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info - %build %py3_build - %install %py3_install - %check -%tox +PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %files -n python3-%{modname} %doc README.rst @@ -61,7 +54,6 @@ rm -rf %{modname}.egg-info %{python3_sitelib}/%{modname}-%{version}-*/ %{_bindir}/watchmedo* - %changelog * Tue Feb 18 2020 Pierre-Yves Chibon - 0.10.2-1 - Update to the upstream release 0.10.2