Todd R 2018-11-08 17:24:40 +00:00 committed by Git OBS Bridge
parent 51faf978e8
commit 3bb1ea93e7

View File

@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-requests-mock Name: python-requests-mock
Version: 1.5.2 Version: 1.5.2
Release: 0 Release: 0
@ -61,16 +60,9 @@ You should checkout the docs for more information.
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/mymodule %python_expand %fdupes %{buildroot}%{$python_sitelib}/mymodule
%if %{with test}
%check %check
mv .testr.conf .testr.conf.orig %python_expand pytest-%{$python_bin_suffix} tests/pytest
%{python_expand # first line can't be empty %python_exec setup.py testr
rm -rf .testrepository
sed 's/python/$python/' .testr.conf.orig >| .testr.conf
testr init
testr run --parallel
}
%endif
%files %{python_files} %files %{python_files}
%doc AUTHORS README.rst ChangeLog %doc AUTHORS README.rst ChangeLog