From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A2C4159C9B for ; Wed, 14 Aug 2024 07:36:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54B482BC027; Wed, 14 Aug 2024 07:36:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33F3D2BC027 for ; Wed, 14 Aug 2024 07:36:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3798F33BF03 for ; Wed, 14 Aug 2024 07:36:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA3721E93 for ; Wed, 14 Aug 2024 07:36:15 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1723620973.2efdb7eea7ffc763b1280cc156025fb809e23a0d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/scikit-image/, dev-python/scikit-image/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/scikit-image/files/scikit-image-0.24.0-py313.patch dev-python/scikit-image/scikit-image-0.24.0.ebuild X-VCS-Directories: dev-python/scikit-image/files/ dev-python/scikit-image/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2efdb7eea7ffc763b1280cc156025fb809e23a0d X-VCS-Branch: master Date: Wed, 14 Aug 2024 07:36:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1be11dde-8372-4fc4-8e7c-aa458092b1cf X-Archives-Hash: 186731d8c21b40240238ddbea7747416 commit: 2efdb7eea7ffc763b1280cc156025fb809e23a0d Author: Michał Górny gentoo org> AuthorDate: Wed Aug 14 07:24:11 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Aug 14 07:36:13 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2efdb7ee dev-python/scikit-image: Enable py3.13 Signed-off-by: Michał Górny gentoo.org> .../files/scikit-image-0.24.0-py313.patch | 82 ++++++++++++++++++++++ dev-python/scikit-image/scikit-image-0.24.0.ebuild | 8 ++- 2 files changed, 89 insertions(+), 1 deletion(-) diff --git a/dev-python/scikit-image/files/scikit-image-0.24.0-py313.patch b/dev-python/scikit-image/files/scikit-image-0.24.0-py313.patch new file mode 100644 index 000000000000..664a2388c08e --- /dev/null +++ b/dev-python/scikit-image/files/scikit-image-0.24.0-py313.patch @@ -0,0 +1,82 @@ +From ee41933e3ea15769cea32a514cdaeecbe84b70b9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Edgar=20Andr=C3=A9s=20Margffoy=20Tuay?= +Date: Wed, 31 Jul 2024 11:43:59 -0500 +Subject: [PATCH] Add CI to test scikit-image against free-threaded Python 3.13 + (#7463) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +enables testing scikit-image against free-threaded Python, +this is part of the ongoing effort to test projects against the +changes proposed in PEP703 + +--------- + +Co-authored-by: Stefan van der Walt +Co-authored-by: Lars Grüter +--- + .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ + TODO.txt | 2 ++ + meson.build | 2 +- + skimage/measure/_regionprops.py | 9 ++++++--- + skimage/meson.build | 10 +++++++++- + skimage/transform/_geometric.py | 2 +- + skimage/util/_map_array.py | 2 +- + tools/github/before_install.sh | 6 ++++++ + 8 files changed, 52 insertions(+), 7 deletions(-) + +diff --git a/skimage/measure/_regionprops.py b/skimage/measure/_regionprops.py +index 9f34d6a1c..82a03b394 100644 +--- a/skimage/measure/_regionprops.py ++++ b/skimage/measure/_regionprops.py +@@ -1,4 +1,5 @@ + import inspect ++import sys + from functools import wraps + from math import atan2 + from math import pi as PI +@@ -1406,9 +1407,11 @@ def _parse_docs(): + import textwrap + + doc = regionprops.__doc__ or '' +- matches = re.finditer( +- r'\*\*(\w+)\*\* \:.*?\n(.*?)(?=\n [\*\S]+)', doc, flags=re.DOTALL +- ) ++ arg_regex = r'\*\*(\w+)\*\* \:.*?\n(.*?)(?=\n [\*\S]+)' ++ if sys.version_info >= (3, 13): ++ arg_regex = r'\*\*(\w+)\*\* \:.*?\n(.*?)(?=\n[\*\S]+)' ++ ++ matches = re.finditer(arg_regex, doc, flags=re.DOTALL) + prop_doc = {m.group(1): textwrap.dedent(m.group(2)) for m in matches} + + return prop_doc +diff --git a/skimage/transform/_geometric.py b/skimage/transform/_geometric.py +index 6f696e95b..56cedae63 100644 +--- a/skimage/transform/_geometric.py ++++ b/skimage/transform/_geometric.py +@@ -687,7 +687,7 @@ class ProjectiveTransform(_GeometricTransform): + + return dst[:, :ndim] + +- def __array__(self, dtype=None): ++ def __array__(self, dtype=None, copy=None): + if dtype is None: + return self.params + else: +diff --git a/skimage/util/_map_array.py b/skimage/util/_map_array.py +index 1f852fdb6..125dfb211 100644 +--- a/skimage/util/_map_array.py ++++ b/skimage/util/_map_array.py +@@ -129,7 +129,7 @@ class ArrayMap: + """Return one more than the maximum label value being remapped.""" + return np.max(self.in_values) + 1 + +- def __array__(self, dtype=None): ++ def __array__(self, dtype=None, copy=None): + """Return an array that behaves like the arraymap when indexed. + + This array can be very large: it is the size of the largest value +-- +2.45.2 + diff --git a/dev-python/scikit-image/scikit-image-0.24.0.ebuild b/dev-python/scikit-image/scikit-image-0.24.0.ebuild index 2ec63290c17b..5bffa476e8a6 100644 --- a/dev-python/scikit-image/scikit-image-0.24.0.ebuild +++ b/dev-python/scikit-image/scikit-image-0.24.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=meson-python DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit distutils-r1 optfeature pypi @@ -51,6 +51,12 @@ distutils_enable_tests pytest # There is a programmable error in your configuration file: #distutils_enable_sphinx doc/source dev-python/numpydoc dev-python/myst-parser +PATCHES=( + # https://github.com/scikit-image/scikit-image/pull/7463 + # stripped down to minimal 3.13 support + "${FILESDIR}/${P}-py313.patch" +) + src_test() { # for some reason, upstream refetches data that's already in the tarball # sigh