Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/logilab-common: logilab-common-0.58.3.ebuild ChangeLog
Date: Thu, 29 Nov 2012 06:53:10
Message-Id: 20121129065258.00F3F20C65@flycatcher.gentoo.org
1 patrick 12/11/29 06:52:57
2
3 Modified: ChangeLog
4 Added: logilab-common-0.58.3.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.110 dev-python/logilab-common/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.110&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.110&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.109&r2=1.110
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v
20 retrieving revision 1.109
21 retrieving revision 1.110
22 diff -u -r1.109 -r1.110
23 --- ChangeLog 28 Nov 2012 20:24:43 -0000 1.109
24 +++ ChangeLog 29 Nov 2012 06:52:57 -0000 1.110
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/logilab-common
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.109 2012/11/28 20:24:43 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.110 2012/11/29 06:52:57 patrick Exp $
30 +
31 +*logilab-common-0.58.3 (29 Nov 2012)
32 +
33 + 29 Nov 2012; Patrick Lauer <patrick@g.o> +logilab-common-0.58.3.ebuild:
34 + Bump
35
36 28 Nov 2012; Brent Baude <ranger@g.o> logilab-common-0.58.1.ebuild:
37 Marking logilab-common-0.58.1 ppc for bug 441276
38
39
40
41 1.1 dev-python/logilab-common/logilab-common-0.58.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.58.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.58.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: logilab-common-0.58.3.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.58.3.ebuild,v 1.1 2012/11/29 06:52:57 patrick Exp $
51
52 EAPI="4"
53 SUPPORT_PYTHON_ABIS="1"
54 # Current tally of 8 test failures for python3
55 PYTHON_TESTS_RESTRICTED_ABIS="3.*"
56
57 inherit distutils
58
59 DESCRIPTION="Useful miscellaneous modules used by Logilab projects"
60 HOMEPAGE="http://www.logilab.org/project/logilab-common http://pypi.python.org/pypi/logilab-common"
61 SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
66 IUSE="test doc"
67
68 # dev-python/unittest2 is not required with Python >=3.2.
69 RDEPEND="dev-python/setuptools
70 dev-python/unittest2"
71
72 # Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed.
73 DEPEND="${RDEPEND}
74 test? (
75 dev-python/egenix-mx-base
76 !dev-python/psycopg[-mxdatetime]
77 )
78 doc? ( dev-python/epydoc )"
79
80 PYTHON_MODNAME="logilab"
81
82 src_prepare() {
83 if use doc; then
84 sed -e 's:(CURDIR):{S}/${P}:' -i doc/makefile || die
85 fi
86 distutils_src_prepare
87 }
88
89 src_compile() {
90 distutils_src_compile
91
92 # Simplest way to make makefile point to the right place.
93 mklinks() {
94 # dosym it seems is restricted to src_install.
95 ln -s build-${PYTHON_ABI} build
96 emake -C doc epydoc
97 rm build
98 }
99 use doc && python_execute_function -f mklinks
100 }
101
102 src_test() {
103 testing() {
104 # Install temporarily.
105 local tpath="${T}/test-${PYTHON_ABI}"
106 local spath="${tpath}${EPREFIX}$(python_get_sitedir)"
107
108 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_version)"
109
110 # pytest uses tests placed relatively to the current directory.
111 pushd "${spath}" > /dev/null || return 1
112 if [[ "${PYTHON_ABI}" == 3.* ]]; then
113 # Support for Python 3 is experimental. Some tests are known to fail.
114 PYTHONPATH=.:/logilab/common/test "${tpath}${EPREFIX}/usr/bin/pytest" -v || return 1
115 else
116 PYTHONPATH="${spath}" "${tpath}${EPREFIX}/usr/bin/pytest" -v || return 1
117 fi
118 popd > /dev/null || return 1
119 }
120 python_execute_function testing
121 }
122
123 src_install() {
124 distutils_src_install
125
126 python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest"
127
128 doman doc/pytest.1 || die "doman failed"
129
130 delete_tests() {
131 rm -fr "${ED}$(python_get_sitedir)/${PN/-//}/test"
132 }
133
134 use doc && dohtml -r doc/apidoc/
135 python_execute_function -q delete_tests
136 }