diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2022-11-04 19:45:45 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2022-11-04 19:45:45 +0500 |
commit | 61311e2738566bae6cfdc1ab596fb26769295016 (patch) | |
tree | fb9f131acf2a068347500f261910ac762f894cdc /dev-python/hunter | |
parent | dev-python/fastavro: add 1.7.0, drop old (diff) | |
download | guru-61311e2738566bae6cfdc1ab596fb26769295016.tar.gz guru-61311e2738566bae6cfdc1ab596fb26769295016.tar.bz2 guru-61311e2738566bae6cfdc1ab596fb26769295016.zip |
dev-python/hunter: try to simplify tests
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'dev-python/hunter')
-rw-r--r-- | dev-python/hunter/hunter-3.5.1.ebuild | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/dev-python/hunter/hunter-3.5.1.ebuild b/dev-python/hunter/hunter-3.5.1.ebuild index 73d1df298..92992aad4 100644 --- a/dev-python/hunter/hunter-3.5.1.ebuild +++ b/dev-python/hunter/hunter-3.5.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +inherit distutils-r1 multiprocessing DESCRIPTION="Hunter is a flexible code tracing toolkit" HOMEPAGE=" @@ -15,6 +15,7 @@ HOMEPAGE=" SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}/python-${P}" TEST_S="${S}_test" + LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" @@ -36,6 +37,7 @@ BDEPEND=" DOCS=( AUTHORS.rst CHANGELOG.rst README.rst ) EPYTEST_DESELECT=( + # broken tests/test_tracer.py::test_source_cython tests/test_tracer.py::test_fullsource_cython @@ -55,16 +57,17 @@ src_unpack() { mv -f "${TEST_S}"/tests/setup.py "${TEST_S}"/setup.py || die } -python_test() { - local TEST_ROOT="${BUILD_DIR}"/test - cp -a "${BUILD_DIR}/install" "${TEST_ROOT}" || die - - cd "${TEST_S}" || die - distutils_pep517_install "${TEST_ROOT}" +python_compile() { + distutils-r1_python_compile - local -x PATH="${TEST_ROOT}/usr/bin:${PATH}" - local -x PYTHONPATH="${S}/tests:${PYTHONPATH}" + if use test; then + einfo " Building tests" + cd "${TEST_S}" || die + esetup.py build_ext -j $(makeopts_jobs) --inplace + fi +} - cd "${T}" || die - epytest "${S}"/tests +python_test() { + cd "${TEST_S}"/tests || die + epytest } |