Accepting request 872659 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/872659
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imageio?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2021-02-16 21:34:32 +00:00 committed by Git OBS Bridge
commit 221d60ddc6
4 changed files with 47 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb5fd6d3d17126bbaac9af29fe340e2c97a196eb9416d4f28c0e543744a152cf
size 3340492

3
imageio-2.9.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:52ddbaeca2dccf53ba2d6dec5676ca7bc3b2403ef8b37f7da78b7654bb3e10f0
size 3341646

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Feb 15 19:25:55 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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`
-------------------------------------------------------------------
Mon May 25 10:59:24 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@ -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