1 |
arfrever 10/04/28 17:18:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: logilab-common-0.50.1.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: HEAD/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.62 dev-python/logilab-common/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.62&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.62&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.61&r2=1.62 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v |
19 |
retrieving revision 1.61 |
20 |
retrieving revision 1.62 |
21 |
diff -u -r1.61 -r1.62 |
22 |
--- ChangeLog 13 Apr 2010 15:41:49 -0000 1.61 |
23 |
+++ ChangeLog 28 Apr 2010 17:18:38 -0000 1.62 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for dev-python/logilab-common |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.61 2010/04/13 15:41:49 fauli Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.62 2010/04/28 17:18:38 arfrever Exp $ |
29 |
+ |
30 |
+*logilab-common-0.50.1 (28 Apr 2010) |
31 |
+ |
32 |
+ 28 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
33 |
+ -logilab-common-0.45.2.ebuild, -logilab-common-0.46.0.ebuild, |
34 |
+ -logilab-common-0.46.1.ebuild, -logilab-common-0.48.0.ebuild, |
35 |
+ +logilab-common-0.50.1.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
13 Apr 2010; Christian Faulhammer <fauli@g.o> |
39 |
logilab-common-0.49.0.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-python/logilab-common/logilab-common-0.50.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.50.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.50.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: logilab-common-0.50.1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 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.50.1.ebuild,v 1.1 2010/04/28 17:18:38 arfrever Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
PYTHON_DEPEND="2" |
56 |
SUPPORT_PYTHON_ABIS="1" |
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" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos" |
67 |
IUSE="test" |
68 |
|
69 |
# Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed. |
70 |
DEPEND="test? ( |
71 |
dev-python/egenix-mx-base |
72 |
!dev-python/psycopg[-mxdatetime] |
73 |
)" |
74 |
RDEPEND="" |
75 |
RESTRICT_PYTHON_ABIS="3.*" |
76 |
|
77 |
PYTHON_MODNAME="logilab" |
78 |
# Extra documentation (html/pdf) needs some love |
79 |
|
80 |
src_prepare() { |
81 |
distutils_src_prepare |
82 |
|
83 |
# Disable broken test. |
84 |
sed -e "s/test_knownValues_is_standard_module_4/_&/" -i test/unittest_modutils.py |
85 |
|
86 |
# Disable tests failing when stdout is not a tty. |
87 |
sed \ |
88 |
-e "s/test_both_capture/_&/" \ |
89 |
-e "s/test_capture_core/_&/" \ |
90 |
-i test/unittest_testlib.py |
91 |
|
92 |
if [[ "${EUID}" -eq 0 ]]; then |
93 |
# Disable tests failing with root permissions. |
94 |
sed \ |
95 |
-e "s/test_mode_change/_&/" \ |
96 |
-e "s/test_mode_change_on_append/_&/" \ |
97 |
-e "s/test_restore_on_close/_&/" \ |
98 |
-i test/unittest_fileutils.py |
99 |
fi |
100 |
} |
101 |
|
102 |
src_test() { |
103 |
testing() { |
104 |
# Install temporarily. |
105 |
local tpath="${T}/test-${PYTHON_ABI}" |
106 |
local spath="${tpath}$(python_get_sitedir)" |
107 |
|
108 |
"$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with Python ${PYTHON_ABI}" |
109 |
|
110 |
# Bug 223079. |
111 |
if [[ "${EUID}" -eq 0 ]]; then |
112 |
rm test/unittest_fileutils.py || die |
113 |
fi |
114 |
|
115 |
# pytest picks up the tests relative to the current directory, so cd in. Do |
116 |
# not cd in too far though (to logilab/common for example) or some |
117 |
# relative/absolute module location tests fail. |
118 |
pushd "${spath}" >/dev/null || die |
119 |
PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}/usr/bin/pytest" -v || return 1 |
120 |
popd >/dev/null || die |
121 |
} |
122 |
python_execute_function testing |
123 |
} |
124 |
|
125 |
src_install() { |
126 |
distutils_src_install |
127 |
|
128 |
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest" |
129 |
|
130 |
doman doc/pytest.1 || die "doman failed" |
131 |
|
132 |
# Don't install tests. |
133 |
rm -fr "${ED}"usr/lib*/python*/site-packages/${PN/-//}/test || die "Deletion of tests failed" |
134 |
} |