15
0
forked from pool/python-imread

Accepting request 927745 from home:pgajdos:python

- %check: do not use nose for testing, use %pytest_arch macro
- added patches
  fix https://github.com/luispedro/imread/issues/38
  + python-imread-remove-nose.patch

OBS-URL: https://build.opensuse.org/request/show/927745
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imread?expand=0&rev=9
This commit is contained in:
2021-10-27 19:45:58 +00:00
committed by Git OBS Bridge
parent 772c35b176
commit 8da20fb83d
3 changed files with 458 additions and 4 deletions

View File

@@ -25,6 +25,8 @@ Summary: Image reading library
License: MIT
URL: http://luispedro.org/software/imread
Source: https://files.pythonhosted.org/packages/source/i/imread/imread-%{version}.tar.gz
# https://github.com/luispedro/imread/issues/39
Patch0: python-imread-remove-nose.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module setuptools}
@@ -37,10 +39,10 @@ BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libwebp)
# SECTION test requirements
BuildRequires: %{python_module nose}
# /SECTION
Requires: python-numpy
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
@@ -56,6 +58,7 @@ imsave
%prep
%setup -q -n imread-%{version}
%patch0 -p1
%build
export EXCLUDE_WEBP=0
@@ -67,7 +70,9 @@ export CFLAGS="%{optflags}"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_exec setup.py test
find -name '_imread.*.so' -exec cp {} imread \;
pushd imread
%pytest_arch
%files %{python_files}
%doc ChangeLog README.rst