From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6590F1381F1 for ; Tue, 17 May 2016 11:59:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE37C224057; Tue, 17 May 2016 11:59: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 21E772240DF for ; Tue, 17 May 2016 11:59:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 686F6340CC7 for ; Tue, 17 May 2016 11:59:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52FD316 for ; Tue, 17 May 2016 11:59:27 +0000 (UTC) From: "Marius Brehler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marius Brehler" Message-ID: <1463483200.21ab60e48dcc8fe2291a8d3b40fca314173115ca.marbre@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/entrypoints/, dev-python/entrypoints/files/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/entrypoints/entrypoints-0.2.1.ebuild dev-python/entrypoints/files/entrypoints-0.2.1-init.py.patch dev-python/entrypoints/files/entrypoints-0.2.1-setup.py.patch dev-python/entrypoints/metadata.xml X-VCS-Directories: dev-python/entrypoints/files/ dev-python/entrypoints/ X-VCS-Committer: marbre X-VCS-Committer-Name: Marius Brehler X-VCS-Revision: 21ab60e48dcc8fe2291a8d3b40fca314173115ca X-VCS-Branch: master Date: Tue, 17 May 2016 11:59:27 +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: 55fc23ae-dc0b-4d5b-be19-30965bec36d9 X-Archives-Hash: 4f1faf8246f21c44460083b7305b20ca commit: 21ab60e48dcc8fe2291a8d3b40fca314173115ca Author: Marius Brehler linux sungazer de> AuthorDate: Tue May 17 11:06:40 2016 +0000 Commit: Marius Brehler linux sungazer de> CommitDate: Tue May 17 11:06:40 2016 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=21ab60e4 dev-python/entrypoints: New package, ebuild wirtten by me; required for nbconvert Package-Manager: portage-2.2.28 dev-python/entrypoints/entrypoints-0.2.1.ebuild | 60 ++++++++++++++++++++++ .../files/entrypoints-0.2.1-init.py.patch | 8 +++ .../files/entrypoints-0.2.1-setup.py.patch | 20 ++++++++ dev-python/entrypoints/metadata.xml | 21 ++++++++ 4 files changed, 109 insertions(+) diff --git a/dev-python/entrypoints/entrypoints-0.2.1.ebuild b/dev-python/entrypoints/entrypoints-0.2.1.ebuild new file mode 100644 index 0000000..02cc4b7 --- /dev/null +++ b/dev-python/entrypoints/entrypoints-0.2.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 + +DESCRIPTION="Discover and load entry points from installed packages" +HOMEPAGE="https://github.com/takluyver/entrypoints" +SRC_URI="https://github.com//takluyver/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +DEPEND=" + $(python_gen_cond_dep 'dev-python/configparser[${PYTHON_USEDEP}]' python2_7) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + virtual/python-pathlib[${PYTHON_USEDEP}] + ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + " + +PATCHES=( + "${FILESDIR}/${P}"-setup.py.patch + "${FILESDIR}/${P}"-init.py.patch +) + +python_prepare_all() { + + # Prevent un-needed download during build + if use doc; then + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die + fi + + distutils-r1_python_prepare_all + + mv "${WORKDIR}/${P}"/entrypoints.py "${WORKDIR}/${P}/${PN}/" || die +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_install_all() { + use doc && HTML_DOCS=( doc/_build/html/. ) + distutils-r1_python_install_all + } + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + cp -r "${S}"/tests "${TEST_DIR}"/lib/ || die + py.test || die +} diff --git a/dev-python/entrypoints/files/entrypoints-0.2.1-init.py.patch b/dev-python/entrypoints/files/entrypoints-0.2.1-init.py.patch new file mode 100644 index 0000000..b9d30ed --- /dev/null +++ b/dev-python/entrypoints/files/entrypoints-0.2.1-init.py.patch @@ -0,0 +1,8 @@ +__init__.py for entrypoints by Marius Brehler . + +Patch by Marius Brehler . +--- /dev/null ++++ entrypoints/__init__.py +@@ -0,0 +1 @@ ++from .entrypoints import * +\ No newline at end of file diff --git a/dev-python/entrypoints/files/entrypoints-0.2.1-setup.py.patch b/dev-python/entrypoints/files/entrypoints-0.2.1-setup.py.patch new file mode 100644 index 0000000..27983fd --- /dev/null +++ b/dev-python/entrypoints/files/entrypoints-0.2.1-setup.py.patch @@ -0,0 +1,20 @@ +setup.py for entrypoints by Marius Brehler . + +Patch by Marius Brehler . +--- /dev/null ++++ setup.py +@@ -0,0 +1,13 @@ ++from distutils.core import setup ++ ++setup(name='entrypoints', ++ version='0.2.1', ++ description='Discover and load entry points from installed packages.', ++ author='Thomas Kluyver', ++ author_email='thomas@kluyver.me.uk', ++ url='https://github.com/takluyver/entrypoints', ++ packages=['entrypoints'], ++ classifiers=[ ++ 'License :: OSI Approved :: MIT License' ++ ] ++) +\ No newline at end of file diff --git a/dev-python/entrypoints/metadata.xml b/dev-python/entrypoints/metadata.xml new file mode 100644 index 0000000..acbfe4f --- /dev/null +++ b/dev-python/entrypoints/metadata.xml @@ -0,0 +1,21 @@ + + + + + marbre@linux.sungazer.de + Marius Brehler + + + sci@gentoo.org + Gentoo Science Project + + + Entry points are a way for Python packages to advertise objects with + some common interface. The most common examples are console_scripts + entry points, which define shell commands by identifying a Python + function to run. + + + takluyver/testpath + +