From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7DEA31382C5 for ; Fri, 5 Mar 2021 16:41:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CEAADE0885; Fri, 5 Mar 2021 16:41:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0E9AE0885 for ; Fri, 5 Mar 2021 16:41:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39C6B335D74 for ; Fri, 5 Mar 2021 16:41:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9634C3 for ; Fri, 5 Mar 2021 16:41:02 +0000 (UTC) From: "Bernard Cafarelli" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Bernard Cafarelli" Message-ID: <1614962459.b1f8a27e233137bcf03cd92c2d0e4cec13563920.voyageur@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wapiti/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/wapiti/wapiti-3.0.4.ebuild net-analyzer/wapiti/wapiti-9999.ebuild X-VCS-Directories: net-analyzer/wapiti/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: b1f8a27e233137bcf03cd92c2d0e4cec13563920 X-VCS-Branch: master Date: Fri, 5 Mar 2021 16:41:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 738a4116-4073-4441-8e21-cf7b03dedafd X-Archives-Hash: aa00f6ea46631e77cd8c65f0cc33f88a commit: b1f8a27e233137bcf03cd92c2d0e4cec13563920 Author: Bernard Cafarelli gentoo org> AuthorDate: Fri Mar 5 16:40:48 2021 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Fri Mar 5 16:40:59 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1f8a27e 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 gentoo.org> net-analyzer/wapiti/wapiti-3.0.4.ebuild | 9 ++++++++- 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 37fdae6f81a..4363743763e 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 53a705934cd..53d40bbaa97 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 }