diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2021-03-05 17:40:48 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2021-03-05 17:40:59 +0100 |
commit | b1f8a27e233137bcf03cd92c2d0e4cec13563920 (patch) | |
tree | 7a57635191ced1e9a06bfc18169fd1618e124c24 /net-analyzer/wapiti | |
parent | dev-python/typed-ast: Stabilize 1.4.2 arm64, #773889 (diff) | |
download | gentoo-b1f8a27e233137bcf03cd92c2d0e4cec13563920.tar.gz gentoo-b1f8a27e233137bcf03cd92c2d0e4cec13563920.tar.bz2 gentoo-b1f8a27e233137bcf03cd92c2d0e4cec13563920.zip |
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>
Diffstat (limited to 'net-analyzer/wapiti')
-rw-r--r-- | net-analyzer/wapiti/wapiti-3.0.4.ebuild | 9 | ||||
-rw-r--r-- | net-analyzer/wapiti/wapiti-9999.ebuild | 8 |
2 files changed, 14 insertions, 3 deletions
diff --git a/net-analyzer/wapiti/wapiti-3.0.4.ebuild b/net-analyzer/wapiti/wapiti-3.0.4.ebuild index 37fdae6f81ab..4363743763ef 100644 --- a/net-analyzer/wapiti/wapiti-3.0.4.ebuild +++ b/net-analyzer/wapiti/wapiti-3.0.4.ebuild @@ -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 } diff --git a/net-analyzer/wapiti/wapiti-9999.ebuild b/net-analyzer/wapiti/wapiti-9999.ebuild index 53a705934cd1..53d40bbaa97b 100644 --- a/net-analyzer/wapiti/wapiti-9999.ebuild +++ b/net-analyzer/wapiti/wapiti-9999.ebuild @@ -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 } |