mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
81ac3d20cc
commit
a2e177a845
@ -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
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user