Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/testtools: testtools-0.9.24-r1.ebuild ChangeLog
Date: Sun, 24 Feb 2013 21:04:21
Message-Id: 20130224210416.3B96B2171D@flycatcher.gentoo.org
1 mgorny 13/02/24 21:04:16
2
3 Modified: ChangeLog
4 Added: testtools-0.9.24-r1.ebuild
5 Log:
6 Migrate to distutils-r1. Add upstream bug references.
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
9
10 Revision Changes Path
11 1.55 dev-python/testtools/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testtools/ChangeLog?rev=1.55&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testtools/ChangeLog?rev=1.55&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testtools/ChangeLog?r1=1.54&r2=1.55
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v
20 retrieving revision 1.54
21 retrieving revision 1.55
22 diff -u -r1.54 -r1.55
23 --- ChangeLog 13 Jan 2013 12:59:43 -0000 1.54
24 +++ ChangeLog 24 Feb 2013 21:04:16 -0000 1.55
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/testtools
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.54 2013/01/13 12:59:43 fauli Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.55 2013/02/24 21:04:16 mgorny Exp $
30 +
31 +*testtools-0.9.24-r1 (24 Feb 2013)
32 +
33 + 24 Feb 2013; Michał Górny <mgorny@g.o> +testtools-0.9.24-r1.ebuild:
34 + Migrate to distutils-r1. Add upstream bug references.
35
36 13 Jan 2013; Christian Faulhammer <fauli@g.o> -testtools-0.9.8.ebuild,
37 -testtools-0.9.11.ebuild, -testtools-0.9.14.ebuild, -testtools-0.9.16.ebuild:
38
39
40
41 1.1 dev-python/testtools/testtools-0.9.24-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testtools/testtools-0.9.24-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testtools/testtools-0.9.24-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: testtools-0.9.24-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/testtools-0.9.24-r1.ebuild,v 1.1 2013/02/24 21:04:16 mgorny Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
55
56 inherit distutils-r1 versionator
57
58 SERIES="$(get_version_component_range 1-2)"
59
60 DESCRIPTION="Extensions to the Python unittest library"
61 HOMEPAGE="https://launchpad.net/testtools http://pypi.python.org/pypi/testtools"
62 SRC_URI="http://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.gz"
63
64 LICENSE="MIT"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
67 IUSE=""
68
69 DEPEND=""
70 RDEPEND=""
71
72 python_compile() {
73 distutils-r1_python_compile
74
75 if [[ ! -e "${BUILD_DIR}"/lib/testtools/_compat2x.py ]]; then
76 die "_compat2x.py removed upstream; fix src_compile"
77 fi
78
79 # _compat2x.py is expected to have syntax incompatible with python 3.
80 # This breaks compileall. Replace with "raise SyntaxError".
81 # https://bugs.launchpad.net/testtools/+bug/941958
82 if [[ ${EPYTHON} == python3* ]]; then
83 echo "raise SyntaxError" > "${BUILD_DIR}"/lib/testtools/_compat2x.py
84 fi
85 }
86
87 python_test() {
88 # XXX: tests are non-fatal currently...
89 # https://bugs.launchpad.net/testtools/+bug/1132542
90 esetup.py test
91 }
92
93 # dev-python/subunit imports some objects from testtools.tests.helpers, so
94 # tests need to be installed.