commit: 5e29f64b0ff68452d7ac056407169eb231a16c21 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Dec 19 03:08:40 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Dec 19 03:30:59 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e29f64b
dev-python/scikit-image: Bump to 0.26.0_rc2 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/scikit-image/Manifest | 2 + .../scikit-image/scikit-image-0.26.0_rc2.ebuild | 100 +++++++++++++++++++++ 2 files changed, 102 insertions(+) diff --git a/dev-python/scikit-image/Manifest b/dev-python/scikit-image/Manifest index a04e426d0388..4105bf02d3f4 100644 --- a/dev-python/scikit-image/Manifest +++ b/dev-python/scikit-image/Manifest @@ -3,3 +3,5 @@ DIST scikit-image-data-5c090b56df3988d988ff97928e2ef2d2cbe38e1b.tar.bz2 15672329 DIST scikit_image-0.25.2.tar.gz 22693594 BLAKE2B 238b44c120c53c10d98fc79c9ccb81770297a16156ba2d4d52cfa4731252aa205698caac384b8569c4b52ed2eb0e61500facff00c238a3212ecd7ba9b86db3da SHA512 8977585f7695d10df52d243d9fafdba2e04b5f4d4fe698dd9353bdffc4de21ad61053f55a46ed6350d5de8f1cd7dab969d45b85613a0e5fdb0b28a84c72551a9 DIST scikit_image-0.26.0rc1.tar.gz 22730546 BLAKE2B 63ef735b0cf49aec86d2f6c0953346f3087a750defd73541497a387d8ebb4cc70a5d8c316081e6fb8bdc2841bbda616064c6031cff512e9d3e63db066fa9ebd4 SHA512 d9e473ebf75b8c627dcfc9e92827e627703cdc5e3e2cde88c1cfce37c5b543dfd143622e1b1af7d1093bf1644d2e16c71c28ccd7a0af4b888186be35470dfee0 DIST scikit_image-0.26.0rc1.tar.gz.provenance 9858 BLAKE2B 50c4ba11c523add5a91c082ff57bbe12369b3c46133df1c6f5b859cfae9f7edae26ca3ee6f0e9ef96e242bce3f6b15738fc4d0ae0f9f98c157043b8daba258c9 SHA512 90d651546f2577d0e0e0692b48e04326aab0a5c32ac78ee68002fad8bc4d5fb14423d4f5bd5a3c9dcf359132856e5842fc6eeb3955db3ad2c5a62a1edaa52cbf +DIST scikit_image-0.26.0rc2.tar.gz 22730972 BLAKE2B 8bda6ce9039a80a51f6376014f24cce34a4b25c128ea86d45db50247a761dee25a82036ec2eadb4efb4a6a3f12622c4498707b382da5879f81c68fa6b29e7732 SHA512 f1cae6d85517629d4421a0e6dda7a574e2e809dd2f7a9ccffe5ae5db34e217fe6102569c5f6bdaa67bdb520a0656223d0f7d94c52c05d339a149736959bd6caa +DIST scikit_image-0.26.0rc2.tar.gz.provenance 9764 BLAKE2B 916a6b0872ae4da778f32f7f697bb7a919920ef3dd5f85036a550d17f6f9b65f7809a70b8e4d47401d6add7a293e66b237b879214befa7e8ac19c67f5879b059 SHA512 68ceafa5b3f08d1a3523d2388c5e26c5af0ecc5278825cdf47719ac0bf159a1a7f730b6ec074f6ea5e749556acdde5fcaa8918897f8267814aaa3cc34f38e62e diff --git a/dev-python/scikit-image/scikit-image-0.26.0_rc2.ebuild b/dev-python/scikit-image/scikit-image-0.26.0_rc2.ebuild new file mode 100644 index 000000000000..a92ee2993a75 --- /dev/null +++ b/dev-python/scikit-image/scikit-image-0.26.0_rc2.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=meson-python +DISTUTILS_EXT=1 +PYPI_VERIFY_REPO=https://github.com/scikit-image/scikit-image +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 optfeature pypi + +# the package refers to blobs directly, use the newest commit to get +# them all +TEST_DATA_COMMIT=5c090b56df3988d988ff97928e2ef2d2cbe38e1b +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" + +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.4[sparse(+),${PYTHON_USEDEP}] + >=dev-python/tifffile-2022.8.12[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + dev-python/pythran[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/cython-3.0.4[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pythran[${PYTHON_USEDEP}] +" + +# xdist does not work with this test suite +EPYTEST_PLUGINS=( pytest-localserver ) +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() { + # just useless formatter replacement + rm tests/conftest.py || die + + # for some reason, upstream refetches data that's already in the tarball + # sigh + mkdir -p "${HOME}/.cache/scikit-image" || die + mv src/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/" || 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 + tests/skimage/data/test_data.py::test_download_all_with_pooch + ) + + epytest +} + +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 +}
