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.52.0.ebuild
Date: Wed, 29 Sep 2010 00:43:09
Message-Id: 20100929004305.A9CB820051@flycatcher.gentoo.org
1 arfrever 10/09/29 00:43:05
2
3 Modified: ChangeLog
4 Added: logilab-common-0.52.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2_rc88_p32/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.71 dev-python/logilab-common/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.71&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.71&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.70&r2=1.71
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v
20 retrieving revision 1.70
21 retrieving revision 1.71
22 diff -u -r1.70 -r1.71
23 --- ChangeLog 18 Sep 2010 22:03:10 -0000 1.70
24 +++ ChangeLog 29 Sep 2010 00:43:05 -0000 1.71
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/logilab-common
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.70 2010/09/18 22:03:10 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.71 2010/09/29 00:43:05 arfrever Exp $
30 +
31 +*logilab-common-0.52.0 (29 Sep 2010)
32 +
33 + 29 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +logilab-common-0.52.0.ebuild:
35 + Version bump.
36
37 *logilab-common-0.51.1 (18 Sep 2010)
38
39
40
41
42 1.1 dev-python/logilab-common/logilab-common-0.52.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.52.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.52.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: logilab-common-0.52.0.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.52.0.ebuild,v 1.1 2010/09/29 00:43:05 arfrever Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.*"
57
58 inherit distutils eutils
59
60 DESCRIPTION="Useful miscellaneous modules used by Logilab projects"
61 HOMEPAGE="http://www.logilab.org/projects/common/ http://pypi.python.org/pypi/logilab-common"
62 SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
63
64 LICENSE="LGPL-2.1"
65 SLOT="0"
66 KEYWORDS="~amd64 ~s390 ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos"
67 IUSE="test"
68
69 RDEPEND="dev-python/setuptools"
70 # Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed.
71 # dev-python/unittest2 is not required with Python >=3.2.
72 DEPEND="${RDEPEND}
73 test? (
74 dev-python/egenix-mx-base
75 dev-python/unittest2
76 !dev-python/psycopg[-mxdatetime]
77 )"
78
79 PYTHON_MODNAME="logilab"
80
81 src_prepare() {
82 distutils_src_prepare
83
84 epatch "${FILESDIR}/${PN}-0.51.1-python-2.7.patch"
85
86 # Disable broken tests.
87 sed -e "s/test_knownValues_is_standard_module_4/_&/" -i test/unittest_modutils.py
88
89 # Disable tests failing when stdout is not a tty.
90 sed \
91 -e "s/test_both_capture/_&/" \
92 -e "s/test_capture_core/_&/" \
93 -i test/unittest_testlib.py
94
95 if [[ "${EUID}" -eq 0 ]]; then
96 # Disable tests failing with root permissions.
97 sed \
98 -e "s/test_mode_change/_&/" \
99 -e "s/test_mode_change_on_append/_&/" \
100 -e "s/test_restore_on_close/_&/" \
101 -i test/unittest_fileutils.py
102 fi
103 }
104
105 src_test() {
106 testing() {
107 # Install temporarily.
108 local tpath="${T}/test-${PYTHON_ABI}"
109 local spath="${tpath}$(python_get_sitedir)"
110
111 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_version)"
112
113 # pytest uses tests placed relatively to the current directory.
114 pushd "${spath}" > /dev/null || return 1
115 PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}/usr/bin/pytest" -v || return 1
116 popd > /dev/null || return 1
117 }
118 python_execute_function testing
119 }
120
121 src_install() {
122 distutils_src_install
123
124 python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest"
125
126 doman doc/pytest.1 || die "doman failed"
127
128 delete_tests() {
129 rm -fr "${ED}$(python_get_sitedir)/${PN/-//}/test"
130 }
131 python_execute_function -q delete_tests
132 }