Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/logilab-common: ChangeLog logilab-common-0.46.1.ebuild
Date: Thu, 04 Feb 2010 21:19:06
Message-Id: E1Nd96O-00023L-GC@stork.gentoo.org
1 arfrever 10/02/04 21:19:04
2
3 Modified: ChangeLog
4 Added: logilab-common-0.46.1.ebuild
5 Log:
6 Version bump.
7 (Portage version: 15321-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.57 dev-python/logilab-common/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.57&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.57&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.56&r2=1.57
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v
19 retrieving revision 1.56
20 retrieving revision 1.57
21 diff -u -r1.56 -r1.57
22 --- ChangeLog 26 Dec 2009 16:17:10 -0000 1.56
23 +++ ChangeLog 4 Feb 2010 21:19:03 -0000 1.57
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/logilab-common
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.56 2009/12/26 16:17:10 armin76 Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.57 2010/02/04 21:19:03 arfrever Exp $
30 +
31 +*logilab-common-0.46.1 (04 Feb 2010)
32 +
33 + 04 Feb 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +logilab-common-0.46.1.ebuild:
35 + Version bump.
36
37 26 Dec 2009; Raúl Porcel <armin76@g.o>
38 logilab-common-0.45.1.ebuild:
39
40
41
42 1.1 dev-python/logilab-common/logilab-common-0.46.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.46.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.46.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: logilab-common-0.46.1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.46.1.ebuild,v 1.1 2010/02/04 21:19:03 arfrever Exp $
52
53 EAPI="2"
54 SUPPORT_PYTHON_ABIS="1"
55
56 inherit distutils eutils python
57
58 DESCRIPTION="Useful miscellaneous modules used by Logilab projects"
59 HOMEPAGE="http://www.logilab.org/projects/common/ http://pypi.python.org/pypi/logilab-common"
60 SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
65 IUSE="test"
66
67 # Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed.
68 DEPEND="test? (
69 dev-python/egenix-mx-base
70 !dev-python/psycopg[-mxdatetime]
71 )"
72 RDEPEND=""
73 RESTRICT_PYTHON_ABIS="3.*"
74
75 PYTHON_MODNAME="logilab"
76 # Extra documentation (html/pdf) needs some love
77
78 src_prepare() {
79 distutils_src_prepare
80
81 epatch "${FILESDIR}/${PN}-0.41.0-remove-broken-tests.patch"
82 }
83
84 src_test() {
85 testing() {
86 # Install temporarily.
87 local tpath="${T}/test-${PYTHON_ABI}"
88 local spath="${tpath}$(python_get_sitedir)"
89
90 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with Python ${PYTHON_ABI}"
91
92 # Bug 223079.
93 if [[ "${EUID}" -eq 0 ]]; then
94 rm test/unittest_fileutils.py || die
95 fi
96
97 # pytest picks up the tests relative to the current directory, so cd in. Do
98 # not cd in too far though (to logilab/common for example) or some
99 # relative/absolute module location tests fail.
100 pushd "${spath}" >/dev/null || die
101 PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}/usr/bin/pytest" -v || return 1
102 popd >/dev/null || die
103 }
104 python_execute_function testing
105 }
106
107 src_install() {
108 [[ -z "${ED}" ]] && local ED="${D}"
109 distutils_src_install
110
111 python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest"
112
113 doman doc/pytest.1 || die "doman failed"
114
115 # Don't install tests.
116 rm -fr "${ED}"usr/lib*/python*/site-packages/${PN/-//}/test || die "Deletion of tests failed"
117 }