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 3C9AD139694 for ; Tue, 9 May 2017 15:35:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CEEF21C0A2; Tue, 9 May 2017 15:35:51 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 6A0A821C0A2 for ; Tue, 9 May 2017 15:35:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6D8B13416BF for ; Tue, 9 May 2017 15:35:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2A3617458 for ; Tue, 9 May 2017 15:35:37 +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: <1494344129.53b1bf827d36ee37d93bc87a03951100ad75d03c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zc-buildout/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/zc-buildout/zc-buildout-2.5.3-r1.ebuild X-VCS-Directories: dev-python/zc-buildout/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 53b1bf827d36ee37d93bc87a03951100ad75d03c X-VCS-Branch: master Date: Tue, 9 May 2017 15:35:37 +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: 6e8f48d7-316d-455d-804b-39d39746205e X-Archives-Hash: 2287d9186a335b6b15ea7b46eab8e308 commit: 53b1bf827d36ee37d93bc87a03951100ad75d03c Author: Michał Górny gentoo org> AuthorDate: Tue May 9 14:43:17 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue May 9 15:35:29 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b1bf82 dev-python/zc-buildout: Fix namespace support dev-python/zc-buildout/zc-buildout-2.5.3-r1.ebuild | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/dev-python/zc-buildout/zc-buildout-2.5.3-r1.ebuild b/dev-python/zc-buildout/zc-buildout-2.5.3-r1.ebuild new file mode 100644 index 00000000000..bfad670106d --- /dev/null +++ b/dev-python/zc-buildout/zc-buildout-2.5.3-r1.ebuild @@ -0,0 +1,56 @@ +# 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} pypy pypy3 ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="System for managing development buildouts" +HOMEPAGE="https://pypi.python.org/pypi/zc.buildout" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=">=dev-python/setuptools-3.3[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/zope-testing[${PYTHON_USEDEP}] )" + +S="${WORKDIR}"/${MY_P} + +DOCS=( README.rst doc/tutorial.txt ) + +# Prevent incorrect installation of data file +python_prepare_all() { + sed -e '/^ include_package_data/d' -i setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + if python_is_python3; then + ewarn "Tests are broken for ${EPYTHON}, skipping" + continue + fi + + distutils_install_for_testing + "${PYTHON}" src/zc/buildout/tests.py || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + python_moduleinto zc + python_domodule src/zc/__init__.py +} + +python_install_all() { + distutils-r1_python_install_all + + find "${D}" -name '*.pth' -delete || die +}