pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-sigal
Module Name: pkgsrc
Committed By: wiz
Date: Thu Oct 19 15:39:44 UTC 2023
Modified Files:
pkgsrc/www/py-sigal: Makefile PLIST distinfo
Added Files:
pkgsrc/www/py-sigal/patches: patch-src_sigal_gallery.py
patch-src_sigal_image.py
Removed Files:
pkgsrc/www/py-sigal/patches: patch-sigal_gallery.py
patch-sigal_image.py
Log Message:
py-sigal: update to 2.4.
Version 2.4
~~~~~~~~~~~
Released on 2023-09-29.
Sigal now requires Pillow>=8.0.0
- Avoid IndexError with empty source dir [:issue:`498`].
- New cli option ``--force-album`` to reprocess only specific albums
[:issue:`491`].
- Added support for black detection in video thumbnail generation
[:issue:`485`].
- Don't show the galleria container if there are no medias [:issue:`484`].
- Force encrypt's password form to be on top [:issue:`483`].
- Add mkv to ``video_extensions`` [:issue:`481`].
- Make sure ``zip_gallery`` is set correctly [:issue:`477`].
- Updates for recent Pillow changes, requires Pillow>=8.0.0 [:issue:`479`].
- Make theme dir writable after copying to it [:issue:`471`].
- New plugin: Titleregexp - modify titles of albums with regular expressions
[:issue:`469`].
- List of sort-properties as fallback instead of zero-length string
[:issue:`468`].
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/py-sigal/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/py-sigal/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/py-sigal/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/www/py-sigal/patches/patch-sigal_gallery.py \
pkgsrc/www/py-sigal/patches/patch-sigal_image.py
cvs rdiff -u -r0 -r1.1 pkgsrc/www/py-sigal/patches/patch-src_sigal_gallery.py \
pkgsrc/www/py-sigal/patches/patch-src_sigal_image.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-sigal/Makefile
diff -u pkgsrc/www/py-sigal/Makefile:1.4 pkgsrc/www/py-sigal/Makefile:1.5
--- pkgsrc/www/py-sigal/Makefile:1.4 Tue Aug 1 23:20:56 2023
+++ pkgsrc/www/py-sigal/Makefile Thu Oct 19 15:39:44 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2023/08/01 23:20:56 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2023/10/19 15:39:44 wiz Exp $
-DISTNAME= sigal-2.3
+DISTNAME= sigal-2.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 2
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/sigal/}
@@ -21,7 +20,7 @@ DEPENDS+= ${PYPKGPREFIX}-feedgenerator-[
DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.7:../../textproc/py-jinja2
DEPENDS+= ${PYPKGPREFIX}-markdown-[0-9]*:../../textproc/py-markdown
DEPENDS+= ${PYPKGPREFIX}-natsort-[0-9]*:../../textproc/py-natsort
-DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+DEPENDS+= ${PYPKGPREFIX}-Pillow>=8.0:../../graphics/py-Pillow
DEPENDS+= ${PYPKGPREFIX}-pilkit-[0-9]*:../../graphics/py-pilkit
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
@@ -31,8 +30,8 @@ USE_LANGUAGES= # none
SUBST_CLASSES+= ffmpeg
SUBST_SED.ffmpeg+= -e "s,ffmpeg,${PREFIX}/bin/ffmpeg6,"
-SUBST_FILES.ffmpeg+= sigal/settings.py
-SUBST_FILES.ffmpeg+= sigal/video.py
+SUBST_FILES.ffmpeg+= src/sigal/settings.py
+SUBST_FILES.ffmpeg+= src/sigal/video.py
SUBST_STAGE.ffmpeg= pre-build
SUBST_MESSAGE.ffmpeg= Fixing ffmpeg path.
Index: pkgsrc/www/py-sigal/PLIST
diff -u pkgsrc/www/py-sigal/PLIST:1.1 pkgsrc/www/py-sigal/PLIST:1.2
--- pkgsrc/www/py-sigal/PLIST:1.1 Fri Dec 16 19:34:44 2022
+++ pkgsrc/www/py-sigal/PLIST Thu Oct 19 15:39:44 2023
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2022/12/16 19:34:44 wiz Exp $
-bin/sigal-${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.2 2023/10/19 15:39:44 wiz Exp $
+bin/sigal-3.11
${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -11,6 +11,8 @@ ${PYSITELIB}/${WHEEL_INFODIR}/entry_poin
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/sigal/__init__.py
${PYSITELIB}/sigal/__init__.pyc
+${PYSITELIB}/sigal/__main__.py
+${PYSITELIB}/sigal/__main__.pyc
${PYSITELIB}/sigal/gallery.py
${PYSITELIB}/sigal/gallery.pyc
${PYSITELIB}/sigal/image.py
@@ -44,6 +46,8 @@ ${PYSITELIB}/sigal/plugins/nomedia.py
${PYSITELIB}/sigal/plugins/nomedia.pyc
${PYSITELIB}/sigal/plugins/nonmedia_files.py
${PYSITELIB}/sigal/plugins/nonmedia_files.pyc
+${PYSITELIB}/sigal/plugins/titleregexp.py
+${PYSITELIB}/sigal/plugins/titleregexp.pyc
${PYSITELIB}/sigal/plugins/upload_s3.py
${PYSITELIB}/sigal/plugins/upload_s3.pyc
${PYSITELIB}/sigal/plugins/watermark.py
Index: pkgsrc/www/py-sigal/distinfo
diff -u pkgsrc/www/py-sigal/distinfo:1.2 pkgsrc/www/py-sigal/distinfo:1.3
--- pkgsrc/www/py-sigal/distinfo:1.2 Wed Mar 8 21:05:58 2023
+++ pkgsrc/www/py-sigal/distinfo Thu Oct 19 15:39:44 2023
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2023/03/08 21:05:58 wiz Exp $
+$NetBSD: distinfo,v 1.3 2023/10/19 15:39:44 wiz Exp $
-BLAKE2s (sigal-2.3.tar.gz) = a8b9a0f0f937e287b1283a2a9fe7551e268c1438235db8a27e9ca3fa9c002856
-SHA512 (sigal-2.3.tar.gz) = e7eafc3c624497f19fdc9eb96fce67789db027b3c34c28eadcc162dd176a2462e101f16ffd54e08ee85baf1a9d264c5657e6cd264c40e155def4eee539242597
-Size (sigal-2.3.tar.gz) = 4652875 bytes
-SHA1 (patch-sigal_gallery.py) = a59c0e1cb954b9045be3436c4686f073d099b1e0
-SHA1 (patch-sigal_image.py) = ab9da9578da4c3a7d364f05978803fd538fdc886
+BLAKE2s (sigal-2.4.tar.gz) = 5fab877c426c6bda5dd839f784b060b33cbc0a5ccd2c2c2a788c70a98d00c76d
+SHA512 (sigal-2.4.tar.gz) = 1cc53760a73ae868491714d22a3108eaf95a84d61895591349b644ea523f0dfd88344c1e09f0792eb23164dd113833ac4bb112f687ef551ce15f70b6c70b07d3
+Size (sigal-2.4.tar.gz) = 4773394 bytes
+SHA1 (patch-src_sigal_gallery.py) = bf5b5100947b77799d84f24223c0aa3956138d81
+SHA1 (patch-src_sigal_image.py) = 9eccca4fd65e05b8d676038362c95c5ee8225502
Added files:
Index: pkgsrc/www/py-sigal/patches/patch-src_sigal_gallery.py
diff -u /dev/null pkgsrc/www/py-sigal/patches/patch-src_sigal_gallery.py:1.1
--- /dev/null Thu Oct 19 15:39:44 2023
+++ pkgsrc/www/py-sigal/patches/patch-src_sigal_gallery.py Thu Oct 19 15:39:44 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_sigal_gallery.py,v 1.1 2023/10/19 15:39:44 wiz Exp $
+
+Fix bug in img_format configuration parameter.
+https://github.com/saimn/sigal/issues/436
+
+--- src/sigal/gallery.py.orig 2023-09-29 07:03:55.000000000 +0000
++++ src/sigal/gallery.py
+@@ -243,6 +243,7 @@ class Image(Media):
+ # Register all formats
+ PILImage.init()
+
++ PILImage.registered_extensions()
+ if imgformat and PILImage.EXTENSION[self.src_ext] != imgformat.upper():
+ # Find the extension that should match img_format
+ extensions = {v: k for k, v in PILImage.EXTENSION.items()}
Index: pkgsrc/www/py-sigal/patches/patch-src_sigal_image.py
diff -u /dev/null pkgsrc/www/py-sigal/patches/patch-src_sigal_image.py:1.1
--- /dev/null Thu Oct 19 15:39:44 2023
+++ pkgsrc/www/py-sigal/patches/patch-src_sigal_image.py Thu Oct 19 15:39:44 2023
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_sigal_image.py,v 1.1 2023/10/19 15:39:44 wiz Exp $
+
+Add HEIF support using pillow_heif, if it's installed.
+https://github.com/saimn/sigal/issues/436
+
+--- src/sigal/image.py.orig 2023-09-29 07:03:55.000000000 +0000
++++ src/sigal/image.py
+@@ -49,6 +49,11 @@ from . import signals, utils
+ # Force loading of truncated files
+ ImageFile.LOAD_TRUNCATED_IMAGES = True
+
++try:
++ from pillow_heif import HeifImagePlugin
++except ImportError:
++ HeifImagePlugin = None
++
+
+ def _has_exif_tags(img):
+ return hasattr(img, "info") and "exif" in img.info
Home |
Main Index |
Thread Index |
Old Index