forked from pool/python-imageio
Accepting request 872651 from home:bnavigator:branches:devel:languages:python
- Update to version 2.9.0 Fixed * More robust loading of FEI SEM data (#529 by jon-lab). * Fix webcam not working on Win10 (#525). Added * Add a few standard images useful to 3D visualization. * The timeout used in HTTP requests can now be set with an environment variable (#534 by Johann Neuhauser). * The DICOM plugin can now used gdcm for compressed transfer formats. * Better support for itk/sitk plugins (#530 by Jonathan Daniel). * Test coverage and CI for ARM (#518 by odidev). - Skip python36 build: NumPy 1.20 dropped suport for Python 3.6 making python36-numpy unavailable in Tumbleweed (NEP 29) - Suggest the extras, you can test what we have in openSUSE with `osc build --with test_extras` OBS-URL: https://build.opensuse.org/request/show/872651 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=21
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-imageio
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,8 +18,11 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
# NEP29: python36-numpy is no longer available in Tumbleweed, because NumPy 1.20 dropped support for it
|
||||
%define skip_python36 1
|
||||
%bcond_with test_extras
|
||||
Name: python-imageio
|
||||
Version: 2.8.0
|
||||
Version: 2.9.0
|
||||
Release: 0
|
||||
Summary: Python library for reading and writing image, video, and related formats
|
||||
License: BSD-2-Clause
|
||||
@@ -27,7 +30,6 @@ URL: https://imageio.github.io/
|
||||
Source0: https://files.pythonhosted.org/packages/source/i/imageio/imageio-%{version}.tar.gz
|
||||
Source1: python-imageio-rpmlintrc
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module imageio-ffmpeg}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -35,11 +37,26 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Pillow
|
||||
Requires: python-imageio-ffmpeg
|
||||
Requires: python-numpy
|
||||
Recommends: python-imageio-ffmpeg
|
||||
Suggests: python-astropy
|
||||
# not in openSUSE (yet)
|
||||
Suggests: python-simpleitk
|
||||
# alternative is not singlespec
|
||||
Suggests: python3-itk
|
||||
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
||||
# GDAL is not (yet) singlespec
|
||||
Suggests: python3-GDAL
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: libfreeimageplus3
|
||||
%if %{with test_extras}
|
||||
BuildRequires: %{python_module astropy}
|
||||
BuildRequires: %{python_module imageio-ffmpeg}
|
||||
# BuildRequires: %%{python_module simpleitk} # (non simple python3-itk does not work on 32-bit, don't bother testing that)
|
||||
BuildRequires: python3-GDAL
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -70,7 +87,9 @@ export IMAGEIO_NO_INTERNET=1
|
||||
|
||||
%check
|
||||
export IMAGEIO_NO_INTERNET=1
|
||||
%pytest -k "not test_fei_file_fail and not test_ffmpeg and not test_series_unclosed and not test_import_dependencies"
|
||||
# ffmpeg: plain openSUSE does not have the right codecs to test this"
|
||||
donttest="test_ffmpeg"
|
||||
%pytest -ra -k "not ($donttest)"
|
||||
|
||||
%post
|
||||
%python_install_alternative imageio_remove_bin
|
||||
|
||||
Reference in New Issue
Block a user