dev-python/jsonpickle: add USE=test-full

... to gate dev-python/gmpy2 (not so bad but we already had a
`has_version` check for it in python_test) and dev-python/pandas (certainly
a big boy we'd like to avoid on some arches).

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-06-09 07:04:59 +01:00
parent 81ac3d20cc
commit a2e177a845
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 13 additions and 4 deletions

View File

@ -21,17 +21,20 @@ SRC_URI="
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
IUSE="test-full"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/feedparser[${PYTHON_USEDEP}]
dev-python/gmpy2[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/simplejson[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
test-full? (
dev-python/gmpy2[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
)
)
"
@ -49,10 +52,10 @@ python_test() {
tests/bson_test.py
)
if ! has_version "dev-python/gmpy2[${PYTHON_USEDEP}]"; then
if ! use test-full || ! has_version "dev-python/gmpy2[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=( jsonpickle/ext/gmpy.py )
fi
if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
if ! use test-full || ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=( jsonpickle/ext/pandas.py )
fi

View File

@ -6,6 +6,12 @@
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<use>
<flag name="test-full">
Run test suite in full via additional (large) test
dependencies, like dev-python/pandas.
</flag>
</use>
<upstream>
<remote-id type="pypi">jsonpickle</remote-id>
<remote-id type="github">jsonpickle/jsonpickle</remote-id>