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.54.0.ebuild |
Date: | Mon, 17 Jan 2011 17:59:30 |
Message-Id: | 20110117175921.A38182004E@flycatcher.gentoo.org |
1 | arfrever 11/01/17 17:59:21 |
2 | |
3 | Modified: ChangeLog |
4 | Added: logilab-common-0.54.0.ebuild |
5 | Log: |
6 | Version bump. Fixed test failures with Python 2.7 (bug #293913). |
7 | |
8 | (Portage version: 2.2.0_alpha15_p12/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.85 dev-python/logilab-common/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.85&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.85&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.84&r2=1.85 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v |
20 | retrieving revision 1.84 |
21 | retrieving revision 1.85 |
22 | diff -u -r1.84 -r1.85 |
23 | --- ChangeLog 8 Jan 2011 01:33:59 -0000 1.84 |
24 | +++ ChangeLog 17 Jan 2011 17:59:21 -0000 1.85 |
25 | @@ -1,6 +1,13 @@ |
26 | # ChangeLog for dev-python/logilab-common |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.84 2011/01/08 01:33:59 ranger Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.85 2011/01/17 17:59:21 arfrever Exp $ |
30 | + |
31 | +*logilab-common-0.54.0 (17 Jan 2011) |
32 | + |
33 | + 17 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
34 | + -logilab-common-0.50.3.ebuild, -logilab-common-0.51.1.ebuild, |
35 | + -files/logilab-common-0.51.1-python-2.7.patch, +logilab-common-0.54.0.ebuild: |
36 | + Version bump. Fixed test failures with Python 2.7 (bug #293913). |
37 | |
38 | 08 Jan 2011; Brent Baude <ranger@g.o> logilab-common-0.52.1.ebuild: |
39 | Marking logilab-common-0.52.1 ppc for bug 345487 |
40 | |
41 | |
42 | |
43 | 1.1 dev-python/logilab-common/logilab-common-0.54.0.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.54.0.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.54.0.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: logilab-common-0.54.0.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2011 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.54.0.ebuild,v 1.1 2011/01/17 17:59:21 arfrever Exp $ |
53 | |
54 | EAPI="3" |
55 | SUPPORT_PYTHON_ABIS="1" |
56 | |
57 | inherit distutils |
58 | |
59 | DESCRIPTION="Useful miscellaneous modules used by Logilab projects" |
60 | HOMEPAGE="http://www.logilab.org/projects/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" |
67 | |
68 | # dev-python/unittest2 is not required with Python >=3.2. |
69 | RDEPEND="dev-python/setuptools |
70 | dev-python/unittest2" |
71 | # Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed. |
72 | DEPEND="${RDEPEND} |
73 | test? ( |
74 | dev-python/egenix-mx-base |
75 | !dev-python/psycopg[-mxdatetime] |
76 | )" |
77 | |
78 | PYTHON_MODNAME="logilab" |
79 | |
80 | src_test() { |
81 | testing() { |
82 | # Install temporarily. |
83 | local tpath="${T}/test-${PYTHON_ABI}" |
84 | local spath="${tpath}${EPREFIX}$(python_get_sitedir)" |
85 | |
86 | "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_version)" |
87 | |
88 | # pytest uses tests placed relatively to the current directory. |
89 | pushd "${spath}" > /dev/null || return 1 |
90 | if [[ "${PYTHON_ABI}" == 3.* ]]; then |
91 | # Support for Python 3 is experimental. Some tests are known to fail. |
92 | PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}${EPREFIX}/usr/bin/pytest" -v |
93 | else |
94 | PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}${EPREFIX}/usr/bin/pytest" -v || return 1 |
95 | fi |
96 | popd > /dev/null || return 1 |
97 | } |
98 | python_execute_function testing |
99 | } |
100 | |
101 | src_install() { |
102 | distutils_src_install |
103 | |
104 | python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest" |
105 | |
106 | doman doc/pytest.1 || die "doman failed" |
107 | |
108 | delete_tests() { |
109 | rm -fr "${ED}$(python_get_sitedir)/${PN/-//}/test" |
110 | } |
111 | python_execute_function -q delete_tests |
112 | } |