Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/
Date: Wed, 30 Nov 2016 13:54:21
Message-Id: 1480514030.d09ef9212b8d8e4c4537d6afe844a413d4d6fd74.polynomial-c@gentoo
1 commit: d09ef9212b8d8e4c4537d6afe844a413d4d6fd74
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 10:11:18 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 13:53:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d09ef921
7
8 dev-python/pytest: Bump to version 3.0.4
9
10 Package-Manager: portage-2.3.2
11
12 dev-python/pytest/Manifest | 1 +
13 dev-python/pytest/pytest-3.0.4.ebuild | 71 +++++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest
17 index 12962e8..d4c33d1 100644
18 --- a/dev-python/pytest/Manifest
19 +++ b/dev-python/pytest/Manifest
20 @@ -3,3 +3,4 @@ DIST pytest-2.8.2.tar.gz 563955 SHA256 da2fc57320dd11f621d166634c52b989aa2291af1
21 DIST pytest-2.8.7.tar.gz 564943 SHA256 fc4c86be54fce08e4b85b646a736efa18c6cde7599c1d2919f4f74629e018baf SHA512 c7f626ceb599811caeab4646389a2c489dd22d766c772d6ca686098cef9a11dca47ef41a4a4b811110f358bca1f1a678b549b2adfea48317ae70cf166289b371 WHIRLPOOL c3849f1a9f62c05c1ce20593f32ee513aee87853914be4099503cd47b068732df99605a0a4db9a3a7add4ef2a85f4d5376acf1a2e3f48f5d438433f200cb6196
22 DIST pytest-3.0.2.tar.gz 727551 SHA256 64d8937626dd2a4bc15ef0edd307d26636a72a3f3f9664c424d78e40efb1e339 SHA512 38485c73f9df3c76b7b920b6957ffe4fbfd32ca0c46b73a53375a40586a482d270bf71b4457b68d48815d50ad173824b269ece255692ae0d1b13f0b1885ce54f WHIRLPOOL b6954a95e5f7d9b904c7543a09c2ef237c76c3a35bcd3e24c402a02aec3b35a19cdb952ac38af4ce43ae516cb5ac52023a0d91f2c587343265edd6d493145e8a
23 DIST pytest-3.0.3.tar.gz 731934 SHA256 f213500a356800a483e8a146ff971ae14a8df3f2c0ae4145181aad96996abee7 SHA512 ec0b4a5f0d6673a339c5a70b402c004c23db7001005454329eeaea15d890f53b8f2740f6c6254499d0f915b9058bfdfa535d9f22847bb382a060d65204fce4af WHIRLPOOL 1883909fa23832e674cf912b1d88957dd435143dc124df5454c08ad02c8077473168f749ea94539c2c4b5cf08648a0bce7e90937bbdacd4bb69a4ccf15ecff23
24 +DIST pytest-3.0.4.tar.gz 733339 SHA256 879fee2c1fdbaacd1bf2c0047677c6dd4aee05b9c1e64330b34d130a584fa40d SHA512 f8ee3eb84b564419beb0bb78abbe0ffe44920b35c60021d2c77b2bc3a5ec13245768f848ccb2a1864d46fc343cdc4b2bc4a33d9459bf388f64ea2aea0d9c337d WHIRLPOOL e48fc51e1de0fe38eaebd21ea4249dd915ffbf190d1955bd9aa77976b9c692bd0a2541d8802e9e100603af647279740e6329491b0ce09ef898d102e78984b2bb
25
26 diff --git a/dev-python/pytest/pytest-3.0.4.ebuild b/dev-python/pytest/pytest-3.0.4.ebuild
27 new file mode 100644
28 index 00000000..eb84320
29 --- /dev/null
30 +++ b/dev-python/pytest/pytest-3.0.4.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Simple powerful testing with Python"
43 +HOMEPAGE="http://pytest.org/ https://pypi.python.org/pypi/pytest"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="doc test"
50 +
51 +# When bumping, please check setup.py for the proper py version
52 +PY_VER="1.4.29"
53 +COMMON_DEPEND="
54 + >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]
55 + doc? (
56 + dev-python/pyyaml[${PYTHON_USEDEP}]
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 + )
59 +"
60 +DEPEND="${COMMON_DEPEND}
61 + dev-python/setuptools[${PYTHON_USEDEP}]
62 + test? (
63 + >=dev-python/hypothesis-3.5.2[${PYTHON_USEDEP}]
64 + >dev-python/pytest-xdist-1.13[${PYTHON_USEDEP}]
65 + dev-python/nose[${PYTHON_USEDEP}]
66 + dev-python/mock[${PYTHON_USEDEP}]
67 + dev-python/requests[${PYTHON_USEDEP}]
68 + )
69 +"
70 +RDEPEND="${COMMON_DEPEND}
71 + !dev-python/logilab-common
72 +"
73 +
74 +python_prepare_all() {
75 + chmod o-w *egg*/* || die
76 + # Disable versioning of py.test script to avoid collision with
77 + # versioning performed by the eclass.
78 + sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
79 + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
80 +
81 + distutils-r1_python_prepare_all
82 +}
83 +
84 +python_test() {
85 + # test_nose.py not written to suit py3.2 in pypy3
86 + if [[ "${EPYTHON}" == pypy3 ]]; then
87 + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v \
88 + --ignore=testing/BUILD_nose.py \
89 + || die "tests failed with ${EPYTHON}"
90 + else
91 + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -v testing || die "tests failed with ${EPYTHON}"
92 + fi
93 +}
94 +
95 +python_compile_all(){
96 + use doc && emake -C doc/en html
97 +}
98 +
99 +python_install_all() {
100 + use doc && HTML_DOCS=( doc/en/_build/html/. )
101 + distutils-r1_python_install_all
102 +}