From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A11B1139695 for ; Tue, 9 May 2017 19:28:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 473E821C080; Tue, 9 May 2017 19:28:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20D7A21C080 for ; Tue, 9 May 2017 19:28:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0F3523416BA for ; Tue, 9 May 2017 19:28:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57EF67458 for ; Tue, 9 May 2017 19:28:31 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1494358104.ccfb3c5d0c5fbec0f9241ff4b4582c0410e91483.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/astng/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/astng/astng-0.24.3-r1.ebuild X-VCS-Directories: dev-python/astng/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ccfb3c5d0c5fbec0f9241ff4b4582c0410e91483 X-VCS-Branch: master Date: Tue, 9 May 2017 19:28:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f41d9ece-c013-4658-a6cf-1b48480e6d19 X-Archives-Hash: e32420c71f87b04b6eeffe8ce0673ab5 commit: ccfb3c5d0c5fbec0f9241ff4b4582c0410e91483 Author: Michał Górny gentoo org> AuthorDate: Tue May 9 19:21:42 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue May 9 19:28:24 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccfb3c5d dev-python/astng: Fix namespace support dev-python/astng/astng-0.24.3-r1.ebuild | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/dev-python/astng/astng-0.24.3-r1.ebuild b/dev-python/astng/astng-0.24.3-r1.ebuild new file mode 100644 index 00000000000..3355475067a --- /dev/null +++ b/dev-python/astng/astng-0.24.3-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Abstract Syntax Tree for logilab packages" +HOMEPAGE="http://www.logilab.org/project/logilab-astng https://pypi.python.org/pypi/logilab-astng" +SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz mirror://pypi/l/logilab-astng/logilab-${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos" +IUSE="test" + +# 1.2.2-r1 for namespace files +RDEPEND=">=dev-python/logilab-common-1.2.2-r1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( >=dev-python/egenix-mx-base-3.0.0[$(python_gen_usedep 'python2*')] )" + +S="${WORKDIR}/logilab-${P}" +RESTRICT="test" # erroneous failures + +# a wit; pypy reports astng modules differently +PATCHES=( "${FILESDIR}"/pypy-test.patch ) + +python_test() { + distutils_install_for_testing + # test target needs unpacked test directories, doesn't like binary egg + esetup.py install_lib --install-dir="${TEST_DIR}"/lib + #https://bitbucket.org/logilab/astroid/issue/1/test-suite-fails-in-0243-under-py32-pypy + # Make sure that the tests use correct modules. + cd "${TEST_DIR}"/lib || die + pytest -v || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + rm "${D}$(python_get_sitedir)/logilab/__init__.py" || die +} + +python_install_all() { + distutils-r1_python_install_all + + find "${D}" -name '*.pth' -delete || die +}