Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pytest: ChangeLog pytest-2.5.2.ebuild
Date: Sat, 01 Feb 2014 06:15:54
Message-Id: 20140201061549.D18652004C@flycatcher.gentoo.org
1 radhermit 14/02/01 06:15:49
2
3 Modified: ChangeLog
4 Added: pytest-2.5.2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.86 dev-python/pytest/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/ChangeLog?rev=1.86&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/ChangeLog?rev=1.86&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/ChangeLog?r1=1.85&r2=1.86
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pytest/ChangeLog,v
20 retrieving revision 1.85
21 retrieving revision 1.86
22 diff -u -r1.85 -r1.86
23 --- ChangeLog 9 Dec 2013 01:44:58 -0000 1.85
24 +++ ChangeLog 1 Feb 2014 06:15:49 -0000 1.86
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/pytest
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/ChangeLog,v 1.85 2013/12/09 01:44:58 floppym Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/ChangeLog,v 1.86 2014/02/01 06:15:49 radhermit Exp $
31 +
32 +*pytest-2.5.2 (01 Feb 2014)
33 +
34 + 01 Feb 2014; Tim Harder <radhermit@g.o> +pytest-2.5.2.ebuild:
35 + Version bump.
36
37 09 Dec 2013; Mike Gilbert <floppym@g.o> pytest-2.4.2.ebuild:
38 Restore pexpect dep, but exclude pypy.
39
40
41
42 1.1 dev-python/pytest/pytest-2.5.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/pytest-2.5.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/pytest-2.5.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pytest-2.5.2.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/pytest-2.5.2.ebuild,v 1.1 2014/02/01 06:15:49 radhermit Exp $
52
53 EAPI="5"
54
55 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
56 inherit distutils-r1 eutils
57
58 DESCRIPTION="py.test: simple powerful testing with Python"
59 HOMEPAGE="http://pytest.org/ http://pypi.python.org/pypi/pytest"
60 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
61
62 LICENSE="MIT"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
65 IUSE="doc test"
66
67 # When bumping, please check setup.py for the proper py version
68 PY_VER="1.4.20"
69 RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]"
70
71 #pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30
72 DEPEND="${RDEPEND}
73 dev-python/setuptools[${PYTHON_USEDEP}]
74 virtual/python-argparse[${PYTHON_USEDEP}]
75 test? (
76 dev-python/pexpect[$(python_gen_usedep python{2_6,2_7,3_2,3_3})]
77 dev-python/pyyaml[${PYTHON_USEDEP}]
78 )
79 "
80
81 python_prepare_all() {
82 # Disable versioning of py.test script to avoid collision with
83 # versioning performed by the eclass.
84 sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
85 grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
86 distutils-r1_python_prepare_all
87 }
88
89 python_compile_all() {
90 if use doc; then
91 mkdir doc/en/.build || die
92 emake -C doc/en html
93 fi
94 }
95
96 python_test() {
97 "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \
98 --ignore=doc/en/example/nonpython/test_simple.yml \
99 || die "tests failed with ${EPYTHON}"
100 }
101
102 python_install_all() {
103 use doc && dohtml -r doc/en/_build/html/
104 distutils-r1_python_install_all
105 }