pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/py-imageio



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jun 17 14:52:30 UTC 2019

Modified Files:
        pkgsrc/graphics/py-imageio: Makefile PLIST distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/graphics/py-imageio/Makefile \
    pkgsrc/graphics/py-imageio/PLIST pkgsrc/graphics/py-imageio/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/py-imageio/Makefile
diff -u pkgsrc/graphics/py-imageio/Makefile:1.1 pkgsrc/graphics/py-imageio/Makefile:1.2
--- pkgsrc/graphics/py-imageio/Makefile:1.1     Tue Jul 31 11:03:57 2018
+++ pkgsrc/graphics/py-imageio/Makefile Mon Jun 17 14:52:30 2019
@@ -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"
Index: pkgsrc/graphics/py-imageio/PLIST
diff -u pkgsrc/graphics/py-imageio/PLIST:1.1 pkgsrc/graphics/py-imageio/PLIST:1.2
--- pkgsrc/graphics/py-imageio/PLIST:1.1        Tue Jul 31 11:03:57 2018
+++ pkgsrc/graphics/py-imageio/PLIST    Mon Jun 17 14:52:30 2019
@@ -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/pillowmulti
 ${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
Index: pkgsrc/graphics/py-imageio/distinfo
diff -u pkgsrc/graphics/py-imageio/distinfo:1.1 pkgsrc/graphics/py-imageio/distinfo:1.2
--- pkgsrc/graphics/py-imageio/distinfo:1.1     Tue Jul 31 11:03:57 2018
+++ pkgsrc/graphics/py-imageio/distinfo Mon Jun 17 14:52:30 2019
@@ -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