public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pillow-heif/files/, dev-python/pillow-heif/
@ 2024-12-03 12:42 Takuya Wakazono
  0 siblings, 0 replies; 2+ messages in thread
From: Takuya Wakazono @ 2024-12-03 12:42 UTC (permalink / raw
  To: gentoo-commits

commit:     e38602f22d1bccf16a434c67d06dc8d6da633d50
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Tue Dec  3 12:42:18 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Tue Dec  3 12:42:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e38602f2

dev-python/pillow-heif: drop 0.20.0

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 dev-python/pillow-heif/Manifest                    |  1 -
 .../files/pillow-heif-0.15.0-respect-cflags.patch  | 11 ------
 dev-python/pillow-heif/pillow-heif-0.20.0.ebuild   | 41 ----------------------
 3 files changed, 53 deletions(-)

diff --git a/dev-python/pillow-heif/Manifest b/dev-python/pillow-heif/Manifest
index a2433f5bf..eb79d4e0a 100644
--- a/dev-python/pillow-heif/Manifest
+++ b/dev-python/pillow-heif/Manifest
@@ -1,2 +1 @@
-DIST pillow_heif-0.20.0.tar.gz 16173556 BLAKE2B aa549d4344e2e7f04e85d287e5b800068823dd9c9af22cbc24d6891c7e7c23d2e875979a83aa3cd2fbaf1fe60488a885257d644f2b3528f5029c0900101689ea SHA512 2c11cc0d93b0b684a80c1b2b6c076928417f021cda1aa46f1806c39ed24a5283d7878a679bf7e6293b9e6f90d3c60c10c7ce1597c528c269cd8892dd18a8aa9b
 DIST pillow_heif-0.21.0.tar.gz 16178019 BLAKE2B 1ac057f4485331c36348f277b31d073dfe5d3aab69baaef0947449002fb095c81ffd562442f059afc29a19cafb3fa898b011c17a622963e6813a53dd2779c2f7 SHA512 9683b3eea9ea4dc0730bfab2e1163545ea31719b62cfd90a4f58aaf7ab401aef27afb7b9458c93daf9e5fa445b8f7f1ec3b3174fa9ae44513d9baaa10e777913

diff --git a/dev-python/pillow-heif/files/pillow-heif-0.15.0-respect-cflags.patch b/dev-python/pillow-heif/files/pillow-heif-0.15.0-respect-cflags.patch
deleted file mode 100644
index 0a3c02134..000000000
--- a/dev-python/pillow-heif/files/pillow-heif-0.15.0-respect-cflags.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/setup.py
-+++ b/setup.py
-@@ -206,7 +206,7 @@
-             self._add_directory(library_dirs, "/usr/lib")
-             self._add_directory(library_dirs, "/lib")
- 
--            self._update_extension("_pillow_heif", ["heif"], extra_compile_args=["-Ofast", "-Werror"])
-+            self._update_extension("_pillow_heif", ["heif"])
- 
-         self.compiler.library_dirs = library_dirs + self.compiler.library_dirs
-         self.compiler.include_dirs = include_dirs + self.compiler.include_dirs

diff --git a/dev-python/pillow-heif/pillow-heif-0.20.0.ebuild b/dev-python/pillow-heif/pillow-heif-0.20.0.ebuild
deleted file mode 100644
index 81cd1d3be..000000000
--- a/dev-python/pillow-heif/pillow-heif-0.20.0.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} )
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python interface for libheif library"
-HOMEPAGE="
-	https://github.com/bigcat88/pillow_heif
-	https://pypi.org/project/pillow-heif/
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
-	!test? (
-		dev-python/pillow[${PYTHON_USEDEP}]
-		>=media-libs/libheif-1.17.6:=
-	)
-	test? (
-		dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}]
-		>=media-libs/libheif-1.17.6:=[x265]
-	)
-"
-BDEPEND="
-	test? (
-		dev-python/defusedxml[${PYTHON_USEDEP}]
-		dev-python/numpy[${PYTHON_USEDEP}]
-		media-libs/opencv[png,python,${PYTHON_USEDEP}]
-	)
-"
-
-PATCHES=( "${FILESDIR}/${PN}-0.15.0-respect-cflags.patch" )
-
-distutils_enable_tests pytest


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pillow-heif/files/, dev-python/pillow-heif/
@ 2024-12-03 12:42 Takuya Wakazono
  0 siblings, 0 replies; 2+ messages in thread
From: Takuya Wakazono @ 2024-12-03 12:42 UTC (permalink / raw
  To: gentoo-commits

commit:     32cbd7eff034c0d380f51d37f51a50326adfc5af
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Tue Dec  3 12:42:18 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Tue Dec  3 12:42:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=32cbd7ef

dev-python/pillow-heif: add 0.21.0

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 dev-python/pillow-heif/Manifest                    |  1 +
 .../files/pillow-heif-0.21.0-respect-cflags.patch  | 11 +++++
 dev-python/pillow-heif/pillow-heif-0.21.0.ebuild   | 48 ++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/dev-python/pillow-heif/Manifest b/dev-python/pillow-heif/Manifest
index a4be97689..a2433f5bf 100644
--- a/dev-python/pillow-heif/Manifest
+++ b/dev-python/pillow-heif/Manifest
@@ -1 +1,2 @@
 DIST pillow_heif-0.20.0.tar.gz 16173556 BLAKE2B aa549d4344e2e7f04e85d287e5b800068823dd9c9af22cbc24d6891c7e7c23d2e875979a83aa3cd2fbaf1fe60488a885257d644f2b3528f5029c0900101689ea SHA512 2c11cc0d93b0b684a80c1b2b6c076928417f021cda1aa46f1806c39ed24a5283d7878a679bf7e6293b9e6f90d3c60c10c7ce1597c528c269cd8892dd18a8aa9b
+DIST pillow_heif-0.21.0.tar.gz 16178019 BLAKE2B 1ac057f4485331c36348f277b31d073dfe5d3aab69baaef0947449002fb095c81ffd562442f059afc29a19cafb3fa898b011c17a622963e6813a53dd2779c2f7 SHA512 9683b3eea9ea4dc0730bfab2e1163545ea31719b62cfd90a4f58aaf7ab401aef27afb7b9458c93daf9e5fa445b8f7f1ec3b3174fa9ae44513d9baaa10e777913

diff --git a/dev-python/pillow-heif/files/pillow-heif-0.21.0-respect-cflags.patch b/dev-python/pillow-heif/files/pillow-heif-0.21.0-respect-cflags.patch
new file mode 100644
index 000000000..543ab6905
--- /dev/null
+++ b/dev-python/pillow-heif/files/pillow-heif-0.21.0-respect-cflags.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -206,7 +206,7 @@ class PillowHeifBuildExt(build_ext):
+             self._add_directory(library_dirs, "/usr/lib")
+             self._add_directory(library_dirs, "/lib")
+ 
+-            self._update_extension("_pillow_heif", ["heif"], extra_compile_args=["-O3", "-Werror"])
++            self._update_extension("_pillow_heif", ["heif"])
+ 
+         self.compiler.library_dirs = library_dirs + self.compiler.library_dirs
+         self.compiler.include_dirs = include_dirs + self.compiler.include_dirs

diff --git a/dev-python/pillow-heif/pillow-heif-0.21.0.ebuild b/dev-python/pillow-heif/pillow-heif-0.21.0.ebuild
new file mode 100644
index 000000000..43556e490
--- /dev/null
+++ b/dev-python/pillow-heif/pillow-heif-0.21.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python interface for libheif library"
+HOMEPAGE="
+	https://github.com/bigcat88/pillow_heif
+	https://pypi.org/project/pillow-heif/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+	!test? (
+		dev-python/pillow[${PYTHON_USEDEP}]
+		>=media-libs/libheif-1.17.6:=
+	)
+	test? (
+		dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}]
+		>=media-libs/libheif-1.17.6:=[x265]
+	)
+"
+BDEPEND="
+	test? (
+		dev-python/defusedxml[${PYTHON_USEDEP}]
+		dev-python/numpy[${PYTHON_USEDEP}]
+		media-libs/opencv[png,python,${PYTHON_USEDEP}]
+	)
+"
+
+PATCHES=( "${FILESDIR}/${P}-respect-cflags.patch" )
+
+EPYTEST_DESELECT=(
+	# only works with libeif-1.19.5
+	# https://github.com/bigcat88/pillow_heif/pull/312/commits/d740dcce7d967d025c4100611cc7a4632aa3fc3a
+	"tests/read_test.py::test_heif_read_images[image_path16]"
+	"tests/read_test.py::test_heif_read_images[image_path43]"
+)
+
+distutils_enable_tests pytest


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-03 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 12:42 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pillow-heif/files/, dev-python/pillow-heif/ Takuya Wakazono
  -- strict thread matches above, loose matches on Subject: below --
2024-12-03 12:42 Takuya Wakazono

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox