pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/py-imageio py-imageio: updated to 2.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ddc33c8b0c79
branches:  trunk
changeset: 335301:ddc33c8b0c79
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jun 17 14:52:30 2019 +0000

description:
py-imageio: updated to 2.5.0

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.

Version 2.4.1:
Fix installation issue on flavors of Ubuntu 14.04 /w Python 2.7.
Use np.frombuffer instead of np.fromstring in some cases.

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.
Better dealing of tifffile dependencies on Python 2.7.
Reader for the SPE format.
Better termination of FFMPEG when reading from webcam.
FFMPEG support for reading 16bit videos

diffstat:

 graphics/py-imageio/Makefile |  26 ++++++++++++++++++--------
 graphics/py-imageio/PLIST    |  16 +++++++++++++---
 graphics/py-imageio/distinfo |  10 +++++-----
 3 files changed, 36 insertions(+), 16 deletions(-)

diffs (96 lines):

diff -r 19521a0458d0 -r ddc33c8b0c79 graphics/py-imageio/Makefile
--- a/graphics/py-imageio/Makefile      Mon Jun 17 14:28:58 2019 +0000
+++ b/graphics/py-imageio/Makefile      Mon Jun 17 14:52:30 2019 +0000
@@ -1,23 +1,33 @@
-# $NetBSD: Makefile,v 1.1 2018/07/31 11:03:57 prlw1 Exp $
+# $NetBSD: Makefile,v 1.2 2019/06/17 14:52:30 adam Exp $
 
-DISTNAME=      imageio-2.3.0
+DISTNAME=      imageio-2.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    graphics python
-MASTER_SITES=  ${MASTER_SITE_GITHUB:=imageio/}
-GITHUB_PROJECT=        imageio
-GITHUB_TAG=    v${PKGVERSION_NOREV}
+MASTER_SITES=  ${MASTER_SITE_PYPI:=i/imageio/}
 
 MAINTAINER=    prlw1%cam.ac.uk@localhost
 HOMEPAGE=      http://imageio.github.io/
 COMMENT=       Python library to read and write images
 LICENSE=       2-clause-bsd
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
+DEPENDS+=      ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+DEPENDS+=      ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 27
+DEPENDS+=      ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures
+.endif
 
 USE_LANGUAGES= # none
 
-DEPENDS+=      ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
-DEPENDS+=      ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} imageio_download_bin imageio_download_bin-${PYVERSSUFFIX} && \
+       ${MV} imageio_remove_bin imageio_remove_bin-${PYVERSSUFFIX} || ${TRUE}
+
+do-test:
+       cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 19521a0458d0 -r ddc33c8b0c79 graphics/py-imageio/PLIST
--- a/graphics/py-imageio/PLIST Mon Jun 17 14:28:58 2019 +0000
+++ b/graphics/py-imageio/PLIST Mon Jun 17 14:52:30 2019 +0000
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1 2018/07/31 11:03:57 prlw1 Exp $
-bin/imageio_download_bin
-bin/imageio_remove_bin
+@comment $NetBSD: PLIST,v 1.2 2019/06/17 14:52:30 adam Exp $
+bin/imageio_download_bin-${PYVERSSUFFIX}
+bin/imageio_remove_bin-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -106,12 +106,22 @@
 ${PYSITELIB}/imageio/plugins/simpleitk.py
 ${PYSITELIB}/imageio/plugins/simpleitk.pyc
 ${PYSITELIB}/imageio/plugins/simpleitk.pyo
+${PYSITELIB}/imageio/plugins/spe.py
+${PYSITELIB}/imageio/plugins/spe.pyc
+${PYSITELIB}/imageio/plugins/spe.pyo
 ${PYSITELIB}/imageio/plugins/swf.py
 ${PYSITELIB}/imageio/plugins/swf.pyc
 ${PYSITELIB}/imageio/plugins/swf.pyo
 ${PYSITELIB}/imageio/plugins/tifffile.py
 ${PYSITELIB}/imageio/plugins/tifffile.pyc
 ${PYSITELIB}/imageio/plugins/tifffile.pyo
+${PYSITELIB}/imageio/resources/images/astronaut.png
+${PYSITELIB}/imageio/resources/images/chelsea.png
+${PYSITELIB}/imageio/resources/images/chelsea.zip
+${PYSITELIB}/imageio/resources/images/cockatoo.mp4
+${PYSITELIB}/imageio/resources/images/newtonscradle.gif
+${PYSITELIB}/imageio/resources/images/realshort.mp4
+${PYSITELIB}/imageio/resources/images/stent.npz
 ${PYSITELIB}/imageio/resources/shipped_resources_go_here
 ${PYSITELIB}/imageio/testing.py
 ${PYSITELIB}/imageio/testing.pyc
diff -r 19521a0458d0 -r ddc33c8b0c79 graphics/py-imageio/distinfo
--- a/graphics/py-imageio/distinfo      Mon Jun 17 14:28:58 2019 +0000
+++ b/graphics/py-imageio/distinfo      Mon Jun 17 14:52:30 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2018/07/31 11:03:57 prlw1 Exp $
+$NetBSD: distinfo,v 1.2 2019/06/17 14:52:30 adam Exp $
 
-SHA1 (imageio-2.3.0.tar.gz) = c21fb174f717a989fe74ad176747a4bdc0186c59
-RMD160 (imageio-2.3.0.tar.gz) = bbbdd62ea54aaab3202938c20f0f211b96a93c8e
-SHA512 (imageio-2.3.0.tar.gz) = 2cea1ead0dd541d013bbf0317f4e22fef99db8c3c8c6dc6deb5c5a1ace17fb750807e455c14eb2b3bacd6fc955c58912b2d7f2ba9bc016ab1fda7b70d0c58f41
-Size (imageio-2.3.0.tar.gz) = 284032 bytes
+SHA1 (imageio-2.5.0.tar.gz) = f428f669218f7fd0b17470f96d2ee291fc1e20c2
+RMD160 (imageio-2.5.0.tar.gz) = 80d65d195bdec0c506b08b1258bdf930c4460fb9
+SHA512 (imageio-2.5.0.tar.gz) = 382de0ad03966c8e8a8452eccde13d7471f29a271690b66046b5477467f54d2d2eb5196b0ae90f8484375042f3509468000b62f613ae666938e1257c53f6347c
+Size (imageio-2.5.0.tar.gz) = 3349024 bytes



Home | Main Index | Thread Index | Old Index