diff --git a/python-hupper.spec b/python-hupper.spec index 8fc3191..8087ed7 100644 --- a/python-hupper.spec +++ b/python-hupper.spec @@ -14,13 +14,11 @@ BuildArch: noarch BuildRequires: python2-devel python3-devel # python2 test buildrequires -BuildRequires: python2-watchdog BuildRequires: python2-pytest BuildRequires: python2-pytest-cov BuildRequires: python2-mock # python3 test buildrequires -BuildRequires: python3-watchdog BuildRequires: python3-pytest BuildRequires: python3-pytest-cov BuildRequires: python3-mock @@ -65,9 +63,8 @@ When files are changed the process is restarted. %py3_install %check -%{__python2} setup.py test -# For some reason python3 tests fail currently, re-enable once they are working. -#{__python3} setup.py test +PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m pytest +PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest # Note that there is no %%files section for the unversioned python module if we are building for several python runtimes %files -n python2-%{srcname}