From 6239c3522324e0d07aad3cf8d43d08e5d66853335d06d7691c3246a8bef57d3c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 16 Oct 2022 17:48:48 +0000 Subject: [PATCH 1/3] - update to 2.22.1: * Raise ImportError when iio-ffmpeg is missing OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=27 --- imageio-2.21.2.tar.gz | 3 --- imageio-2.22.1.tar.gz | 3 +++ python-imageio.changes | 6 ++++++ python-imageio.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 imageio-2.21.2.tar.gz create mode 100644 imageio-2.22.1.tar.gz diff --git a/imageio-2.21.2.tar.gz b/imageio-2.21.2.tar.gz deleted file mode 100644 index bd3c848..0000000 --- a/imageio-2.21.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5702e7b4874bdb2f428b08c7491699b44842129d412cdaa7177ba7ff059deb2c -size 3430235 diff --git a/imageio-2.22.1.tar.gz b/imageio-2.22.1.tar.gz new file mode 100644 index 0000000..4882979 --- /dev/null +++ b/imageio-2.22.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:465ec35f919d538906d3023b61ccec766d8e7575fe55fcbd7669ece55afb97ca +size 3431412 diff --git a/python-imageio.changes b/python-imageio.changes index 919e4bd..bb221e4 100644 --- a/python-imageio.changes +++ b/python-imageio.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 16 17:47:59 UTC 2022 - Dirk Müller + +- update to 2.22.1: + * Raise ImportError when iio-ffmpeg is missing + ------------------------------------------------------------------- Thu Sep 29 02:30:37 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-imageio.spec b/python-imageio.spec index d0497fc..138db79 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -20,7 +20,7 @@ %define skip_python2 1 %bcond_with test_extras Name: python-imageio -Version: 2.21.2 +Version: 2.22.1 Release: 0 Summary: Python library for reading and writing image, video, and related formats License: BSD-2-Clause From 2d2cf9654514e6b78dd241fe972317c884cf3b47869db6191f4077f439c28611 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 30 Jun 2023 14:55:34 +0000 Subject: [PATCH 2/3] 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 --- imageio-2.22.1.tar.gz | 3 --- imageio-2.31.1.tar.gz | 3 +++ python-imageio.changes | 13 +++++++++++++ python-imageio.spec | 14 +++++++------- 4 files changed, 23 insertions(+), 10 deletions(-) delete mode 100644 imageio-2.22.1.tar.gz create mode 100644 imageio-2.31.1.tar.gz diff --git a/imageio-2.22.1.tar.gz b/imageio-2.22.1.tar.gz deleted file mode 100644 index 4882979..0000000 --- a/imageio-2.22.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:465ec35f919d538906d3023b61ccec766d8e7575fe55fcbd7669ece55afb97ca -size 3431412 diff --git a/imageio-2.31.1.tar.gz b/imageio-2.31.1.tar.gz new file mode 100644 index 0000000..4f96c8c --- /dev/null +++ b/imageio-2.31.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8436a02af02fd63f272dab50f7d623547a38f0e04a4a73e2b02ae1b8b180f27 +size 386837 diff --git a/python-imageio.changes b/python-imageio.changes index bb221e4..176a6be 100644 --- a/python-imageio.changes +++ b/python-imageio.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Jun 30 14:22:20 UTC 2023 - Markéta Machová + +- 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 + ------------------------------------------------------------------- Sun Oct 16 17:47:59 UTC 2022 - Dirk Müller diff --git a/python-imageio.spec b/python-imageio.spec index 138db79..ea4903c 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -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" From 72b4c27d2a84afa8926eaf375a10a4eea1f0ecf2c464449fcd4e0e0d6e02d7fe Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 30 Jun 2023 15:00:55 +0000 Subject: [PATCH 3/3] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=29 --- python-imageio-rpmlintrc | 1 - python-imageio.changes | 5 +++++ python-imageio.spec | 19 +++++++++---------- 3 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 python-imageio-rpmlintrc diff --git a/python-imageio-rpmlintrc b/python-imageio-rpmlintrc deleted file mode 100644 index 3a5cdb9..0000000 --- a/python-imageio-rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -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 176a6be..c016608 100644 --- a/python-imageio.changes +++ b/python-imageio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 30 14:59:22 UTC 2023 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Fri Jun 30 14:22:20 UTC 2023 - Markéta Machová diff --git a/python-imageio.spec b/python-imageio.spec index ea4903c..2063bf2 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %bcond_with test_extras Name: python-imageio @@ -26,29 +25,30 @@ Summary: Python library for reading and writing image, video, and related 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 >= 8.3.2} BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module numpy >= 1.20.0} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow >= 8.3.2 Requires: python-numpy >= 1.20.0 +Requires(post): update-alternatives +Requires(postun):update-alternatives +Recommends: libfreeimageplus3 Recommends: python-imageio-ffmpeg Recommends: python-psutil Suggests: python-astropy Suggests: python-av -Suggests: python-tifffile # not in openSUSE (yet) Suggests: python-simpleitk +Suggests: python-tifffile +BuildArch: noarch %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 # SECTION test requirements BuildRequires: %{python_module fsspec} BuildRequires: %{python_module imageio-ffmpeg} @@ -62,7 +62,6 @@ BuildRequires: %{python_module tifffile} BuildRequires: python3-GDAL %endif # /SECTION -BuildArch: noarch %python_subpackages %description @@ -81,11 +80,11 @@ done %build export IMAGEIO_NO_INTERNET=1 -%python_build +%pyproject_wheel %install export IMAGEIO_NO_INTERNET=1 -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/imageio_remove_bin %python_clone -a %{buildroot}%{_bindir}/imageio_download_bin %python_expand %fdupes %{buildroot}%{$python_sitelib}