From e54ca450220fa2b1590149175396b7a6a1f96ba8 Mon Sep 17 00:00:00 2001 From: zenobit Date: Sat, 25 Jul 2026 12:27:26 +0200 Subject: [PATCH] python3-pillow-avif: update to 1.6.0 --- .../patches/fix-version-detection.patch | 34 ------------------- srcpkgs/python3-pillow-avif/template | 6 ++-- 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 srcpkgs/python3-pillow-avif/patches/fix-version-detection.patch diff --git a/srcpkgs/python3-pillow-avif/patches/fix-version-detection.patch b/srcpkgs/python3-pillow-avif/patches/fix-version-detection.patch deleted file mode 100644 index 5f4dccc696a9ad..00000000000000 --- a/srcpkgs/python3-pillow-avif/patches/fix-version-detection.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- ./setup.py.orig 2025-11-17 14:12:01.808011870 -0500 -+++ ./setup.py 2025-11-17 14:14:43.996459608 -0500 -@@ -1,22 +1,9 @@ --import ast - from io import open - import os - import sys - - from setuptools import Extension, setup - -- --def version(): -- filename = "src/pillow_avif/__init__.py" -- with open(filename) as f: -- tree = ast.parse(f.read(), filename) -- for node in tree.body: -- if isinstance(node, ast.Assign) and len(node.targets) == 1: -- (target,) = node.targets -- if isinstance(target, ast.Name) and target.id == "__version__": -- return node.value.s -- -- - def readme(): - try: - with open("README.md") as f: -@@ -54,7 +41,7 @@ - description="A pillow plugin that adds avif support via libavif", - long_description=readme(), - long_description_content_type="text/markdown", -- version=version(), -+ version='@@VERSION@@', - ext_modules=[ - Extension( - "pillow_avif._avif", diff --git a/srcpkgs/python3-pillow-avif/template b/srcpkgs/python3-pillow-avif/template index 14cf29718b444c..fc42376e19470e 100644 --- a/srcpkgs/python3-pillow-avif/template +++ b/srcpkgs/python3-pillow-avif/template @@ -1,7 +1,7 @@ # Template file for 'python3-pillow-avif' pkgname=python3-pillow-avif -version=1.5.2 -revision=2 +version=1.6.0 +revision=1 build_style=python3-pep517 hostmakedepends="pkg-config python3-setuptools" makedepends="python3-devel libavif-devel" @@ -12,7 +12,7 @@ license="BSD-2-Clause" homepage="https://github.com/fdintino/pillow-avif-plugin" changelog="https://raw.githubusercontent.com/fdintino/pillow-avif-plugin/refs/heads/main/CHANGELOG.rst" distfiles="https://github.com/fdintino/pillow-avif-plugin/archive/refs/tags/v${version}.tar.gz" -checksum=ca224a3ba77cc2ccc5a4e3a7e081c2c0914ea1481fdeb4c4c007e04d8675c5fe +checksum=266eff6e8e6eae1ae976a5986b461e122d4fdc046fbc3fbe97c81817bad03c16 post_patch() { vsed -e "s/@@VERSION@@/${version}/" -i setup.py