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 BBBC513835A for ; Fri, 18 Jun 2021 14:47:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 092ECE083D; Fri, 18 Jun 2021 14:47:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 E6DA2E083D for ; Fri, 18 Jun 2021 14:47:13 +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 20C27340821 for ; Fri, 18 Jun 2021 14:47:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7DF8978E for ; Fri, 18 Jun 2021 14:47:10 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1624027622.ad567322e26c6847d93300f9fea3e180898ee101.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/nfoview/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/nfoview/nfoview-1.28.ebuild X-VCS-Directories: app-text/nfoview/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: ad567322e26c6847d93300f9fea3e180898ee101 X-VCS-Branch: master Date: Fri, 18 Jun 2021 14:47:10 +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: a42d2a83-8f13-4790-9078-5f43aa180615 X-Archives-Hash: da03aba2e436aff04f8d6c19854f54ae commit: ad567322e26c6847d93300f9fea3e180898ee101 Author: Till Schäfer uni-dortmund de> AuthorDate: Fri Jun 18 10:35:34 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Jun 18 14:47:02 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad567322 app-text/nfoview: enable pytest use distutils_enable_tests pytest Closes: https://bugs.gentoo.org/796287 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Till Schäfer uni-dortmund.de> Signed-off-by: Joonas Niilola gentoo.org> app-text/nfoview/nfoview-1.28.ebuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app-text/nfoview/nfoview-1.28.ebuild b/app-text/nfoview/nfoview-1.28.ebuild index c619ae9688c..2b8c11296e6 100644 --- a/app-text/nfoview/nfoview-1.28.ebuild +++ b/app-text/nfoview/nfoview-1.28.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -6,7 +6,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python3_{7,8,9} ) -inherit distutils-r1 xdg +inherit distutils-r1 virtualx xdg if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/otsaloma/nfoview.git" @@ -27,3 +27,13 @@ BDEPEND="${PYTHON_DEPS} DEPEND="dev-python/pygobject:3[${PYTHON_USEDEP}]" RDEPEND="${DEPEND} media-fonts/cascadia-code" + +distutils_enable_tests pytest + +python_test() { + local deselect=( + --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__unix' + --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__windows' + ) + virtx epytest "${deselect[@]}" +}