Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/astng: metadata.xml ChangeLog astng-0.22.0.ebuild
Date: Fri, 29 Jul 2011 22:27:43
Message-Id: 20110729222734.19FA32004B@flycatcher.gentoo.org
1 bicatali 11/07/29 22:27:34
2
3 Modified: metadata.xml ChangeLog
4 Added: astng-0.22.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.10.7/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.2 dev-python/astng/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/astng/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 8 Nov 2005 17:06:07 -0000 1.1
24 +++ metadata.xml 29 Jul 2011 22:27:34 -0000 1.2
25 @@ -1,5 +1,19 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 - <herd>python</herd>
30 +<herd>python</herd>
31 +<longdescription lang='en'>
32 + The aim of this module is to provide a common base representation of
33 + python source code for projects such as pychecker, pyreverse,
34 + pylint... Well, actually the development of this library is
35 + essentially governed by pylint's needs.
36 +
37 + It provides a compatible representation which comes from the _ast
38 + module. It rebuilds the tree generated by the builtin _ast module by
39 + recursively walking down the AST and building an extended ast (let's
40 + call it astng ;). The new node classes have additional methods and
41 + attributes for different usages. They include some support for static
42 + inference and local name scopes. Furthermore, astng builds partial
43 + trees by inspecting living objects.
44 +</longdescription>
45 </pkgmetadata>
46
47
48
49 1.52 dev-python/astng/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/ChangeLog?rev=1.52&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/ChangeLog?rev=1.52&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/ChangeLog?r1=1.51&r2=1.52
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v
58 retrieving revision 1.51
59 retrieving revision 1.52
60 diff -u -r1.51 -r1.52
61 --- ChangeLog 10 Apr 2011 20:53:05 -0000 1.51
62 +++ ChangeLog 29 Jul 2011 22:27:34 -0000 1.52
63 @@ -1,6 +1,12 @@
64 # ChangeLog for dev-python/astng
65 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.51 2011/04/10 20:53:05 maekke Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.52 2011/07/29 22:27:34 bicatali Exp $
68 +
69 +*astng-0.22.0 (29 Jul 2011)
70 +
71 + 29 Jul 2011; Sébastien Fabbro <bicatali@g.o> +astng-0.22.0.ebuild,
72 + metadata.xml:
73 + Version bump
74
75 10 Apr 2011; Markus Meier <maekke@g.o> astng-0.21.1.ebuild:
76 x86 stable, bug #355273
77
78
79
80 1.1 dev-python/astng/astng-0.22.0.ebuild
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/astng-0.22.0.ebuild?rev=1.1&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/astng/astng-0.22.0.ebuild?rev=1.1&content-type=text/plain
84
85 Index: astng-0.22.0.ebuild
86 ===================================================================
87 # Copyright 1999-2011 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 # $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.22.0.ebuild,v 1.1 2011/07/29 22:27:34 bicatali Exp $
90
91 EAPI="3"
92 SUPPORT_PYTHON_ABIS="1"
93
94 inherit distutils
95
96 DESCRIPTION="Abstract Syntax Tree New Generation for logilab packages"
97 HOMEPAGE="http://www.logilab.org/projects/astng/ http://pypi.python.org/pypi/logilab-astng"
98 SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz mirror://pypi/l/logilab-astng/logilab-${P}.tar.gz"
99
100 LICENSE="LGPL-2.1"
101 SLOT="0"
102 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
103 IUSE="test"
104
105 # Version specified in __pkginfo__.py.
106 RDEPEND=">=dev-python/logilab-common-0.53.0"
107 DEPEND="${RDEPEND}
108 dev-python/setuptools
109 test? ( >=dev-python/egenix-mx-base-3.0.0 )"
110
111 S="${WORKDIR}/logilab-${P}"
112
113 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
114
115 PYTHON_MODNAME="logilab/astng"
116
117 src_prepare() {
118 distutils_src_prepare
119
120 conversion() {
121 [[ "${PYTHON_ABI}" == 2.* ]] && return
122 find -name "*.py" ! -name "setup.py" -print | xargs 2to3-${PYTHON_ABI} -nw --no-diffs
123 }
124 python_execute_function -s conversion
125 }
126
127 src_test() {
128 testing() {
129 local tpath="${T}/test-${PYTHON_ABI}"
130 local spath="${tpath}$(python_get_sitedir)"
131
132 mkdir -p "${spath}/logilab" || return 1
133 cp -r "$(python_get_sitedir)/logilab/common" "${spath}/logilab" || return 1
134
135 "$(PYTHON)" setup.py install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_version)"
136
137 # pytest uses tests placed relatively to the current directory.
138 pushd "${spath}/logilab/astng" > /dev/null || return 1
139 if [[ "${PYTHON_ABI}" == 3.* ]]; then
140 # Support for Python 3 is experimental. Some tests are known to fail.
141 PYTHONPATH="${spath}" pytest -v
142 else
143 PYTHONPATH="${spath}" pytest -v || return 1
144 fi
145 popd > /dev/null || return 1
146 }
147 python_execute_function -s testing
148 }
149
150 src_install() {
151 distutils_src_install
152
153 deletion_of_unneeded_files() {
154 # Avoid collision with dev-python/logilab-common.
155 rm -f "${ED}$(python_get_sitedir)/logilab/__init__.py" || return 1
156
157 # Don't install tests.
158 rm -fr "${ED}$(python_get_sitedir)/logilab/astng/test" || return 1
159 }
160 python_execute_function -q deletion_of_unneeded_files
161 }