Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/hunter/
Date: Sun, 05 Jun 2022 07:51:36
Message-Id: 1654415417.49935119c667ed61381cea07bf2858a44e53b5a0.cybertailor@gentoo
1 commit: 49935119c667ed61381cea07bf2858a44e53b5a0
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sun Jun 5 07:50:17 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Sun Jun 5 07:50:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49935119
7
8 dev-python/hunter: fix tests
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 dev-python/hunter/hunter-3.4.3-r1.ebuild | 21 ++++++++++++++++-----
13 1 file changed, 16 insertions(+), 5 deletions(-)
14
15 diff --git a/dev-python/hunter/hunter-3.4.3-r1.ebuild b/dev-python/hunter/hunter-3.4.3-r1.ebuild
16 index 7b0f95954..d1a6e4c1e 100644
17 --- a/dev-python/hunter/hunter-3.4.3-r1.ebuild
18 +++ b/dev-python/hunter/hunter-3.4.3-r1.ebuild
19 @@ -5,7 +5,7 @@ EAPI=8
20
21 PYTHON_COMPAT=( python3_{8..10} )
22 DISTUTILS_USE_PEP517=setuptools
23 -inherit distutils-r1 edo multiprocessing
24 +inherit distutils-r1 multiprocessing
25
26 DESCRIPTION="Hunter is a flexible code tracing toolkit"
27 HOMEPAGE="
28 @@ -51,17 +51,28 @@ distutils_enable_tests pytest
29
30 distutils_enable_sphinx docs ">=dev-python/sphinx-py3doc-enhanced-theme-2.3.2"
31
32 +src_unpack() {
33 + default
34 + cp -a ${S} tests_package || die
35 + mv -f tests_package/tests/setup.py tests_package || die
36 +}
37 +
38 python_compile() {
39 distutils-r1_python_compile
40
41 if use test; then
42 - esetup.py build_ext -j $(makeopts_jobs) --inplace
43 - edo ${EPYTHON} tests/setup.py build_ext -j $(makeopts_jobs) --inplace
44 - rm -rf build || die
45 + cd "${WORKDIR}"/tests_package || die
46 + esetup.py build_ext -j $(makeopts_jobs)
47 fi
48 }
49
50 python_test() {
51 - cd tests || die
52 + cp -a "${BUILD_DIR}"/{install,test} || die
53 + local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH}
54 +
55 + cd "${WORKDIR}"/tests_package >/dev/null || die
56 + distutils_pep517_install "${BUILD_DIR}"/test
57 +
58 + cd ./tests || die
59 epytest
60 }