From b453e7d06774a8fc217641bd4ee19b6e69099b14650741cfe6ff6494eb4f88e1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 26 Apr 2019 13:53:32 +0000 Subject: [PATCH] Accepting request 695287 from home:TheBlackCat:branches:devel:languages:python - update to version 2.5.0 + The ffmpeg plugin has been refactored: * The core has been moved to a new library: imageio-ffmpeg. * That library provides platform-specific wheels that includes ffmpeg, so just ``pip install imageio-ffmpeg`` instead of the download step. * Note that this new library is py3k only. * Termination of ffmpeg subprocess is now more reliable. * The reader of the ffmpeg plugin now always reports ``inf`` as the number of frames. Use ``reader.count_frames()`` to get the actual number, or estimate it from the fps and duration in the meta data. * Removed ``CannotReadFrameError``. + Other changes: * The avbin plugin has been depreacted and will be removed in a future version. * Imnproved speed for PIL and FFMPEG plugsins by avoiding memory copies. * Update the included tiffile library. * Support for SimpleITK. * Speed up tiffile plugin when writing to something else than a filename. * Fix that writing to a file object would not work for some plugins. * Can now pass image data to the write functions as anything that resolves to a numpy array with a numeric dtype. * One can now read from a memoryview. * Fix error related to paletted BMP with the Pillow plugin. * Improved logging. - update to version 2.4.1 * Fix installation issue on flavors of Ubuntu 14.04 /w Python 2.7 (#378). * Use `np.frombuffer` instead of `np.fromstring` in some cases. - update to version 2.4.0 * Renamed ``Image`` class to ``Array`` and add documentation for this ndarray subclass. * Reading from HTTP and zipfiles has been improved and better documented. * Improvements to reading and writing of Tiff metadata (by Lukas Schrangl). * Better dealing of tifffile dependencies on Python 2.7 (#330 and #337 by Chris Barnes). * Reader for the SPE format (#358 by lschr). * Better termination of FFMPEG when reading from webcam (#346 by Dennis Vang). * FFMPEG support for reading 16bit videos (#342 by Peter Minin). OBS-URL: https://build.opensuse.org/request/show/695287 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=13 --- imageio-2.3.0.tar.gz | 3 --- imageio-2.5.0.tar.gz | 3 +++ python-imageio.changes | 38 ++++++++++++++++++++++++++++++++++++++ python-imageio.spec | 13 ++++++++----- 4 files changed, 49 insertions(+), 8 deletions(-) delete mode 100644 imageio-2.3.0.tar.gz create mode 100644 imageio-2.5.0.tar.gz diff --git a/imageio-2.3.0.tar.gz b/imageio-2.3.0.tar.gz deleted file mode 100644 index 4d50869..0000000 --- a/imageio-2.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4fd5183c342d47fdc2e98552d14e3f24386021bbc3efedd1e3b579d7d249c07 -size 3334068 diff --git a/imageio-2.5.0.tar.gz b/imageio-2.5.0.tar.gz new file mode 100644 index 0000000..debdb27 --- /dev/null +++ b/imageio-2.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42e65aadfc3d57a1043615c92bdf6319b67589e49a0aae2b985b82144aceacad +size 3349024 diff --git a/python-imageio.changes b/python-imageio.changes index c39bd1b..bb90c64 100644 --- a/python-imageio.changes +++ b/python-imageio.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Wed Apr 17 15:16:25 UTC 2019 - Todd R + +- update to version 2.5.0 + + The ffmpeg plugin has been refactored: + * The core has been moved to a new library: imageio-ffmpeg. + * That library provides platform-specific wheels that includes ffmpeg, + so just ``pip install imageio-ffmpeg`` instead of the download step. + * Note that this new library is py3k only. + * Termination of ffmpeg subprocess is now more reliable. + * The reader of the ffmpeg plugin now always reports ``inf`` as the number of + frames. Use ``reader.count_frames()`` to get the actual number, or estimate + it from the fps and duration in the meta data. + * Removed ``CannotReadFrameError``. + + Other changes: + * The avbin plugin has been depreacted and will be removed in a future version. + * Imnproved speed for PIL and FFMPEG plugsins by avoiding memory copies. + * Update the included tiffile library. + * Support for SimpleITK. + * Speed up tiffile plugin when writing to something else than a filename. + * Fix that writing to a file object would not work for some plugins. + * Can now pass image data to the write functions as anything that resolves to + a numpy array with a numeric dtype. + * One can now read from a memoryview. + * Fix error related to paletted BMP with the Pillow plugin. + * Improved logging. +- update to version 2.4.1 + * Fix installation issue on flavors of Ubuntu 14.04 /w Python 2.7 (#378). + * Use `np.frombuffer` instead of `np.fromstring` in some cases. +- update to version 2.4.0 + * Renamed ``Image`` class to ``Array`` and add documentation for this ndarray subclass. + * Reading from HTTP and zipfiles has been improved and better documented. + * Improvements to reading and writing of Tiff metadata (by Lukas Schrangl). + * Better dealing of tifffile dependencies on Python 2.7 (#330 and #337 by Chris Barnes). + * Reader for the SPE format (#358 by lschr). + * Better termination of FFMPEG when reading from webcam (#346 by Dennis Vang). + * FFMPEG support for reading 16bit videos (#342 by Peter Minin). + ------------------------------------------------------------------- Mon Mar 4 06:52:01 UTC 2019 - John Vandenberg diff --git a/python-imageio.spec b/python-imageio.spec index d3f2cf9..f3bb6be 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-imageio -Version: 2.3.0 +Version: 2.5.0 Release: 0 Summary: Python library for reading and writing image, video, and related formats License: BSD-2-Clause @@ -29,10 +29,12 @@ Source1: python-imageio-rpmlintrc BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: ffmpeg Requires: python-numpy Recommends: python-Pillow Recommends: libfreeimageplus3 +%ifpython3 +Requires: python-imageio-ffmpeg +%endif BuildArch: noarch # There are many other optional dependencies, but they are skipped anyway BuildRequires: %{python_module Pillow} @@ -40,6 +42,7 @@ BuildRequires: %{python_module numpy} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pytest} BuildRequires: python-enum34 +BuildRequires: python3-imageio-ffmpeg %python_subpackages %description @@ -68,11 +71,11 @@ export IMAGEIO_NO_INTERNET=1 %check pushd tests export IMAGEIO_NO_INTERNET=1 -PYTHONPATH=%{buildroot}%{python2_sitelib} python2 -m pytest -k 'not test_fei_file_fail' +PYTHONPATH=%{buildroot}%{python2_sitelib} python2 -m pytest -k 'not test_fei_file_fail and not test_ffmpeg' %if %{python3_version_nodots} == 37 -PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m pytest -k 'not test_series_unclosed and not test_import_dependencies' +PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m pytest -k 'not test_series_unclosed and not test_import_dependencies and not test_ffmpeg' %else -PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m pytest -k 'not test_import_dependencies' +PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m pytest -k 'not test_import_dependencies and not test_ffmpeg' %endif popd