blob: c0893b8cc3d27e43a641b4713ec365f098c7a09a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=meson-python
PYPI_VERIFY_REPO=https://github.com/iameishit/Paldita-munkres
PYTHON_COMPAT=( python3_{13..14} )
inherit meson distutils-r1 pypi
DESCRIPTION="Module implementing munkres algorithm for the Assignment Problem"
HOMEPAGE="
https://github.com/iameishit/Paldita-munkres/
https://pypi.org/project/munkres/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="+native-extensions"
BDEPEND="
test? (
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( hypothesis )
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# don't ask
mv pyproject.meson.toml pyproject.toml || die
}
src_configure() {
DISTUTILS_ARGS=(
$(meson_feature native-extensions native)
)
}
python_test() {
local EPYTEST_DESELECT=(
# junk tests that require dotfiles from the git repo
tests/integration/test_examples_and_benchmarks.py::test_release_verifier_reports_no_problems
tests/test_repo_hygiene.py
# upstream build system tests
tests/test_meson_build.py
# super slow
tests/hard/test_kernel_hard.py::test_no_memory_growth_over_many_calls
# too slow to pass
tests/hard/test_system_hard.py::test_pathological_runtimes_stay_bounded
)
epytest
}
|