From 69f44a4e8dfb3488b40330b54df59030a758d71812066ab28c5223c2a91491da Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 18 Mar 2022 20:14:45 +0000 Subject: [PATCH] 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 --- imageio-2.16.1.tar.gz | 3 +++ imageio-2.9.0.tar.gz | 3 --- python-imageio-rpmlintrc | 2 +- python-imageio.changes | 23 +++++++++++++++++++++++ python-imageio.spec | 40 ++++++++++++++++++++++++---------------- 5 files changed, 51 insertions(+), 20 deletions(-) create mode 100644 imageio-2.16.1.tar.gz delete mode 100644 imageio-2.9.0.tar.gz diff --git a/imageio-2.16.1.tar.gz b/imageio-2.16.1.tar.gz new file mode 100644 index 0000000..9a73a96 --- /dev/null +++ b/imageio-2.16.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f123cb23a77ac5abe8ed4e7ad6a60831a82de2c5d123463dcf1d4278c4779d2 +size 3401236 diff --git a/imageio-2.9.0.tar.gz b/imageio-2.9.0.tar.gz deleted file mode 100644 index f561c10..0000000 --- a/imageio-2.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:52ddbaeca2dccf53ba2d6dec5676ca7bc3b2403ef8b37f7da78b7654bb3e10f0 -size 3341646 diff --git a/python-imageio-rpmlintrc b/python-imageio-rpmlintrc index 8cc13a9..3a5cdb9 100644 --- a/python-imageio-rpmlintrc +++ b/python-imageio-rpmlintrc @@ -1 +1 @@ -addFilter("W: zero-length /usr/lib/python.*/site-packages/imageio/resources/shipped_resources_go_here") +addFilter("zero-length /usr/lib/python.*/site-packages/imageio/resources/shipped_resources_go_here") \ No newline at end of file diff --git a/python-imageio.changes b/python-imageio.changes index b363929..bc9d898 100644 --- a/python-imageio.changes +++ b/python-imageio.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Fri Mar 18 19:00:48 UTC 2022 - Ben Greiner + +- 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) + ------------------------------------------------------------------- Mon Feb 15 19:25:55 UTC 2021 - Ben Greiner diff --git a/python-imageio.spec b/python-imageio.spec index 2e7898f..7bedd09 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -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