Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/logilab-common: logilab-common-0.61.0.ebuild ChangeLog
Date: Wed, 12 Feb 2014 04:49:37
Message-Id: 20140212044932.BCA062004C@flycatcher.gentoo.org
1 idella4 14/02/12 04:49:32
2
3 Modified: ChangeLog
4 Added: logilab-common-0.61.0.ebuild
5 Log:
6 bump; add py3.3 support
7
8 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.134 dev-python/logilab-common/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.134&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.134&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.133&r2=1.134
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v
20 retrieving revision 1.133
21 retrieving revision 1.134
22 diff -u -r1.133 -r1.134
23 --- ChangeLog 8 Jan 2014 03:48:51 -0000 1.133
24 +++ ChangeLog 12 Feb 2014 04:49:32 -0000 1.134
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/logilab-common
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.133 2014/01/08 03:48:51 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.134 2014/02/12 04:49:32 idella4 Exp $
30 +
31 +*logilab-common-0.61.0 (12 Feb 2014)
32 +
33 + 12 Feb 2014; Ian Delaney <idella4@g.o> +logilab-common-0.61.0.ebuild:
34 + bump; add py3.3 support
35
36 *logilab-common-0.60.1 (08 Jan 2014)
37
38
39
40
41 1.1 dev-python/logilab-common/logilab-common-0.61.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.61.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/logilab-common/logilab-common-0.61.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: logilab-common-0.61.0.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.61.0.ebuild,v 1.1 2014/02/12 04:49:32 idella4 Exp $
51
52 EAPI=5
53
54 # 0.60.0 fails unittest_umessage with python3.3
55 # http://www.logilab.org/ticket/149345
56 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
57
58 inherit distutils-r1 eutils
59
60 DESCRIPTION="Useful miscellaneous modules used by Logilab projects"
61 HOMEPAGE="http://www.logilab.org/project/logilab-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="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
67 IUSE="test doc"
68
69 RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
70 virtual/python-unittest2[${PYTHON_USEDEP}]"
71
72 # Tests using dev-python/psycopg are skipped when dev-python/psycopg
73 # isn't installed.
74 # egenix-mx-base tests are optional, and egenix-mx-base does support
75 # Python2 only.
76 DEPEND="${RDEPEND}
77 test? (
78 $(python_gen_cond_dep dev-python/egenix-mx-base[$(python_gen_usedep 'python2*')] 'python2*')
79 !dev-python/psycopg[-mxdatetime]
80 )
81 doc? ( dev-python/epydoc )"
82
83 PATCHES=(
84 # Make sure setuptools does not create a zip file in python_test;
85 # this is buggy and causes tests to fail.
86 "${FILESDIR}/${PN}-0.59.1-zipsafe.patch"
87
88 # Depends on order of dictionary keys
89 "${FILESDIR}/logilab-common-0.60.0-skip-doctest.patch"
90 )
91
92 python_prepare_all() {
93 sed -e 's:(CURDIR):{S}/${P}:' -i doc/makefile || die
94 distutils-r1_python_prepare_all
95 }
96
97 python_compile_all() {
98 if use doc; then
99 # Simplest way to make makefile point to the right place.
100 ln -s "${BUILD_DIR}" build || die
101 emake -C doc epydoc
102 rm build || die
103 fi
104 }
105
106 python_test() {
107 distutils_install_for_testing
108
109 # https://www.logilab.org/ticket/149345
110 # Prevent timezone related failure.
111 export TZ=UTC
112
113 # Make sure that the tests use correct modules.
114 pushd "${TEST_DIR}"/lib > /dev/null || die
115 # Returns a clean run under py3.3
116 if [[ "${EPYTHON}" == 'python3.3' ]]; then
117 rm $(find . -name unittest_umessage.py) || die
118 fi
119 "${TEST_DIR}"/scripts/pytest || die "Tests fail with ${EPYTHON}"
120 popd > /dev/null || die
121 }
122
123 python_install_all() {
124 distutils-r1_python_install_all
125
126 doman doc/pytest.1
127 use doc && dohtml -r doc/apidoc/.
128 }