net-analyzer/wapiti: add python 3.8 and fix tests
authorBernard Cafarelli <voyageur@gentoo.org>
Sun, 19 Apr 2020 22:59:34 +0000 (00:59 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Sun, 19 Apr 2020 23:01:17 +0000 (01:01 +0200)
Releases do not have tests included, dropped them in 3.0.3 and fixed
call/dependencies in live ebuild

Closes: https://bugs.gentoo.org/714688
Closes: https://bugs.gentoo.org/718428
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
net-analyzer/wapiti/wapiti-3.0.3.ebuild
net-analyzer/wapiti/wapiti-9999.ebuild

index c9bf7dc9b1050771e358137757aaa14d7254be47..b0eb5e96506aa8b1f64e65f00970ac19d38fec0a 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7,8} )
 PYTHON_REQ_USE='xml'
 
 inherit distutils-r1
@@ -16,13 +16,8 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="kerberos ntlm test"
+IUSE="kerberos ntlm"
 
-RESTRICT="!test? ( test )"
-
-DEPEND="test? (
-       dev-python/pytest[${PYTHON_USEDEP}]
-       )"
 RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
        dev-python/lxml[${PYTHON_USEDEP}]
        dev-python/mako[${PYTHON_USEDEP}]
@@ -35,6 +30,5 @@ RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
 S=${WORKDIR}/${MY_P}
 
 python_prepare_all() {
-       sed -e 's/"pytest-runner"//' -i setup.py || die
        distutils-r1_python_prepare_all
 }
index 8a61f85b7acf210f8138db0f4e256721193b07cd..ef1480dd21ea93317fc6774b078c1134dc24952f 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7,8} )
 PYTHON_REQ_USE='xml'
 
 inherit distutils-r1 git-r3
@@ -15,13 +15,8 @@ EGIT_REPO_URI="https://git.code.sf.net/p/wapiti/git wapiti-git"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="kerberos ntlm test"
+IUSE="kerberos ntlm"
 
-RESTRICT="!test? ( test )"
-
-DEPEND="test? (
-       dev-python/pytest[${PYTHON_USEDEP}]
-       )"
 RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
        dev-python/lxml[${PYTHON_USEDEP}]
        dev-python/mako[${PYTHON_USEDEP}]
@@ -31,6 +26,9 @@ 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
+BDEPEND+=" test? ( dev-python/responses[${PYTHON_USEDEP}] )"
+
 python_prepare_all() {
        sed -e 's/"pytest-runner"//' -i setup.py || die
        distutils-r1_python_prepare_all