mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
72 lines
1.8 KiB
Bash
72 lines
1.8 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="Easy to use fixtures to write regression tests"
|
|
HOMEPAGE="
|
|
https://github.com/ESSS/pytest-regressions/
|
|
https://pypi.org/project/pytest-regressions/
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
|
|
|
RDEPEND="
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
>=dev-python/pytest-datadir-1.7.0[${PYTHON_USEDEP}]
|
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
"
|
|
|
|
EPYTEST_PLUGIN_LOAD_VIA_ENV=1
|
|
EPYTEST_PLUGINS=()
|
|
distutils_enable_tests pytest
|
|
distutils_enable_sphinx doc dev-python/sphinx-rtd-theme
|
|
|
|
python_test() {
|
|
local EPYTEST_DESELECT=()
|
|
local EPYTEST_IGNORE=()
|
|
if ! has_version "dev-python/matplotlib[${PYTHON_USEDEP}]"; then
|
|
EPYTEST_DESELECT+=(
|
|
tests/test_image_regression.py::test_image_regression
|
|
)
|
|
fi
|
|
if ! has_version "dev-python/numpy[${PYTHON_USEDEP}]"; then
|
|
EPYTEST_IGNORE+=(
|
|
tests/test_ndarrays_regression.py
|
|
)
|
|
fi
|
|
if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
|
|
EPYTEST_DESELECT+=(
|
|
tests/test_filenames.py::test_foo
|
|
tests/test_filenames.py::TestClass::test_foo
|
|
tests/test_filenames.py::TestClassWithIgnoredName::test_foo
|
|
)
|
|
EPYTEST_IGNORE+=(
|
|
tests/test_dataframe_regression.py
|
|
tests/test_num_regression.py
|
|
)
|
|
fi
|
|
if ! has_version "dev-python/pillow[${PYTHON_USEDEP}]"; then
|
|
EPYTEST_DESELECT+=(
|
|
tests/test_image_regression.py
|
|
)
|
|
fi
|
|
|
|
if [[ ${EPYTHON} == python3.14* ]] ; then
|
|
EPYTEST_DESELECT+=(
|
|
# Sensitive to warnings
|
|
tests/test_data_regression.py::test_regen_all
|
|
)
|
|
fi
|
|
|
|
local EPYTEST_PLUGINS=( pytest-{datadir,regressions} )
|
|
epytest
|
|
}
|