guru/dev-python/guppy3/guppy3-3.1.3.ebuild
YiFei Zhu 9dad0b2b5d
dev-python/guppy3: fix test to cd to "${T}" first
Doesn't seem necessary at first but according to the guide [1] it
could cause troubles if it's not enabled. Bugs have been observed
in upsteam CI indeed when Python sees two copies of the source [2].

[1] https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions
[2] https://github.com/zhuyifei1999/guppy3/issues/37

Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com>
2023-05-20 11:10:52 -07:00

25 lines
522 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
inherit distutils-r1 pypi
DESCRIPTION="A Python Programming Environment & Heap analysis toolset"
HOMEPAGE="
https://pypi.org/project/guppy3/
https://zhuyifei1999.github.io/guppy3/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
python_test() {
cd "${T}" || die
"${EPYTHON}" "${S}"/guppy/heapy/test/test_all.py || die
}