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.6.3.ebuild
Date: Sat, 27 Sep 2014 23:19:28
Message-Id: 20140927231924.5E0EC672D@oystercatcher.gentoo.org
1 radhermit 14/09/27 23:19:24
2
3 Modified: ChangeLog
4 Added: pytest-2.6.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 4F064CA3)
9
10 Revision Changes Path
11 1.98 dev-python/pytest/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/ChangeLog?rev=1.98&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/ChangeLog?rev=1.98&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/ChangeLog?r1=1.97&r2=1.98
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pytest/ChangeLog,v
20 retrieving revision 1.97
21 retrieving revision 1.98
22 diff -u -r1.97 -r1.98
23 --- ChangeLog 14 Aug 2014 07:39:48 -0000 1.97
24 +++ ChangeLog 27 Sep 2014 23:19:24 -0000 1.98
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/pytest
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/ChangeLog,v 1.97 2014/08/14 07:39:48 idella4 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/ChangeLog,v 1.98 2014/09/27 23:19:24 radhermit Exp $
30 +
31 +*pytest-2.6.3 (27 Sep 2014)
32 +
33 + 27 Sep 2014; Tim Harder <radhermit@g.o> +pytest-2.6.3.ebuild:
34 + Version bump.
35
36 *pytest-2.6.1 (14 Aug 2014)
37
38
39
40
41 1.1 dev-python/pytest/pytest-2.6.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/pytest-2.6.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pytest/pytest-2.6.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pytest-2.6.3.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/pytest-2.6.3.ebuild,v 1.1 2014/09/27 23:19:24 radhermit Exp $
51
52 EAPI="5"
53
54 PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
55 inherit distutils-r1 eutils
56
57 DESCRIPTION="py.test: simple powerful testing with Python"
58 HOMEPAGE="http://pytest.org/ http://pypi.python.org/pypi/pytest"
59 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
60
61 LICENSE="MIT"
62 SLOT="0"
63 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"
64 IUSE="doc test"
65
66 # When bumping, please check setup.py for the proper py version
67 PY_VER="1.4.25"
68 RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]"
69
70 #pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30
71 DEPEND="${RDEPEND}
72 dev-python/setuptools[${PYTHON_USEDEP}]
73 test? (
74 $(python_gen_cond_dep 'dev-python/pexpect[${PYTHON_USEDEP}]' 'python*')
75 dev-python/pyyaml[${PYTHON_USEDEP}]
76 )
77 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
78
79 python_prepare_all() {
80 # Disable versioning of py.test script to avoid collision with
81 # versioning performed by the eclass.
82 sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
83 grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
84
85 # Prevent un-needed d'loading
86 sed -e "s/'sphinx.ext.intersphinx', //" -i doc/en/conf.py || die
87 distutils-r1_python_prepare_all
88 }
89
90 python_compile_all() {
91 if use doc; then
92 mkdir doc/en/.build || die
93 emake -C doc/en html
94 fi
95 }
96
97 python_test() {
98 "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \
99 --ignore=doc/en/example/nonpython/test_simple.yml \
100 || die "tests failed with ${EPYTHON}"
101 }
102
103 python_install_all() {
104 use doc && dohtml -r doc/en/_build/html/
105 distutils-r1_python_install_all
106 }