summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2014-07-31 03:53:15 +0000
committerIan Delaney <idella4@gentoo.org>2014-07-31 03:53:15 +0000
commitb8d98e5cb13d709face2865d935b96f33831564d (patch)
tree2b44b364119573dc5aed74b1cf622cd4b5754143 /dev-python/astroid
parentRevbump for EAPI5. Drop oldest revision (diff)
downloadgentoo-2-b8d98e5cb13d709face2865d935b96f33831564d.tar.gz
gentoo-2-b8d98e5cb13d709face2865d935b96f33831564d.tar.bz2
gentoo-2-b8d98e5cb13d709face2865d935b96f33831564d.zip
bump
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/astroid')
-rw-r--r--dev-python/astroid/ChangeLog7
-rw-r--r--dev-python/astroid/astroid-1.2.0.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/dev-python/astroid/ChangeLog b/dev-python/astroid/ChangeLog
index 85c05bce8504..d7c8261c58b8 100644
--- a/dev-python/astroid/ChangeLog
+++ b/dev-python/astroid/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/astroid
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/astroid/ChangeLog,v 1.4 2014/05/08 09:37:17 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/astroid/ChangeLog,v 1.5 2014/07/31 03:53:15 idella4 Exp $
+
+*astroid-1.2.0 (31 Jul 2014)
+
+ 31 Jul 2014; Ian Delaney <idella4@gentoo.org> +astroid-1.2.0.ebuild:
+ bump
*astroid-1.1.1 (08 May 2014)
diff --git a/dev-python/astroid/astroid-1.2.0.ebuild b/dev-python/astroid/astroid-1.2.0.ebuild
new file mode 100644
index 000000000000..32749f21e65e
--- /dev/null
+++ b/dev-python/astroid/astroid-1.2.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/astroid/astroid-1.2.0.ebuild,v 1.1 2014/07/31 03:53:15 idella4 Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Abstract Syntax Tree for logilab packages"
+HOMEPAGE="http://bitbucket.org/logilab/astroid http://pypi.python.org/pypi/astroid"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
+IUSE="test"
+
+# Version specified in __pkginfo__.py.
+RDEPEND=">=dev-python/logilab-common-0.60.0[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ >=dev-python/pylint-1.1.0[${PYTHON_USEDEP}] )"
+# Required for tests
+DISTUTILS_IN_SOURCE_BUILD=1
+
+python_prepare_all() {
+ # https://bitbucket.org/logilab/astroid/issue/8/
+ sed -e "s/test_numpy_crash/_&/" -i test/unittest_regrtest.py
+
+ distutils-r1_python_prepare_all
+}
+
+# Restrict to test phase, required because suite fails horribly without it
+src_test() {
+ local DISTUTILS_NO_PARALLEL_BUILD=1
+ distutils-r1_src_test
+}
+
+python_test() {
+ # https://bitbucket.org/logilab/astroid/issue/16/1-test-fail-test_socket_build-under-pypy
+ # https://bitbucket.org/logilab/astroid/issue/44/
+ python setup.py build
+
+ pushd build/lib > /dev/null
+ if [[ "${EPYTHON}" == pypy* ]]; then
+ sed -e 's:test_socket_build:_&:' -i ${PN}/test/unittest_builder.py || die
+ fi
+ PYTHONPATH=. pytest || die "Tests fail with ${EPYTHON}"
+ popd > /dev/null
+}