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 180B313835A for ; Mon, 18 May 2020 18:39:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B5EFE08D0; Mon, 18 May 2020 18:39:43 +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 05761E08E8 for ; Mon, 18 May 2020 18:39:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 58BB534F072 for ; Mon, 18 May 2020 18:39:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 334141F5 for ; Mon, 18 May 2020 18:39:39 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1589821919.e02da715d0ec8864974a94e61f0f21e3a6b9d08c.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-randomly/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-randomly/pytest-randomly-3.3.1-r1.ebuild dev-python/pytest-randomly/pytest-randomly-3.3.1.ebuild X-VCS-Directories: dev-python/pytest-randomly/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: e02da715d0ec8864974a94e61f0f21e3a6b9d08c X-VCS-Branch: dev Date: Mon, 18 May 2020 18:39:39 +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: 3305ab3d-dda5-48d8-a40d-e9b963499184 X-Archives-Hash: 66725a2b8ab3c1f1219754e7f9fbb895 commit: e02da715d0ec8864974a94e61f0f21e3a6b9d08c Author: Alessandro Barbieri gmail com> AuthorDate: Mon May 18 17:11:59 2020 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Mon May 18 17:11:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e02da715 dev-python/pytest-randomly: install before testing Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri gmail.com> .../pytest-randomly-3.3.1-r1.ebuild | 8 +++- .../pytest-randomly/pytest-randomly-3.3.1.ebuild | 47 ---------------------- 2 files changed, 6 insertions(+), 49 deletions(-) diff --git a/dev-python/pytest-randomly/pytest-randomly-3.3.1-r1.ebuild b/dev-python/pytest-randomly/pytest-randomly-3.3.1-r1.ebuild index be8f908..7aa75e0 100644 --- a/dev-python/pytest-randomly/pytest-randomly-3.3.1-r1.ebuild +++ b/dev-python/pytest-randomly/pytest-randomly-3.3.1-r1.ebuild @@ -18,7 +18,8 @@ SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" - +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=" dev-python/docutils[${PYTHON_USEDEP}] dev-python/factory_boy[${PYTHON_USEDEP}] @@ -43,4 +44,7 @@ DEPEND=" # $(python_gen_cond_dep 'dev-python/check-manifest[${PYTHON_USEDEP}]' python3_8) # dev-python/multilint[${PYTHON_USEDEP}] -distutils_enable_tests pytest +python_test() { + distutils_install_for_testing + pytest -vv || die "Testsuite failed under ${EPYTHON}" +} diff --git a/dev-python/pytest-randomly/pytest-randomly-3.3.1.ebuild b/dev-python/pytest-randomly/pytest-randomly-3.3.1.ebuild deleted file mode 100644 index b28fd46..0000000 --- a/dev-python/pytest-randomly/pytest-randomly-3.3.1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{6,7,8} ) - -inherit distutils-r1 - -DESCRIPTION="Pytest plugin to randomly order tests and control random.seed" -HOMEPAGE=" - https://pypi.python.org/pypi/pytest-randomly - https://github.com/pytest-dev/pytest-randomly -" -SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="test" - -RDEPEND=" - dev-python/docutils[${PYTHON_USEDEP}] - dev-python/factory_boy[${PYTHON_USEDEP}] - dev-python/faker[${PYTHON_USEDEP}] - dev-python/isort[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] - dev-python/secretstorage[${PYTHON_USEDEP}] - dev-python/twine[${PYTHON_USEDEP}] - - $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_6 python3_7) -" -# $(python_gen_cond_dep 'dev-python/black[${PYTHON_USEDEP}]' python3_8) - -#DEPEND=" -# test? ( -# $(python_gen_cond_dep 'dev-python/check-manifest[${PYTHON_USEDEP}]' python3_8) -# dev-python/multilint[${PYTHON_USEDEP}] -# dev-python/pytest-xdist[${PYTHON_USEDEP}] -# ) -#" - -#no multilint for now -#distutils_enable_tests pytest