forked from pool/python-imageio
- 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
90 lines
2.9 KiB
RPMSpec
90 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-imageio
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-imageio
|
|
Version: 2.5.0
|
|
Release: 0
|
|
Summary: Python library for reading and writing image, video, and related formats
|
|
License: BSD-2-Clause
|
|
Group: Development/Languages/Python
|
|
URL: http://imageio.github.io/
|
|
Source0: https://files.pythonhosted.org/packages/source/i/imageio/imageio-%{version}.tar.gz
|
|
Source1: python-imageio-rpmlintrc
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
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}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: python-enum34
|
|
BuildRequires: python3-imageio-ffmpeg
|
|
%python_subpackages
|
|
|
|
%description
|
|
Imageio is a Python library that provides an interface to read and
|
|
write a wide range of image data, including animated images, volumetric
|
|
data, and scientific formats.
|
|
|
|
%prep
|
|
%setup -q -n imageio-%{version}
|
|
|
|
# Plugins are not executable scripts
|
|
for plgpy in imageio/plugins/_*.py ; do
|
|
echo "Fixing $plgpy..."
|
|
sed -i -e '1{/\/usr\/bin.*python/d}' $plgpy
|
|
done
|
|
|
|
%build
|
|
export IMAGEIO_NO_INTERNET=1
|
|
%python_build
|
|
|
|
%install
|
|
export IMAGEIO_NO_INTERNET=1
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
pushd tests
|
|
export IMAGEIO_NO_INTERNET=1
|
|
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 and not test_ffmpeg'
|
|
%else
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m pytest -k 'not test_import_dependencies and not test_ffmpeg'
|
|
%endif
|
|
popd
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CONTRIBUTORS.txt README.md
|
|
%{python_sitelib}/*
|
|
%python3_only %{_bindir}/imageio_download_bin
|
|
%python3_only %{_bindir}/imageio_remove_bin
|
|
|
|
%changelog
|