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 (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E74E1581F0 for ; Sat, 14 Dec 2024 09:23:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22FD6E081E; Sat, 14 Dec 2024 09:23:26 +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 048DFE081E for ; Sat, 14 Dec 2024 09:23:24 +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 7D285335C2E for ; Sat, 14 Dec 2024 09:23:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD59F159E for ; Sat, 14 Dec 2024 09:23:21 +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: <1734168198.dfb97d60466bd705c306f4b9cda5cda94cdabee5.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/scikit-image/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/scikit-image/Manifest dev-python/scikit-image/scikit-image-0.25.0.ebuild X-VCS-Directories: dev-python/scikit-image/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: dfb97d60466bd705c306f4b9cda5cda94cdabee5 X-VCS-Branch: master Date: Sat, 14 Dec 2024 09:23:21 +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: 6eaafc73-4742-4e5f-8250-62d823deb87c X-Archives-Hash: 53a830f36f2a79f5db5f0cc3d8485ce7 commit: dfb97d60466bd705c306f4b9cda5cda94cdabee5 Author: Michał Górny gentoo org> AuthorDate: Sat Dec 14 06:44:49 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Dec 14 09:23:18 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfb97d60 dev-python/scikit-image: Bump to 0.25.0 Signed-off-by: Michał Górny gentoo.org> dev-python/scikit-image/Manifest | 1 + dev-python/scikit-image/scikit-image-0.25.0.ebuild | 96 ++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/dev-python/scikit-image/Manifest b/dev-python/scikit-image/Manifest index 64265f8172a8..b94876414f28 100644 --- a/dev-python/scikit-image/Manifest +++ b/dev-python/scikit-image/Manifest @@ -1,3 +1,4 @@ DIST scikit-image-data-15735b54e85c02427f07c71e6456723495034805.tar.bz2 143900901 BLAKE2B c1352e76337250fe1a9d6e07f08b6c9b1e0aed922ab8e0a3a4a1ea175f593b3375522e59550d30a22d392c34fef26d638c007c2af3d991887e02e7c68e56ebbb SHA512 d113dd258b35be710d841f9900cfbfe7103d1190b042489de88dd504b56277edac9a98fed5517e57725c5292fe26528267a06ff313bf6500b669d872c4481146 DIST scikit_image-0.24.0.tar.gz 22693928 BLAKE2B f165f702908fe446b459de3db0ec056a4b79d7266f85bc81c991569c1e492c22d238e8553d8f035abd83d4d3c4b449304e74b55d8bf558cac977c3ea5f0c864a SHA512 becb062725b4c1f64e12a1f775175e48dbce1b989c1e8f40ec04ff79cb926740be514b9a0a68e3f9e17fb0d3c7b860c7451b91eb178bbae93521e02e3e8e92db +DIST scikit_image-0.25.0.tar.gz 22696477 BLAKE2B 6a19d10c8475e4975f9648befad410362b9cdfffcb2dd39c510d79f0498f33c305374996f4492b6f8b3d267da913f8f763d8834faae1a5949363f314f0a43fbd SHA512 b8954dd74177838f93e15f3f818868cac0f463fef420c1fabc297e691ff7c6bf2b243715b562054d38ef7fa3483eebe5f95a9e045974bcee136b32a283e1902f DIST scikit_image-0.25.0rc2.tar.gz 22697011 BLAKE2B 55fa48357343ff7663c5a956042e8914b62fe78b82085035276fb11cf10864f1d06a3f31247b766c294b91419825c3199c22b533c4e6207b5bdb152090aefbcc SHA512 4c418f6eebba394dab7d297deafc518be815be205f7701458b1adf3a9d3102c7be76ebd93d72fac78d990bfa0e06e749925c995e23315f2c23da560f93cf6867 diff --git a/dev-python/scikit-image/scikit-image-0.25.0.ebuild b/dev-python/scikit-image/scikit-image-0.25.0.ebuild new file mode 100644 index 000000000000..d2280870fe81 --- /dev/null +++ b/dev-python/scikit-image/scikit-image-0.25.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=meson-python +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 optfeature pypi + +TEST_DATA_COMMIT=15735b54e85c02427f07c71e6456723495034805 +DESCRIPTION="Image processing routines for SciPy" +HOMEPAGE=" + https://scikit-image.org/ + https://github.com/scikit-image/scikit-image/ + https://pypi.org/project/scikit-image/ +" +SRC_URI+=" + test? ( + https://gitlab.com/scikit-image/data/-/archive/${TEST_DATA_COMMIT}/scikit-image-data-${TEST_DATA_COMMIT}.tar.bz2 + ) +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/imageio-2.36[${PYTHON_USEDEP}] + >=dev-python/lazy-loader-0.4[${PYTHON_USEDEP}] + >=dev-python/networkx-3.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.24[${PYTHON_USEDEP}] + >=dev-python/pillow-10.1[${PYTHON_USEDEP}] + >=dev-python/scipy-1.11.2[sparse(+),${PYTHON_USEDEP}] + >=dev-python/tifffile-2022.8.12[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-python/cython-3.0.4[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-localserver[${PYTHON_USEDEP}] + ) +" + +# xdist does not work with this test suite +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 + +src_test() { + # for some reason, upstream refetches data that's already in the tarball + # sigh + mkdir -p "${HOME}/.cache/scikit-image" || die + mv skimage "${HOME}/.cache/scikit-image/${PV/_/}" || die + + # This is a true horror, sigh + local cache_dir=${HOME}/.cache/scikit-image/${PV/_/}/data + pushd "${WORKDIR}/data-${TEST_DATA_COMMIT}" >/dev/null || die + cp Tests_besides_Equalize_Otsu/add18_entropy/rank_filters_tests_3d.npz \ + Tests_besides_Equalize_Otsu/gray_morph_output.npz \ + brain.tiff cells3d.tif eagle.png \ + "${cache_dir}/" || die + cp Normal_Epidermis_and_Dermis_with_Intradermal_Nevus_10x.JPG "${cache_dir}"/skin.jpg || die + cp pivchallenge/B/B001_1.tif "${cache_dir}"/pivchallenge-B-B001_1.tif || die + cp pivchallenge/B/B001_2.tif "${cache_dir}"/pivchallenge-B-B001_2.tif || die + cp kidney-tissue-fluorescence.tif "${cache_dir}"/kidney.tif || die + cp lily-of-the-valley-fluorescence.tif "${cache_dir}"/lily.tif || die + cp astronaut_rl.npy "${cache_dir}/../restoration/tests/" || die + popd > /dev/null || die + + distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # tests for downloading all data files, including these not needed + # by any actual tests + data/tests/test_data.py::test_download_all_with_pooch + # hangs? TODO + graph/tests/test_rag.py::test_reproducibility + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest --pyargs skimage -p localserver -o xfail_strict=False +} + +pkg_postinst() { + optfeature "FITS io capability" dev-python/astropy + optfeature "GTK" dev-python/pygtk + optfeature "io plugin providing most standard formats" dev-python/imread + optfeature "plotting" dev-python/matplotlib + optfeature "wavelet transformations" dev-python/pywavelets + optfeature "io plugin providing a wide variety of formats, including specialized formats using in medical imaging." dev-python/simpleitk +}