net-analyzer/wapiti: skip tests in installation

Also restrict tests for now, new ones require php webserver local
execution

Closes: https://bugs.gentoo.org/774300
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2021-03-05 17:40:48 +01:00
parent cb159debbc
commit b1f8a27e23
2 changed files with 14 additions and 3 deletions

View File

@@ -28,9 +28,16 @@ RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
kerberos? ( dev-python/requests-kerberos[${PYTHON_USEDEP}] )
ntlm? ( dev-python/requests-ntlm[${PYTHON_USEDEP}] )"
distutils_enable_tests --install pytest
BDEPEND+=" test? ( dev-python/responses[${PYTHON_USEDEP}] )"
# Many tests require execution of local test php server
RESTRICT="test"
S=${WORKDIR}/${MY_P}
python_prepare_all() {
sed -e 's/"pytest-runner"//' -i setup.py || die
sed -e 's/"pytest-runner"//' \
-e "/find_packages/s/()/(exclude=['tests*'])/" \
-i setup.py || die
distutils-r1_python_prepare_all
}

View File

@@ -27,10 +27,14 @@ RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
kerberos? ( dev-python/requests-kerberos[${PYTHON_USEDEP}] )
ntlm? ( dev-python/requests-ntlm[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
distutils_enable_tests --install pytest
BDEPEND+=" test? ( dev-python/responses[${PYTHON_USEDEP}] )"
# Many tests require execution of local test php server
RESTRICT="test"
python_prepare_all() {
sed -e 's/"pytest-runner"//' -i setup.py || die
sed -e 's/"pytest-runner"//' \
-e "/find_packages/s/()/(exclude=['tests*'])/" \
-i setup.py || die
distutils-r1_python_prepare_all
}