summaryrefslogtreecommitdiff
path: root/dev-python/jsonpickle
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-06-09 07:04:59 +0100
committerSam James <sam@gentoo.org>2025-06-09 07:06:29 +0100
commita2e177a845f3d3b29cfad6ca671a0b6c0036b43c (patch)
tree190c72fec83bcef0a77623c921ae5f8d9aecc435 /dev-python/jsonpickle
parent81ac3d20ccc17fb02253ae8439f30921b1c281fe (diff)
downloadgentoo-a2e177a845f3d3b29cfad6ca671a0b6c0036b43c.tar.gz
gentoo-a2e177a845f3d3b29cfad6ca671a0b6c0036b43c.tar.bz2
gentoo-a2e177a845f3d3b29cfad6ca671a0b6c0036b43c.zip
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>
Diffstat (limited to 'dev-python/jsonpickle')
-rw-r--r--dev-python/jsonpickle/jsonpickle-4.1.1.ebuild11
-rw-r--r--dev-python/jsonpickle/metadata.xml6
2 files changed, 13 insertions, 4 deletions
diff --git a/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild b/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild
index 0e87e8215e7d..b75a7b2f9a9f 100644
--- a/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild
+++ b/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild
@@ -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
diff --git a/dev-python/jsonpickle/metadata.xml b/dev-python/jsonpickle/metadata.xml
index 5e535d77d78d..01acbd6eca7a 100644
--- a/dev-python/jsonpickle/metadata.xml
+++ b/dev-python/jsonpickle/metadata.xml
@@ -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>