Accepting request 824544 from devel:languages:python
- Remove dependency on pytest-runner as it is unnecessary OBS-URL: https://build.opensuse.org/request/show/824544 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pillow?expand=0&rev=40
This commit is contained in:
commit
3ec0ca2240
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 5 18:37:46 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove dependency on pytest-runner as it is unnecessary
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 11 18:36:52 UTC 2020 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
|
@ -28,7 +28,6 @@ URL: https://python-pillow.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module olefile}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module tk}
|
||||
@ -99,18 +98,18 @@ Python Imaging Library by Fredrik Lundh and Contributors.
|
||||
%{python_expand echo "PIL" > %{buildroot}%{$python_sitearch}/PIL.pth}
|
||||
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1
|
||||
%if %{_arch} == s390 || %{_arch} == s390x
|
||||
echo "WARNING ignoring tests completely due to https://github.com/python-pillow/Pillow/issues/1204 and segfault"
|
||||
%else
|
||||
%if %{_arch} == ppc || %{_arch} == ppc64
|
||||
$python selftest.py --installed || \
|
||||
echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204"
|
||||
$python setup.py test || \
|
||||
pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v || \
|
||||
echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204"
|
||||
%else
|
||||
$python selftest.py --installed
|
||||
$python -m pytest -v -k 'not (test_stroke or test_stroke_multiline)'
|
||||
pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v -k 'not (test_stroke or test_stroke_multiline)'
|
||||
%endif
|
||||
%endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user