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: ChangeLog logilab-common-0.39.0.ebuild
Date: Sat, 18 Apr 2009 18:46:08
Message-Id: E1LvFYF-0000FF-6R@stork.gentoo.org
1 patrick 09/04/18 18:46:07
2
3 Modified: ChangeLog
4 Added: logilab-common-0.39.0.ebuild
5 Log:
6 Bump to 0.39.0. Nice test fixes from idl0r. Closes #261984.
7 (Portage version: 2.2_rc30/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.38 dev-python/logilab-common/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.38&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.38&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.37&r2=1.38
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v
19 retrieving revision 1.37
20 retrieving revision 1.38
21 diff -u -r1.37 -r1.38
22 --- ChangeLog 13 May 2008 12:33:49 -0000 1.37
23 +++ ChangeLog 18 Apr 2009 18:46:07 -0000 1.38
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-python/logilab-common
26 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.37 2008/05/13 12:33:49 hawking Exp $
28 +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.38 2009/04/18 18:46:07 patrick Exp $
30 +
31 +*logilab-common-0.39.0 (18 Apr 2009)
32 +
33 + 18 Apr 2009; Patrick Lauer <patrick@g.o>
34 + +files/logilab-common-0.39.0-remove-broken-tests.patch,
35 + +logilab-common-0.39.0.ebuild:
36 + Bump to 0.39.0. Nice test fixes from idl0r. Closes #261984.
37
38 *logilab-common-0.31.0 (13 May 2008)
39
40
41
42
43 1.1 dev-python/logilab-common/logilab-common-0.39.0.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.39.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.39.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: logilab-common-0.39.0.ebuild
49 ===================================================================
50 # Copyright 1999-2009 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.39.0.ebuild,v 1.1 2009/04/18 18:46:07 patrick Exp $
53
54 inherit distutils eutils python
55
56 #DESCRIPTION="Several modules providing low level functionality shared among some python projects developed by logilab"
57 DESCRIPTION="useful miscellaneous modules used by Logilab projects"
58 HOMEPAGE="http://www.logilab.org/projects/common/"
59 SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
64 IUSE="test"
65
66 DEPEND="test? ( dev-python/egenix-mx-base )"
67 RDEPEND=""
68
69 PYTHON_MODNAME="logilab"
70
71 # Extra documentation (html/pdf) needs some love
72
73 src_test() {
74 python_version
75
76 # Install temporarily.
77 local tpath="${T}/test"
78 local lpath="${tpath}/lib/python"
79
80 # setuptools would fail if the directory doesn't exist.
81 mkdir -p "${lpath}" || die
82
83 # We also have to add ${lpath} to PYTHONPATH else the installation would
84 # fail.
85 PYTHONPATH="${lpath}" ${python} setup.py install --home="${tpath}" || \
86 die "test copy failed"
87
88 # Get a rid of precompiled files to ensure we run our _modified_ tests
89 find ${lpath} -type f -name '*.pyc' -exec rm {} ';'
90
91 # Remove a botched tests.
92 # To support test w/o setuptools.
93 if [[ -d "${lpath}/${PN/-//}" ]]; then
94 pushd "${lpath}/${PN/-//}" >/dev/null || die
95 else
96 pushd "${lpath}/${P/-/_}-py${PYVER}.egg/${PN/-//}" >/dev/null || die
97 fi
98
99 epatch "${FILESDIR}/${P}-remove-broken-tests.patch"
100
101 # Bug 223079
102 if ! has userpriv ${FEATURES}; then
103 rm test/unittest_fileutils.py || die
104 fi
105
106 popd >/dev/null || die
107
108 # It picks up the tests relative to the current dir, so cd in. Do
109 # not cd in too far though (to logilab/common for example) or some
110 # relative/absolute module location tests fail.
111 pushd "${lpath}" >/dev/null || die
112 PYTHONPATH="${lpath}" ${python} "${tpath}/bin/pytest" -v || die "tests failed"
113 popd >/dev/null || die
114 }
115
116 src_install() {
117 distutils_src_install
118
119 doman doc/pytest.1 || die "doman failed"
120
121 # Remove unittests since they're just needed during build-time
122 rm -rf "${D}/$(python_get_sitedir)/${PN/-//}/test" || die
123 }