# ChangeLog for dev-python/astng
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.15 2007/02/21 18:11:33 lucass Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.16 2007/03/02 01:57:49 marienz Exp $
+
+*astng-0.17.0 (02 Mar 2007)
+
+ 02 Mar 2007; Marien Zwart <marienz@gentoo.org>
+ +files/astng-0.17.0-test-fixes.patch, +astng-0.17.0.ebuild:
+ Version bump, closing bug #168905, thanks to dsd@gentoo.org for reporting.
21 Feb 2007; Lukasz Strzygowski <lucass@gentoo.org> Manifest:
Fixed missing chksums.
MD5 7e6d6420899db766a1e1d8bcb14fb76f files/astng-0.16.1-skip-gobject-test.patch 386
RMD160 24281fefa2b621a1203fcf0727ecc14f75d84fdd files/astng-0.16.1-skip-gobject-test.patch 386
SHA256 ecaced507ce492c55f1fe82342adfdf9202a8557ecba0028087229bca62c2a44 files/astng-0.16.1-skip-gobject-test.patch 386
+AUX astng-0.17.0-test-fixes.patch 1802 RMD160 49e77ea9cb6e4f234301c943c47c5a450b353062 SHA1 b184625941feb46746a1afdf9d4b6c92b517a072 SHA256 0f5fe8b1971c95ac804e74191c9facf946afd2bbee68910ca4c2297b0cb5a220
+MD5 c7950c2c8c0cb1a896216ece39dd36d9 files/astng-0.17.0-test-fixes.patch 1802
+RMD160 49e77ea9cb6e4f234301c943c47c5a450b353062 files/astng-0.17.0-test-fixes.patch 1802
+SHA256 0f5fe8b1971c95ac804e74191c9facf946afd2bbee68910ca4c2297b0cb5a220 files/astng-0.17.0-test-fixes.patch 1802
DIST astng-0.16.0.tar.gz 54410 RMD160 7c9226adc2fd1ad5fa1c74ac1cfb9436927c0273 SHA1 272e6c136ff936699f1787c7cc1c5a8dad2e8edf SHA256 33b1da358d2ec24f00623da8dcc3aaf5f8e04772c9b26930fc80bef72a9ad654
DIST astng-0.16.1.tar.gz 61180 RMD160 af1369e73471f97c37222e6bef34eeac21412291 SHA1 3de78756b1daea9917c43183756bd843fa7fb43d SHA256 116285f2a566a75df3c998e37d245bd26c3ade6cbc320a97aea750ae05196c5f
DIST logilab-astng-0.16.3.tar.gz 58548 RMD160 7fb40a0c2d1264f788c9bc903b58c88cfc32c3fd SHA1 b07964bb52b17319b628133ffc42379be939af8d SHA256 e1f418eeed96c2831215bbf76c7df395b23b699c08a13350974147dfb67acb43
+DIST logilab-astng-0.17.0.tar.gz 62202 RMD160 7a869a756a511ba6c5fd82a1e575ee82b6ce7166 SHA1 ec3cd836d6a1079d1c2dd5cd9307c410206d6141 SHA256 714e37cc12186f8b796fc5431678d9fab3eff0152a186b523b1fe7d7d183d15f
EBUILD astng-0.16.0.ebuild 1807 RMD160 8ad4335a67be8332ffe46aa49b679b57183631e9 SHA1 61b7e291c0ef657ec827f43c809e4d5943e01d47 SHA256 ec7c4e172fdde0b916226a5479ba5c567265cf4d27adfb7a63a1556fe422e66d
MD5 3ff1e0c1359d90d4522ee16e712b5363 astng-0.16.0.ebuild 1807
RMD160 8ad4335a67be8332ffe46aa49b679b57183631e9 astng-0.16.0.ebuild 1807
MD5 33063c87a730b1d4b1c29e04181ccc58 astng-0.16.3.ebuild 1774
RMD160 e2eb2f7ecf4c5ebb1ac7e23fcf70c05525ce7e22 astng-0.16.3.ebuild 1774
SHA256 d41f89ccc36ded4753ebabb09042aa0bd233257651ce15f2e88fab123a92ae51 astng-0.16.3.ebuild 1774
-MISC ChangeLog 2324 RMD160 204cccddb8b88ac0ae8bf4dcb438b9303d2d9f89 SHA1 f08aa90cd8b2eb418dfe12366d16db9ffdb6c4a2 SHA256 af731fcca2957f93b8ef80905d4ad72d48110cb514a70f95372e68c479de6343
-MD5 6a642b086a216237882188e8f6b98ff8 ChangeLog 2324
-RMD160 204cccddb8b88ac0ae8bf4dcb438b9303d2d9f89 ChangeLog 2324
-SHA256 af731fcca2957f93b8ef80905d4ad72d48110cb514a70f95372e68c479de6343 ChangeLog 2324
+EBUILD astng-0.17.0.ebuild 1997 RMD160 b653ea29051678f1b73e041cf97ba960c77a5724 SHA1 c9de1a387d2c424fec4bd5b44a787d1039e64afa SHA256 807e4a26d246967416680f3d727e7d74fa3dd824219cf00c34fa7d6fa6706724
+MD5 d8628662bb76c83aea5edfa41639853e astng-0.17.0.ebuild 1997
+RMD160 b653ea29051678f1b73e041cf97ba960c77a5724 astng-0.17.0.ebuild 1997
+SHA256 807e4a26d246967416680f3d727e7d74fa3dd824219cf00c34fa7d6fa6706724 astng-0.17.0.ebuild 1997
+MISC ChangeLog 2543 RMD160 b3ec0b1652d0695ee8ec7ab421bc586c71d27954 SHA1 88f77262d5d3df47b8b4351bef5f7a63a9a564fa SHA256 dd83c924f4497713f749c0660f47bd4ce7e4a8996e53e49d52800b91358bee22
+MD5 709507ae206a5a96cb6803f57cf5b91e ChangeLog 2543
+RMD160 b3ec0b1652d0695ee8ec7ab421bc586c71d27954 ChangeLog 2543
+SHA256 dd83c924f4497713f749c0660f47bd4ce7e4a8996e53e49d52800b91358bee22 ChangeLog 2543
MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a
MD5 9ac4199ebe7cd3e7e311274994767f82 metadata.xml 160
RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb metadata.xml 160
MD5 2f1bd26de59b8a4d17ce1c69448ebdc4 files/digest-astng-0.16.3 259
RMD160 a56f6c4a07958645d090219a8dd54d0180f7331a files/digest-astng-0.16.3 259
SHA256 ccc64068d50f3d46afafcb4c097325481787144f3424a88f1592fb991304ae76 files/digest-astng-0.16.3 259
+MD5 2306891469f3b28c5c5989b6dcc5ddbe files/digest-astng-0.17.0 259
+RMD160 d7a022555091d237f2e12fd2274dc71042dc9395 files/digest-astng-0.17.0 259
+SHA256 4118ef2dabb02d2fb0e04406294147ab6187e043e69c3c231483d08baa2d58e0 files/digest-astng-0.17.0 259
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)
-iD8DBQFF3Itf2jLqHNfbg2URAjbOAKDIE9W3kMBGJpvHKylGFjo0N6J7dwCfQnPJ
-BNySTAiGTGa2big4AAwjx0g=
-=GaZD
+iD8DBQFF54S8UElL7eJpfEQRArN4AKCmYIFQKoWKZt0yUEfldB0OvEb56gCbBluN
+jzNQYsfEdYKOAaBoxJcyFFU=
+=WhyA
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.17.0.ebuild,v 1.1 2007/03/02 01:57:49 marienz Exp $
+
+inherit distutils eutils
+
+DESCRIPTION="Abstract Syntax Tree New Generation for logilab packages"
+SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz"
+HOMEPAGE="http://www.logilab.org/projects/astng/"
+
+IUSE=""
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+LICENSE="GPL-2"
+DEPEND=">=dev-lang/python-2.1
+ >=dev-python/logilab-common-0.13-r1"
+
+S="${WORKDIR}/logilab-${P}"
+
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Skip a failing test.
+ epatch "${FILESDIR}/${PN}-0.16.1-skip-gobject-test.patch"
+
+ # Fix a typo (?)
+ epatch "${FILESDIR}/${P}-test-fixes.patch"
+}
+
+src_install() {
+ distutils_src_install
+ python_version
+ # we need to remove this file because it collides with the one
+ # from logilab-common (which we depend on).
+ rm "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/logilab/__init__.py"
+}
+
+src_test() {
+ python_version
+
+ # Do a temporary install.
+ local spath="usr/$(get_libdir)/python${PYVER}/site-packages/"
+
+ # This is a hack to make tests work without installing to the live
+ # filesystem. We copy part of the logilab site-packages to a temporary
+ # dir, install there, and run from there.
+ mkdir -p "${T}/test/${spath}/logilab"
+ cp -r "${ROOT}${spath}/logilab/common" "${T}/test/${spath}/logilab" \
+ || die "copying logilab-common failed!"
+
+ "${python}" setup.py install --root="${T}/test" || die "test copy failed"
+
+ # Use a hacked up copy of pytest that exits nonzero on failure.
+ sed -e 's/exitafter=False/exitafter=True/' \
+ < "${ROOT}usr/bin/pytest" > "${T}/pytest" || die "sed failed"
+
+ # Pytest picks up tests relative to the current dir, so cd in.
+ pushd "${T}/test/${spath}/logilab/astng" >/dev/null
+ PYTHONPATH="${T}/test/${spath}" "${python}" "${T}/pytest" -v \
+ || die "tests failed"
+ popd >/dev/null
+ rm -rf "${T}/test"
+}
--- /dev/null
+=== modified file 'test/regrtest.py'
+--- test/regrtest.py 2007-03-02 01:24:23 +0000
++++ test/regrtest.py 2007-03-02 01:33:52 +0000
+@@ -72,6 +72,10 @@
+
+
+ def test_pylint_config_attr(self):
++ try:
++ from pylint import lint
++ except ImportError:
++ self.skip('pylint not available')
+ mod = m.astng_from_module_name('pylint.lint')
+ pylinter = mod['PyLinter']
+ self.assertEquals([c.name for c in pylinter.ancestors()],
+
+=== modified file 'test/unittest_inference.py'
+--- test/unittest_inference.py 2007-03-02 01:24:23 +0000
++++ test/unittest_inference.py 2007-03-02 01:38:46 +0000
+@@ -635,8 +635,14 @@
+ node = get_name_node(astng, 'open', -1)
+ infered = list(node.infer())
+ self.failUnlessEqual(len(infered), 1)
+- self.assertIsInstance(infered[0], nodes.Class)
+- self.failUnlessEqual(infered[0].name, 'file')
++ if open is file:
++ # On python < 2.5 open and file are the same thing.
++ self.assertIsInstance(infered[0], nodes.Class)
++ self.failUnlessEqual(infered[0].name, 'file')
++ else:
++ # On python >= 2.5 open is a builtin function.
++ self.assertIsInstance(infered[0], nodes.Function)
++ self.failUnlessEqual(infered[0].name, 'open')
+
+ def test_callfunc_context_inference(self):
+ data = '''
+@@ -739,7 +745,7 @@
+ infered = list(astng.igetattr('x'))
+ self.failUnlessEqual(len(infered), 2)
+ value = [str(v) for v in infered]
+- self.assertEquals(value, ['Instance of __main__.Yyarray',
++ self.assertEquals(value, ['Instance of %s.myarray' % (__name__,),
+ 'Instance of __builtin__.int'])
+
+ if __name__ == '__main__':
+
--- /dev/null
+MD5 29a89f58aebcf9e0f07f205e66aa2d6b logilab-astng-0.17.0.tar.gz 62202
+RMD160 7a869a756a511ba6c5fd82a1e575ee82b6ce7166 logilab-astng-0.17.0.tar.gz 62202
+SHA256 714e37cc12186f8b796fc5431678d9fab3eff0152a186b523b1fe7d7d183d15f logilab-astng-0.17.0.tar.gz 62202