mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
Merge updates from master
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
DIST aiohappyeyeballs-2.3.5.gh.tar.gz 55133 BLAKE2B 09560b2616ecb6f2b496269f6d9589965b46f3be577fb8f3385a7f05d8af41c411d74320bbe6090e95bcea520167474b54866f56e16fce897062f11a58f26d03 SHA512 bd322bb62d9fe5e82e8b7380a9b769f670fb0cb2a653d31ccfd3c25e5dc58dde814291deecfc3d159ca13282fa149e654d8e4b16bc8a042d31f40318b6aadd2b
|
||||
DIST aiohappyeyeballs-2.3.6.gh.tar.gz 55205 BLAKE2B 7359b17a21e33247ea60a21c3303464e92841b8a6dbfb7c75380ce7bcc708f2f71e1041c6d976f467f99e16e55a22f516701a5439809dec4b6910b6a70c0d119 SHA512 637ac7f0fd5433f3f01b3289924fec53742d60f7b87696d2614c34e463324165135fe4111b2afb4499ed76d08a6759721aad5a2a6e62b227f1ff38cc936e0719
|
||||
DIST aiohappyeyeballs-2.3.7.gh.tar.gz 55283 BLAKE2B 4c8167fb646ed4f1b7472d170e75027abbf0b08908d4bb45d1d167403e8ff35382d654de7684750495305b09158ee3aa8951639d7c5e104ba2b4d22132c498f2 SHA512 c432e9cd9165f1f125280a78f616b09e276bfcb52ed76d498920bf0534450657f60061f4098df55dc2f9a27043ac094ce2f1431b328507173b6b35bd226a48db
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
DIST griffe-0.47.0.gh.tar.gz 233418 BLAKE2B cb31882f9ddd7210ac36eb400d182395b0da3cd37e38458f23582117aae4c83e9cd62a3dfb16067ec518a42ed6b4f6d9d77d6927be2ca462297c6420bcd25cd8 SHA512 d1d0603a81a8c859c67791ceeaf3c03a134ae221d7554b2a1133ed60a3ca85d157980b26c6930c282c50d9d46a02f26a44dffcfe0c1bd844a3f0ba58f2a1c52c
|
||||
DIST griffe-0.48.0.gh.tar.gz 370711 BLAKE2B 197da160c0e20d9669a5347fbf256db58c5a3e5e33094ddd104ae02ac9112d2daa17778ba64bc6611117a7d20af42b1b3e4101b3ec56ef8cc0dc2297d6d38a3a SHA512 3b999fbd05b206c973fe5dc7c89500f2fbfe9376529d0b5cc1714dee30f2a17985e4ed6903e638e0b96600e546747f105cab11620190185c133c53dd1df9a364
|
||||
DIST griffe-0.49.0.gh.tar.gz 377617 BLAKE2B 3c30ff5a0b222d462d4b74ab1f4b1545dce04a10f3cef460a752edc33743d638a4fc7aa5b2db39c611b1908035f9bf4c283dec00bf4bc513ca951df261c657e2 SHA512 6f1e3634bb2bff730e1ea38f90d161c7d8882f234d4ad0e36c18357575a31575b87bfac80867ec695cf668b31da9995e41a64b97d970fc2f4ab499974c43d00e
|
||||
DIST griffe-1.0.0.gh.tar.gz 378841 BLAKE2B a71007a09585b1ef0b17c867177f01e0e38984075f1450a6957a65427c3b9fb2486bbf7fa0b41f3c8ce289003e514eeaaefe0b679181d843a8b57befca39a8b4 SHA512 5a286c293f39b0df185345c00954d61e130cf3942aa8dede56180330dff5150043d77bf48ef14bc01c8b1af0af19de8651344d3f3a8fbf850ece1c4c04d17513
|
||||
DIST griffe-1.1.0.gh.tar.gz 379874 BLAKE2B 452d98f1248866ee159229aec84bc99f7f83bc9c22505c809ea0de2b9bf6342ffddae42f694c30a2b696de081a34d886e42270a1c6a68aedc5a9f544112889da SHA512 a443c3094c4044b58537b5fa781610d99e26be195df216b74a097257596f52ecc7021ba5fb504c82f7960154b8d3a00fa05cc63526e538291486e915ef44cc51
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=pdm-backend
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Signature generator for Python programs"
|
||||
HOMEPAGE="
|
||||
https://mkdocstrings.github.io/griffe/
|
||||
https://github.com/mkdocstrings/griffe/
|
||||
https://pypi.org/project/griffe/
|
||||
"
|
||||
# Tests need files absent from the PyPI tarballs
|
||||
SRC_URI="
|
||||
https://github.com/mkdocstrings/griffe/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/colorama-0.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/jsonschema-4.17[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-xdist-2.4[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export PDM_BUILD_SCM_VERSION=${PV}
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# fragile to installed packages
|
||||
# (failed on PySide2 for me)
|
||||
tests/test_stdlib.py::test_fuzzing_on_stdlib
|
||||
)
|
||||
@@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=pdm-backend
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Signature generator for Python programs"
|
||||
HOMEPAGE="
|
||||
https://mkdocstrings.github.io/griffe/
|
||||
https://github.com/mkdocstrings/griffe/
|
||||
https://pypi.org/project/griffe/
|
||||
"
|
||||
# Tests need files absent from the PyPI tarballs
|
||||
SRC_URI="
|
||||
https://github.com/mkdocstrings/griffe/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~riscv"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/colorama-0.4[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/backports-strenum-1.3[${PYTHON_USEDEP}]
|
||||
' 3.10)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/jsonschema-4.17[${PYTHON_USEDEP}]
|
||||
dev-python/mkdocstrings[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-xdist-2.4[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export PDM_BUILD_SCM_VERSION=${PV}
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# fragile to installed packages
|
||||
# (failed on PySide2 for me)
|
||||
tests/test_stdlib.py::test_fuzzing_on_stdlib
|
||||
)
|
||||
@@ -22,7 +22,7 @@ SRC_URI="
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~riscv"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/colorama-0.4[${PYTHON_USEDEP}]
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
DIST imageio-2.34.2.gh.tar.gz 413832 BLAKE2B 1aec3797a5ddf1d644577246e5aab4cde84913aea6befa66d038e1819fac50006fa44bcdac68d46acb0de723b538a88bb7985aa0f855ea62a0403600334a5e43 SHA512 07e5f2fbb46ba653eb3de4f59d4c04d77405e4c7d680a4f853b9b95bc7de48f33866a53f37f56cc8ae0b9e0f505771ab1aa57db9dd975db90077ce8ba0060f9f
|
||||
DIST imageio-2.35.0.gh.tar.gz 415875 BLAKE2B 5fc774c6e48fdd6a4171397cd7c8af8be323886979186507692754bfd439ceaf1434bc3958ec7f55570cb39ae0713d77b6999233339ba20c0f343abd9dd72728 SHA512 707aee7dea36d9292c867e551b0c1dd78e1b52e41c03238f28e77b133bc82c1f0e8de8c25200fefc65c69dbb47720e3878292abc697ed09c9e12dcea09c3da99
|
||||
DIST imageio-test_images-1121036015c70cdbb3015e5c5ba0aaaf7d3d6021.gh.tar.gz 195497374 BLAKE2B 0083212fd63c196dc2e721bff8f89c177b6741317b6b1c6ae9d00a8dd5fb6366efa3f01b9bffafafac7177cfdaa4d700077a2bad42ada735f5553e97f651c4ad SHA512 1bb1f36a069bfaa0d0ffe5258534e02e49237fc6ce85fe3d3648650130165abc9b3d5ff0e7e5861ee1d94add00d4258575f9c2f8556debecf597bdaa5499efe0
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
TEST_IMAGES_COMMIT=1121036015c70cdbb3015e5c5ba0aaaf7d3d6021
|
||||
DESCRIPTION="Python library for reading and writing image data"
|
||||
HOMEPAGE="
|
||||
https://imageio.readthedocs.io/en/stable/
|
||||
https://github.com/imageio/imageio/
|
||||
https://pypi.org/project/imageio/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/imageio/imageio/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
test? (
|
||||
https://github.com/imageio/test_images/archive/${TEST_IMAGES_COMMIT}.tar.gz
|
||||
-> imageio-test_images-${TEST_IMAGES_COMMIT}.gh.tar.gz
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/numpy-1.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pillow-8.3.2[${PYTHON_USEDEP}]
|
||||
media-libs/freeimage
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/imageio-ffmpeg-0.4.9-r1[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/tifffile[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
media-video/ffmpeg[openh264]
|
||||
media-video/ffmpeg[x264]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# block silently downloading vulnerable libraries from the Internet
|
||||
"${FILESDIR}/imageio-2.22.0-block-download.patch"
|
||||
)
|
||||
|
||||
if use test; then
|
||||
mv "${WORKDIR}/test_images-${TEST_IMAGES_COMMIT}" .test_images || die
|
||||
# upstream tries to update the image cache, and invalidates it
|
||||
# if "git pull" fails
|
||||
sed -i -e 's:git pull:true:' tests/conftest.py || die
|
||||
# ffmpeg tests expect it there
|
||||
mkdir -p "${HOME}/.imageio/images" || die
|
||||
cp .test_images/cockatoo.mp4 "${HOME}/.imageio/images" || die
|
||||
fi
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_IGNORE=(
|
||||
# uses fsspec to grab prebuilt .so from GitHub, sigh
|
||||
tests/test_freeimage.py
|
||||
)
|
||||
|
||||
local EPYTEST_DESELECT=(
|
||||
# Note: upstream has a needs_internet marker but it is also
|
||||
# used to mark tests that require test_images checkout that we
|
||||
# supply
|
||||
|
||||
# Tries to download ffmpeg binary ?!
|
||||
tests/test_ffmpeg.py::test_get_exe_installed
|
||||
# blocked by our patch
|
||||
tests/test_core.py::test_fetching
|
||||
tests/test_core.py::test_request
|
||||
# Internet
|
||||
tests/test_bsdf.py::test_from_url
|
||||
tests/test_core.py::test_mvolread_out_of_bytes
|
||||
tests/test_core.py::test_request_read_sources
|
||||
tests/test_pillow.py::test_gif_first_p_frame
|
||||
tests/test_pillow.py::test_png_remote
|
||||
tests/test_pillow.py::test_webp_remote
|
||||
tests/test_pillow_legacy.py::test_png_remote
|
||||
tests/test_swf.py::test_read_from_url
|
||||
# requires pillow-heif, also possibly Internet
|
||||
tests/test_pillow.py::test_avif_remote
|
||||
tests/test_pillow.py::test_heif_remote
|
||||
# not important, requires random system libs
|
||||
tests/test_core.py::test_findlib2
|
||||
)
|
||||
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
DIST importlib_resources-6.4.0.tar.gz 42040 BLAKE2B 55b52a42051c6900af7b5b70783476a48398ae02539871a3f508df08fd5b4ec03bbe40980de8cd49a60cc022905a4ffdfd95b55d70e0cfb5d64497b02cc9b88f SHA512 c600e7ba96431f15a929e5acda89a262ceef33a3f44ae361fad4201dde8033dd8f0f2bcb856619fd5e21209a5d17cf9ae3610e65c3e6ecd0e36545437d0064b9
|
||||
DIST importlib_resources-6.4.2.tar.gz 41629 BLAKE2B 21bfb0af9421f49acce3209ec93016b69626a179d65f48066abea8792292506b739460675cc9c0ce552d11db261af409d5aa2bab2b7b16c3daab133873d3a353 SHA512 e3bb0e1ccf35fe36f805a97ff71cd82d9e55547baf1c6083bec07c2528cb1f11497926f76917cfba3924c04d6fd5753ccfbb912fdf08174c5b63f5f1a198acf5
|
||||
DIST importlib_resources-6.4.3.tar.gz 42026 BLAKE2B 8a88825467bf558b4232ce4f1600ceda56b67283d93182d0144b5cabe6227bdf79e24a8fb6cef47d7cc59cc9cc293e70c7a2cd7ab1512a523f04cf167ac27cdb SHA512 23b6e8d37d2317cfe9d465f8083b6fa8826c34ec114844993556657b943ecca3b3d6e5f4ca958787d980ebd451e174b8e134f35445bdef085ca29b71c76e248e
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
# backport from py3.12
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..11} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Read resources from Python packages"
|
||||
HOMEPAGE="
|
||||
https://github.com/python/importlib_resources/
|
||||
https://pypi.org/project/importlib-resources/
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
BDEPEND="
|
||||
dev-python/setuptools-scm[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/jaraco-test-5.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/zipp-3.17[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
@@ -1 +1,2 @@
|
||||
DIST jq.py-1.7.0.gh.tar.gz 1953673 BLAKE2B 861dcb706ef801ff3abb47a6b85fb8aad03988c717a67063d737667ce6853c89dbe10bf61dac517701b8b3e3af6b97d12a15ed03aa0d5a6e6d0d3fa2697e9284 SHA512 918e4537eacf55d0cce888b1946b13acb6d177906d704c99e0b1cc88a55a2929fbeccef7d3fa61daaf0290a97afec581d23a641bdbfc0c700744422135fbcad6
|
||||
DIST jq.py-1.8.0.gh.tar.gz 1954418 BLAKE2B e823ab01a7ce42abc542b58bb1f966e6447b85d66c7b72e8b0765a65f6ae510cf5c6045e14c802237360c2108f84428dc9b18a452e1334ba5ee709a4c835e5bd SHA512 83e9a7599518b5281f25954d5fc66de488678ef86982964bc04ae3739d4627220a9ec92570810f9cf235a8e5351284ac430053e6f826ca42f831d837b4750d83
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P="jq.py-${PV}"
|
||||
DESCRIPTION="Python bindings for jq"
|
||||
HOMEPAGE="
|
||||
https://github.com/mwilliamson/jq.py/
|
||||
https://pypi.org/project/jq/
|
||||
"
|
||||
# pypi sdist is missing .pyx
|
||||
SRC_URI="
|
||||
https://github.com/mwilliamson/jq.py/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# Minimum versions of jq + onigurama are from setup.py's bundled versions
|
||||
DEPEND="
|
||||
>=app-misc/jq-1.7.1:=
|
||||
>=dev-libs/oniguruma-6.9.8:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile() {
|
||||
local -x JQPY_USE_SYSTEM_LIBS=1
|
||||
|
||||
# Cython compilation isn't part of setup.py, so do it manually
|
||||
"${EPYTHON}" -m cython -3 jq.pyx -o jq.c || die
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST plotly.py-5.22.0.gh.tar.gz 31113116 BLAKE2B 67c0ad0d29b9b5041d1e310336a859c11399cced422f51d9f0906f61474868858f6f62da0172bec3e48f38eb5d1f7c68b497b6014b64f8cf48ef510a41f639ee SHA512 447072a78a5914aea5546edc6c51ea36475d12fd7e4b9f845ebe8396fb531c9b7ba942b6b5f9680f897acd9e2aefb8c09d08aadf106a78531faa8995d5ac218e
|
||||
DIST plotly.py-5.23.0.gh.tar.gz 31606651 BLAKE2B f34d1df464cac49ab834674be8815b97535d8f59e4263d8f68d82f2c2c52976a26b13fe9275f4a90fe0c0848449807dcd8342c0e5309d4b39d61b39cb31d8db5 SHA512 96573bf5952b29a75d2c87029c1041f05d08f4f891d63d5999372d64c211abc5982308dcfbf7590981cd0666ae84ccbee8c9a22e8e2b97571fc8c6a4e634cdbc
|
||||
|
||||
@@ -1,116 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=plotly.py-${PV}
|
||||
DESCRIPTION="Browser-based graphing library for Python"
|
||||
HOMEPAGE="
|
||||
https://plotly.com/python/
|
||||
https://github.com/plotly/plotly.py/
|
||||
https://pypi.org/project/plotly/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/plotly/plotly.py/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}/packages/python/plotly"
|
||||
# The tests are not included in the PyPI tarball, to use the GitHub tarball
|
||||
# we have to skip npm, which means that the resulting install will
|
||||
# unfortunately lack the jupyterlab extension.
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
>=dev-python/tenacity-6.2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/ipykernel[${PYTHON_USEDEP}]
|
||||
dev-python/ipython[${PYTHON_USEDEP}]
|
||||
dev-python/ipywidgets[${PYTHON_USEDEP}]
|
||||
dev-python/jupyter[${PYTHON_USEDEP}]
|
||||
dev-python/jupyterlab[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
<dev-python/numpy-2[${PYTHON_USEDEP}]
|
||||
dev-python/pandas[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/scipy[${PYTHON_USEDEP}]
|
||||
dev-python/shapely[${PYTHON_USEDEP}]
|
||||
dev-python/statsmodels[${PYTHON_USEDEP}]
|
||||
dev-python/xarray[${PYTHON_USEDEP}]
|
||||
dev-python/scikit-image[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
# README ends up a broken symlink
|
||||
DOCS=()
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.8.0-fix-versioneer-import.patch
|
||||
)
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
# Needs porting to newer numpy
|
||||
_plotly_utils/tests/validators/test_integer_validator.py
|
||||
|
||||
# kaleido not packaged
|
||||
plotly/tests/test_optional/test_kaleido
|
||||
|
||||
# plotly-orca not packaged
|
||||
plotly/tests/test_orca
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Also needs porting to newer numpy
|
||||
plotly/tests/test_io/test_to_from_plotly_json.py::test_object_numpy_encoding
|
||||
|
||||
# kaleido not packaged
|
||||
plotly/tests/test_orca/test_to_image.py::test_bytesio
|
||||
|
||||
# Fails if not already installed
|
||||
test_init/test_dependencies_not_imported.py::test_dependencies_not_imported
|
||||
test_init/test_lazy_imports.py::test_lazy_imports
|
||||
|
||||
# Minor matplotlib incompatibility
|
||||
plotly/matplotlylib/mplexporter/tests/test_basic.py::test_path_collection
|
||||
plotly/matplotlylib/mplexporter/tests/test_basic.py::test_legend_dots
|
||||
plotly/matplotlylib/mplexporter/tests/test_utils.py::test_linestyle
|
||||
|
||||
# In python 3.11 the produced error is slightly different
|
||||
plotly/tests/test_core/test_errors/test_dict_path_errors.py::test_described_subscript_error_on_type_error
|
||||
|
||||
# TODO
|
||||
plotly/tests/test_io/test_to_from_plotly_json.py
|
||||
|
||||
# two subtests that require 'vaex' and 'polars' respectively
|
||||
plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_from_vaex_and_polars
|
||||
plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_with_hover_data_from_vaex_and_polars
|
||||
)
|
||||
|
||||
# There are sphinx docs but we are missing a bunch of dependencies.
|
||||
# distutils_enable_sphinx ../../../doc/apidoc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# Do not try to fetch stuff with npm
|
||||
export SKIP_NPM=1
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
mv "${ED}"/{usr/etc,etc} || die
|
||||
}
|
||||
@@ -1,3 +1,2 @@
|
||||
DIST scikit-image-data-15735b54e85c02427f07c71e6456723495034805.tar.bz2 143900901 BLAKE2B c1352e76337250fe1a9d6e07f08b6c9b1e0aed922ab8e0a3a4a1ea175f593b3375522e59550d30a22d392c34fef26d638c007c2af3d991887e02e7c68e56ebbb SHA512 d113dd258b35be710d841f9900cfbfe7103d1190b042489de88dd504b56277edac9a98fed5517e57725c5292fe26528267a06ff313bf6500b669d872c4481146
|
||||
DIST scikit_image-0.23.2.tar.gz 22678261 BLAKE2B 11c44676e9f7bce7735e85d8416175a55b1808807b99597d60495dc2b0c961a05a514b5ec456665a25d31cc09a20e430c331cfd5bc10afa01ca4070722aa03f8 SHA512 8abf6c2bb92a75524d254265822cdc49db636a482efe0d6459fc113f6898bc5c19ad58905a5020a9c4262f55993ad2e8d13810023c62d06c5ee9854666f5337f
|
||||
DIST scikit_image-0.24.0.tar.gz 22693928 BLAKE2B f165f702908fe446b459de3db0ec056a4b79d7266f85bc81c991569c1e492c22d238e8553d8f035abd83d4d3c4b449304e74b55d8bf558cac977c3ea5f0c864a SHA512 becb062725b4c1f64e12a1f775175e48dbce1b989c1e8f40ec04ff79cb926740be514b9a0a68e3f9e17fb0d3c7b860c7451b91eb178bbae93521e02e3e8e92db
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
# 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..12} )
|
||||
|
||||
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.33[${PYTHON_USEDEP}]
|
||||
>=dev-python/lazy-loader-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/networkx-2.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.23[${PYTHON_USEDEP}]
|
||||
>=dev-python/pillow-9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/scipy-1.9[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}]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( CONTRIBUTORS.txt RELEASE.txt )
|
||||
|
||||
# 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
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
DIST tables-3.10.0.tar.gz 4762618 BLAKE2B 351ec7e1bb9f0e4a43686b51911793aac32260d88418e1dac0b4fb815fd0f48543e139d1b7ea5607c1368578db4c6513a36d6379f4038cc53fbead4a436ce50d SHA512 10b4d2d1df5c692b72ad599cebc81fc2ef56f432a8d8059c2cede25a201076d12aff3e8874dafb8ef1d41dcc6c9151523f7e4fae3971443f79d051c6f8fcbc88
|
||||
DIST tables-3.10.1.tar.gz 4762413 BLAKE2B b185e839767cb339bf5e3760d6d37593eb57551776c563bd99eaaeabc5ee3c041f3b86a03995294dbfaa1a27b0581b0c4544fac0dbdfacd507fe487c1256a2cc SHA512 7590dccefdd718d170ac288d391173ed540760a911f53fd39e37dd74237dc554f9363c8d9d4d518f067da299d71a1d8cb4a40134b1afaf79daa0a17de248caf5
|
||||
DIST tables-3.9.2.tar.gz 4683437 BLAKE2B 7044aede85d9eca67260a309d19b5c80944b80b2107f665296ad7ae6a3c3f9a8717a41ae7298a5ae45e5b9de7ae0a6678a83d4bd914bd8709512333e783367bc SHA512 9b416222304b7798585a20d4d7d61934023f151d4262a58a4f0ee969aa365264270c12a734461a194d2c857a13a8e09fb7a1386042267113f601560c041cecd9
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1 prefix pypi
|
||||
|
||||
DESCRIPTION="Hierarchical datasets for Python"
|
||||
HOMEPAGE="
|
||||
https://www.pytables.org/
|
||||
https://github.com/PyTables/PyTables/
|
||||
https://pypi.org/project/tables/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="+cpudetection examples test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
app-arch/bzip2:0=
|
||||
app-arch/lz4:0=
|
||||
>=app-arch/zstd-1.0.0:=
|
||||
>=dev-libs/c-blosc-1.11.1:0=
|
||||
>=dev-libs/c-blosc2-2.11.0:=
|
||||
dev-libs/lzo:2=
|
||||
>=dev-python/numpy-1.19.0:=[${PYTHON_USEDEP}]
|
||||
>=sci-libs/hdf5-1.8.4:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=dev-python/numexpr-2.6.2[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
cpudetection? ( dev-python/py-cpuinfo[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/cython-0.21[${PYTHON_USEDEP}]
|
||||
virtual/pkgconfig
|
||||
cpudetection? ( dev-python/py-cpuinfo[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
${RDEPEND}
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
rm -r c-blosc/{blosc,internal-complibs} || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
sed -i -e '/blosc2/d' pyproject.toml || die
|
||||
hprefixify -w '/prefixes =/' setup.py
|
||||
|
||||
export PYTABLES_NO_EMBEDDED_LIBS=1
|
||||
export USE_PKGCONFIG=TRUE
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
|
||||
"${EPYTHON}" tables/tests/test_all.py -v || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r contrib examples
|
||||
docompress -x /usr/share/doc/${PF}/{contrib,examples}
|
||||
fi
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST xxhash-3.4.1.tar.gz 84220 BLAKE2B 9bf0bc3ea15adbcf9c1b0dd526f406bd20ca11b6c25c2c771e34952d9bd3d2e85d121304bebfe47590573b4da73acf28d1726d0c628239ec9591738462cee3c0 SHA512 ab3c1fa5ce3ebefa13f87c60a700a897a080c576f1ce492bae9c47eb24a9d182cc8e71bfed81c8f0413ee261fd5522bdf44187043c9703958b72fa77e46a8953
|
||||
DIST xxhash-3.5.0.tar.gz 84241 BLAKE2B efe3fcfa02b15afd1539aa8667878868430337a9fe1decca03ae402893c743fd6f2e8dbbfae747e54a9bc6b65ba5cf5f4d2170181b88a820e9d4615b2b902ec7 SHA512 0242589264cba67eb535a0fffbfa8f171fe8c1991b8a90a1484311f283c9f49c81cae8a86552c43232aa9ac7ba66c989fda0a21bb403b3e8219b32db53941b2e
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Python binding for the xxHash library"
|
||||
HOMEPAGE="
|
||||
https://github.com/ifduyue/python-xxhash/
|
||||
https://pypi.org/project/xxhash/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/xxhash-0.8.0
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_configure_all() {
|
||||
export XXHASH_LINK_SO=1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd tests || die
|
||||
eunittest
|
||||
}
|
||||
Reference in New Issue
Block a user