From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B0DAE1384B4 for ; Mon, 7 Dec 2015 08:58:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 919A921C146; Mon, 7 Dec 2015 08:58:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DEF4821C146 for ; Mon, 7 Dec 2015 08:58:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 72CAF340821 for ; Mon, 7 Dec 2015 08:58:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 976CAE54 for ; Mon, 7 Dec 2015 08:58:49 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1449478725.2dc4a027d343c32f3be755e73a26b3faa503fb5b.jlec@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-2.8.4.ebuild X-VCS-Directories: dev-python/pytest/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 2dc4a027d343c32f3be755e73a26b3faa503fb5b X-VCS-Branch: master Date: Mon, 7 Dec 2015 08:58:49 +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: 622a307e-19df-45ea-a43f-10cf97cf310f X-Archives-Hash: ff9dc66ae0ad89076d1ae4b5fd99faa0 commit: 2dc4a027d343c32f3be755e73a26b3faa503fb5b Author: Justin Lecher gentoo org> AuthorDate: Mon Dec 7 08:58:40 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Mon Dec 7 08:58:45 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dc4a027 dev-python/pytest: Version Bump Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher gentoo.org> dev-python/pytest/Manifest | 1 + dev-python/pytest/pytest-2.8.4.ebuild | 85 +++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest index dec3137..63619ee 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.3.tar.gz 880441 SHA256 37d950e93c1fd7e04d816a3ca4a5226ea2531c6d531c8284ad9b88848417e720 SHA512 04dd9041729d83b98a15cef22aac65dfb95cd3bf6b71a580ff91e8738f9a1ad5ee46fae45c950342e4a0162e38c875299a46fc69ec74702f36a1e36ef76dc0d6 WHIRLPOOL 78149cdcc25dc478ae004b0a54b333edcad0268ce5e66efe9878b0bcaff0e33d227513f84040f3aa53967afa5ffc51ecef0e6003814c09925fdf9e6a4921d88a +DIST pytest-2.8.4.tar.gz 568888 SHA256 ca8afa5e216acfba6df7f26f2ef8a45baedf6a952e6b2f033ab55ec7e0a679eb SHA512 42e2949b66184cf2cecb7c803871639c1a3c887a48fc43580fe87f432507b9457c3a7c0b3bb620060e3eeb2db2178dfc35aba19022812497a917fdfa2ce5fd45 WHIRLPOOL 7ee539c61216463ccdaf5e09581cc1de82ffc6f6fb99dba04fa7d4eefb628c457c828ce9f8307477b5f95b997a4fd917f4818262ef4e1867cf0c10f9d2467bc2 diff --git a/dev-python/pytest/pytest-2.8.4.ebuild b/dev-python/pytest/pytest-2.8.4.ebuild new file mode 100644 index 0000000..7d1ea6c --- /dev/null +++ b/dev-python/pytest/pytest-2.8.4.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 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="doc 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/pexpect[${PYTHON_USEDEP}] ) + doc? ( + >=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/regendoc[${PYTHON_USEDEP}] + )" + +PATCHES=( "${FILESDIR}"/${PN}-2.8.3-skip-test-on-pypy.patch ) + +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" + + # Prevent un-needed d'loading + sed -e "s/'sphinx.ext.intersphinx', //" -i doc/en/conf.py || die + + # https://github.com/pytest-dev/pytest/issues/1162 + # https://github.com/pytest-dev/pytest/issues/1163 + sed \ + -e 's:test_logging_initialized_in_test:_&:g' \ + -i testing/test_capture.py || die + + find \( -name __pycache__ -o -name "*.pyc" -o -name "*.pyo" \) \ + -exec rm -rvf '{}' + || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + mkdir doc/en/.build || die + emake -C doc/en html + fi +} + +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 -x -v --runpytest=subprocess \ + || die "tests failed with ${EPYTHON}" + fi +} + +python_install_all() { + use doc && HTML_DOCS=( doc/en/_build/html/. ) + distutils-r1_python_install_all +}