forked from pool/python-imageio
Accepting request 1096160 from home:mcalabkova:branches:devel:languages:python
- update to 2.31.1 * Add support for Python 3.11 * Tifffile v3 support * Add audio support for ffmpeg writer * small improvements to pyav * Consistently apply color palettes by default * Add n_images to ImageProperties * Expose v3 plugins via v2 API * Decode gray 16-bit PNG as uint16 (not int32) if pillow allows OBS-URL: https://build.opensuse.org/request/show/1096160 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=28
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-imageio
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,7 +20,7 @@
|
||||
%define skip_python2 1
|
||||
%bcond_with test_extras
|
||||
Name: python-imageio
|
||||
Version: 2.22.1
|
||||
Version: 2.31.1
|
||||
Release: 0
|
||||
Summary: Python library for reading and writing image, video, and related formats
|
||||
License: BSD-2-Clause
|
||||
@@ -36,12 +36,12 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-Pillow >= 8.3.2
|
||||
Requires: python-numpy >= 1.20.0
|
||||
Recommends: python-imageio-ffmpeg
|
||||
Recommends: python-psutil
|
||||
Suggests: python-astropy
|
||||
Suggests: python-av
|
||||
Suggests: python-tifffile
|
||||
# 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
|
||||
@@ -51,15 +51,15 @@ Requires(postun):update-alternatives
|
||||
Recommends: libfreeimageplus3
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module fsspec}
|
||||
BuildRequires: %{python_module imageio-ffmpeg}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: libglvnd-devel
|
||||
%if %{with test_extras}
|
||||
BuildRequires: %{python_module astropy}
|
||||
BuildRequires: %{python_module imageio-ffmpeg}
|
||||
BuildRequires: %{python_module av}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module tifffile}
|
||||
BuildRequires: python3-GDAL
|
||||
# python3-itk does not work on 32-bit, don't bother testing that
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildArch: noarch
|
||||
@@ -93,7 +93,7 @@ export IMAGEIO_NO_INTERNET=1
|
||||
%check
|
||||
export IMAGEIO_NO_INTERNET=1
|
||||
# plain openSUSE does not have the right codecs to test this ffmpeg
|
||||
donttest="test_ffmpeg"
|
||||
donttest="test_ffmpeg or test_bayer_write"
|
||||
# unmarked online tests
|
||||
donttest="$donttest or test_freeimage"
|
||||
%pytest -ra -k "not ($donttest)" -m "not needs_internet"
|
||||
|
||||
Reference in New Issue
Block a user