diff --git a/python-rpyc.changes b/python-rpyc.changes index b6f4509..06d5e5c 100644 --- a/python-rpyc.changes +++ b/python-rpyc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 5 07:25:44 UTC 2019 - Tomáš Chvátal + +- Fix test execution to make sure we run it under all interpreters + ------------------------------------------------------------------- Fri May 24 10:59:46 UTC 2019 - Marketa Calabkova diff --git a/python-rpyc.spec b/python-rpyc.spec index e6b4617..9dba10f 100644 --- a/python-rpyc.spec +++ b/python-rpyc.spec @@ -31,25 +31,21 @@ Release: 0 Summary: Remote Python Call (RPyC), a RPC library License: MIT Group: Development/Languages/Python -Url: https://github.com/tomerfiliba/rpyc -#Source: https://files.pythonhosted.org/packages/source/r/rpyc/rpyc-%%{version}.tar.gz +URL: https://github.com/tomerfiliba/rpyc Source: https://github.com/tomerfiliba/rpyc/archive/%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -# SECTION test requirements +Requires: python-plumbum +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch %if %{with test} BuildRequires: %{python_module gevent} BuildRequires: %{python_module nose} BuildRequires: %{python_module plumbum} BuildRequires: %{python_module rpyc = %{version}} %endif -# /SECTION -Requires: python-plumbum -BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives - %python_subpackages %description @@ -80,7 +76,7 @@ mv %{buildroot}%{_bindir}/rpyc_registry.py %{buildroot}%{_bindir}/rpyc_registry %if %{with test} %check -nosetests -vv -I test_deploy -I test_gevent_server -I test_ssh -I test_registry +%python_expand nosetests-%{$python_bin_suffix} -v -I test_deploy -I test_gevent_server -I test_ssh -I test_registry %endif %if !%{with test}