From 1124415b9bdc67fb0c537ba8980351141b417ea5 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 11 May 2025 21:38:48 +0100 Subject: [PATCH 1/5] dev-python/olefile: enable py3.14 Signed-off-by: Sam James --- dev-python/olefile/olefile-0.47.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/olefile/olefile-0.47.ebuild b/dev-python/olefile/olefile-0.47.ebuild index 606eef403fe31..9a09f78dee9ca 100644 --- a/dev-python/olefile/olefile-0.47.ebuild +++ b/dev-python/olefile/olefile-0.47.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 ) +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) inherit distutils-r1 From 4934819c2aaf881c06acf4b1f5c7d11357573c2f Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 11 May 2025 21:40:17 +0100 Subject: [PATCH 2/5] dev-python/defusedxml: enable py3.14 There's a strange: ``` test_defused_gzip_response (__main__.TestDefusedGzip.test_defused_gzip_response) ... Exception ignored while calling deallocator : Traceback (most recent call last): File "/usr/lib/python3.14/gzip.py", line 466, in __del__ if self.mode == WRITE and not self.closed: AttributeError: 'DefusedGzipDecodedResponse' object has no attribute 'mode' ok ``` ... but on the other hand, the test passes, so...? Signed-off-by: Sam James --- dev-python/defusedxml/defusedxml-0.8.0_rc2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/defusedxml/defusedxml-0.8.0_rc2.ebuild b/dev-python/defusedxml/defusedxml-0.8.0_rc2.ebuild index 54aeeabbada77..12bfaf3cf4d6c 100644 --- a/dev-python/defusedxml/defusedxml-0.8.0_rc2.ebuild +++ b/dev-python/defusedxml/defusedxml-0.8.0_rc2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 ) +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 From b41af526ac1f2fb16d72915a9172d427a1f4b472 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 11 May 2025 22:02:37 +0100 Subject: [PATCH 3/5] dev-python/pillow: enable py3.14 Signed-off-by: Sam James --- .../pillow/files/pillow-11.2.1-py314.patch | 49 +++++++++++++++++++ dev-python/pillow/pillow-11.2.1.ebuild | 4 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 dev-python/pillow/files/pillow-11.2.1-py314.patch diff --git a/dev-python/pillow/files/pillow-11.2.1-py314.patch b/dev-python/pillow/files/pillow-11.2.1-py314.patch new file mode 100644 index 0000000000000..b9fe40d470460 --- /dev/null +++ b/dev-python/pillow/files/pillow-11.2.1-py314.patch @@ -0,0 +1,49 @@ +https://github.com/python-pillow/Pillow/pull/8948 +https://github.com/python-pillow/Pillow/commit/3c71559804e661a5f727e2007a5be51f26d9af27 + +From c7193f74fc5ce1a0fe1742a0845165024be45ef5 Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Thu, 8 May 2025 20:10:34 +1000 +Subject: [PATCH 1/3] Updated error message + +--- + Tests/test_image_resample.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Tests/test_image_resample.py b/Tests/test_image_resample.py +index ce6209c0da4..73b25ed51b2 100644 +--- a/Tests/test_image_resample.py ++++ b/Tests/test_image_resample.py +@@ -462,7 +462,7 @@ def test_wrong_arguments(self, resample: Image.Resampling) -> None: + im.resize((32, 32), resample, (20, 20, 20, 100)) + im.resize((32, 32), resample, (20, 20, 100, 20)) + +- with pytest.raises(TypeError, match="must be sequence of length 4"): ++ with pytest.raises(TypeError, match="must be (sequence|tuple) of length 4"): + im.resize((32, 32), resample, (im.width, im.height)) # type: ignore[arg-type] + + with pytest.raises(ValueError, match="can't be negative"): + +From 215069af5ddec6f4d3b92b8bc7554a10e2efb669 Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Thu, 8 May 2025 22:13:13 +1000 +Subject: [PATCH 3/3] Added support for Python 3.14 + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 5ecd6b8160a..5d41e27d981 100644 +--- a/setup.py ++++ b/setup.py +@@ -46,7 +46,7 @@ def get_version() -> str: + ZLIB_ROOT = None + FUZZING_BUILD = "LIB_FUZZING_ENGINE" in os.environ + +-if sys.platform == "win32" and sys.version_info >= (3, 14): ++if sys.platform == "win32" and sys.version_info >= (3, 15): + import atexit + + atexit.register( + diff --git a/dev-python/pillow/pillow-11.2.1.ebuild b/dev-python/pillow/pillow-11.2.1.ebuild index fc131fa8d8efa..5972d432576b0 100644 --- a/dev-python/pillow/pillow-11.2.1.ebuild +++ b/dev-python/pillow/pillow-11.2.1.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_EXT=1 # setuptools wrapper DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 ) +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) PYTHON_REQ_USE='tk?,threads(+)' inherit distutils-r1 toolchain-funcs virtualx @@ -81,6 +81,8 @@ src_prepare() { local PATCHES=( # https://github.com/python-pillow/pillow/pull/7634 "${FILESDIR}/${PN}-10.2.0-cross.patch" + # https://github.com/python-pillow/Pillow/pull/8948 + "${FILESDIR}/${PN}-11.2.1-py314.patch" ) distutils-r1_src_prepare From de08e7aa3f25258f83a6330f0a0ba6a5744c23e9 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 11 May 2025 22:03:38 +0100 Subject: [PATCH 4/5] dev-python/wcag-contrast-ratio: enable py3.14 Signed-off-by: Sam James --- .../wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild index bee69468a104d..9b133a29448f9 100644 --- a/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild +++ b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 ) +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) inherit distutils-r1 From 5534ba5294fd7bb591df04fd859ec34c26ff5d2b Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 11 May 2025 22:08:28 +0100 Subject: [PATCH 5/5] app-misc/resolve-march-native: Stabilize 6.0.1 arm64, #955668 Signed-off-by: Sam James --- app-misc/resolve-march-native/resolve-march-native-6.0.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-misc/resolve-march-native/resolve-march-native-6.0.1.ebuild b/app-misc/resolve-march-native/resolve-march-native-6.0.1.ebuild index d972397324986..e087c312fbdc4 100644 --- a/app-misc/resolve-march-native/resolve-march-native-6.0.1.ebuild +++ b/app-misc/resolve-march-native/resolve-march-native-6.0.1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/hartwork/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm64 ~x86" +KEYWORDS="~alpha ~amd64 arm64 ~x86" RDEPEND="|| ( >=sys-devel/gcc-4.2 llvm-core/clang )"