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 394ED138330 for ; Mon, 5 Sep 2016 01:48:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A2C221C060; Mon, 5 Sep 2016 01:48:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02A2021C060 for ; Mon, 5 Sep 2016 01:48:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 66338340836 for ; Mon, 5 Sep 2016 01:48:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B75D7A for ; Mon, 5 Sep 2016 01:48:29 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1473040093.068307f88b5a4a75dfe803f8401c524a9a7c8889.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest/Manifest dev-python/pytest/pytest-3.0.2.ebuild X-VCS-Directories: dev-python/pytest/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 068307f88b5a4a75dfe803f8401c524a9a7c8889 X-VCS-Branch: master Date: Mon, 5 Sep 2016 01:48:29 +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-Archives-Salt: 0e72b2eb-9192-46d5-99f3-b73ff7423af7 X-Archives-Hash: b50f5ed10292ee788aeb22f2d4ac23c6 commit: 068307f88b5a4a75dfe803f8401c524a9a7c8889 Author: Mike Gilbert gentoo org> AuthorDate: Mon Sep 5 01:48:13 2016 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Mon Sep 5 01:48:13 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=068307f8 dev-python/pytest: bump to 3.0.2 Package-Manager: portage-2.3.0_p24 dev-python/pytest/Manifest | 1 + dev-python/pytest/pytest-3.0.2.ebuild | 62 +++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest index 7027200..90951ff 100644 --- a/dev-python/pytest/Manifest +++ b/dev-python/pytest/Manifest @@ -1,3 +1,4 @@ DIST pytest-2.7.2.tar.gz 532836 SHA256 b30457f735420d0000d10a44bbd478cf03f8bf20e25bd77248f9bab40f4fd6a4 SHA512 5474a4fe58437a4971fb21b1b37dad3c08e18e5d154931ff23e597f881100a3515bf0cf71d06b143465594ad2a91a96f84f4836d84c39691143c8d88ca7a4360 WHIRLPOOL 6ab7371f952109ac476774222883e1381fe5ee6a54d967f2d90765f6c59c90634a16c42e8e2e1661169db6a9cb1327242ff2281cf1caeabd86a4dacd24f4bb06 DIST pytest-2.8.2.tar.gz 563955 SHA256 da2fc57320dd11f621d166634c52b989aa2291af1296c32a27a11777aa4128b9 SHA512 0df6e0421d1575e1efc0bb0550c5993f802777cb616ab1514bf12ed11eb5ec35a142dd837ff65659989268c36e441e18108369991cd3d458d357aac6ba433991 WHIRLPOOL ea917f4aaec444d6edc830b4ec66f7adb305031f11328e47d12a609ec92368a5c56e9cf8e24bd1a9a4a6a0746b43133f0d9821cf27d74c15ed2a83a705ee6030 DIST pytest-2.8.7.tar.gz 564943 SHA256 fc4c86be54fce08e4b85b646a736efa18c6cde7599c1d2919f4f74629e018baf SHA512 c7f626ceb599811caeab4646389a2c489dd22d766c772d6ca686098cef9a11dca47ef41a4a4b811110f358bca1f1a678b549b2adfea48317ae70cf166289b371 WHIRLPOOL c3849f1a9f62c05c1ce20593f32ee513aee87853914be4099503cd47b068732df99605a0a4db9a3a7add4ef2a85f4d5376acf1a2e3f48f5d438433f200cb6196 +DIST pytest-3.0.2.tar.gz 727551 SHA256 64d8937626dd2a4bc15ef0edd307d26636a72a3f3f9664c424d78e40efb1e339 SHA512 38485c73f9df3c76b7b920b6957ffe4fbfd32ca0c46b73a53375a40586a482d270bf71b4457b68d48815d50ad173824b269ece255692ae0d1b13f0b1885ce54f WHIRLPOOL b6954a95e5f7d9b904c7543a09c2ef237c76c3a35bcd3e24c402a02aec3b35a19cdb952ac38af4ce43ae516cb5ac52023a0d91f2c587343265edd6d493145e8a diff --git a/dev-python/pytest/pytest-3.0.2.ebuild b/dev-python/pytest/pytest-3.0.2.ebuild new file mode 100644 index 00000000..d1e106b --- /dev/null +++ b/dev-python/pytest/pytest-3.0.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Simple powerful testing with Python" +HOMEPAGE="http://pytest.org/ https://pypi.python.org/pypi/pytest" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="test" + +# When bumping, please check setup.py for the proper py version +PY_VER="1.4.29" +RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]" + +# dev-python/pluggy +# https://github.com/hpk42/pluggy +# See https://github.com/pytest-dev/pytest/issues/944 +# for why not now + +#pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30 +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + chmod o-w *egg*/* || die + # Disable versioning of py.test script to avoid collision with + # versioning performed by the eclass. + sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed" + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" + + distutils-r1_python_prepare_all +} + +python_test() { + # test_nose.py not written to suit py3.2 in pypy3 + if [[ "${EPYTHON}" == pypy3 ]]; then + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v \ + --ignore=testing/BUILD_nose.py \ + || die "tests failed with ${EPYTHON}" + else + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -v testing || die "tests failed with ${EPYTHON}" + fi +} + +python_install_all() { + distutils-r1_python_install_all +}