15
0

Accepting request 962940 from home:bnavigator:branches:devel:languages:python

- Update to 2.16.1
  * Update "python_requires" to 3.7+ (#757) (f80f068)
- Release 2.16.0 Feature:
  * Improps and immeta (#739) (05d6f33)
- Release 2.15.0 Features:
  * Add format_hint to v3 API (#734) (dd538ec)
  * Make tifffile read resolution metadata (#732) (4f7f334)
- Release 2.14.0 Feature:
  * Allow mode=None when writing with pillow (#722) (7be2712)
- Release 2.12.0 Feature:
  * Allow plugin objects in plugin kwarg (#689) (8f0f689)
- Release 2.11.0 Feature:
  * Choose plugin based on extension and plugin lazy-import (#680)
    (bdbe699)
- Release 2.10.0 Features:
  * Allow pillow to write/encode to byte strings (#669) (b5df806)
  * Add CD pipeline (#667) (6dce3ab)
  * Fail PIL write if extension isnt supported (0dc33d3)
  * Make imopen use core.Request (c51fdb0)

OBS-URL: https://build.opensuse.org/request/show/962940
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=23
This commit is contained in:
2022-03-18 20:14:45 +00:00
committed by Git OBS Bridge
parent 5f1e1df67d
commit 69f44a4e8d
5 changed files with 51 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-imageio
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,30 +16,28 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() 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.9.0
Version: 2.16.1
Release: 0
Summary: Python library for reading and writing image, video, and related formats
License: BSD-2-Clause
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 numpy}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module Pillow >= 8.3.2}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module numpy >= 1.20.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pillow
Requires: python-numpy
Requires: python-Pillow >= 8.3.2
Requires: python-numpy >= 1.20.0
Recommends: python-imageio-ffmpeg
Suggests: python-astropy
Suggests: python-tifffile
# not in openSUSE (yet)
Suggests: python-simpleitk
# alternative is not singlespec
@@ -49,14 +47,21 @@ Suggests: python3-itk
Suggests: python3-GDAL
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
Recommends: libfreeimageplus3
# SECTION test requirements
BuildRequires: %{python_module fsspec}
BuildRequires: %{python_module pytest}
BuildRequires: libglvnd-devel
%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: %{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
%python_subpackages
@@ -87,9 +92,11 @@ export IMAGEIO_NO_INTERNET=1
%check
export IMAGEIO_NO_INTERNET=1
# ffmpeg: plain openSUSE does not have the right codecs to test this"
# plain openSUSE does not have the right codecs to test this ffmpeg
donttest="test_ffmpeg"
%pytest -ra -k "not ($donttest)"
# unmarked online tests
donttest="$donttest or test_freeimage"
%pytest -ra -k "not ($donttest)" -m "not needs_internet"
%post
%python_install_alternative imageio_remove_bin
@@ -102,7 +109,8 @@ donttest="test_ffmpeg"
%files %{python_files}
%license LICENSE
%doc CONTRIBUTORS.txt README.md
%{python_sitelib}/*
%{python_sitelib}/imageio
%{python_sitelib}/imageio-%{version}*-info
%python_alternative %{_bindir}/imageio_download_bin
%python_alternative %{_bindir}/imageio_remove_bin