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 3AD721384B4 for ; Sat, 28 Nov 2015 17:33:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65DF121C044; Sat, 28 Nov 2015 17:33:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4CA6EE08AD for ; Sat, 28 Nov 2015 17:33:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6958B3408C5 for ; Sat, 28 Nov 2015 17:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 177E4F50 for ; Sat, 28 Nov 2015 17:33:19 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1448638567.1fb45205d6631eacbab9163a0b0fd5c86cdc1509.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/testpath/, dev-python/testpath/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/testpath/Manifest dev-python/testpath/files/testpath-0.2-setup.py.patch dev-python/testpath/metadata.xml dev-python/testpath/testpath-0.2.ebuild X-VCS-Directories: dev-python/testpath/ dev-python/testpath/files/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 1fb45205d6631eacbab9163a0b0fd5c86cdc1509 X-VCS-Branch: master Date: Sat, 28 Nov 2015 17:33:19 +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: 793336a9-dbc6-4e44-8824-3e5f2dbb4664 X-Archives-Hash: da00ef6ae35f6dd687a576d954007c7f commit: 1fb45205d6631eacbab9163a0b0fd5c86cdc1509 Author: Marius Brehler linux sungazer de> AuthorDate: Fri Nov 27 15:36:07 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Fri Nov 27 15:36:07 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fb45205 dev-python/testpath: Import from science overlay Package-Manager: portage-2.2.20.1 dev-python/testpath/Manifest | 1 + .../testpath/files/testpath-0.2-setup.py.patch | 28 +++++++++++ dev-python/testpath/metadata.xml | 14 ++++++ dev-python/testpath/testpath-0.2.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 98 insertions(+) diff --git a/dev-python/testpath/Manifest b/dev-python/testpath/Manifest new file mode 100644 index 0000000..665ec38 --- /dev/null +++ b/dev-python/testpath/Manifest @@ -0,0 +1 @@ +DIST testpath-0.2.tar.gz 13732 SHA256 a5388cc7c8370b1f11298c1d513b3d2b9e2f390607a7c39963e6e3ba9f1b7012 SHA512 cc211bdc8f31ff4c286324e37bbce7fd84e19447d9735f396ce67f7568dd1d133be732c1fd7a08928c94566279d0f293a0caeed6a58ae6cd3dc293035fe164ea WHIRLPOOL 6b87b1c5ba590e6b19968e823dee22d7bbe0411124c1290593eb5efd78b5af06c51853d3359f339c4ca60b2842c409a1fcd0ff45c59f2e7e07f557534d78fcaa diff --git a/dev-python/testpath/files/testpath-0.2-setup.py.patch b/dev-python/testpath/files/testpath-0.2-setup.py.patch new file mode 100644 index 0000000..065e8e5 --- /dev/null +++ b/dev-python/testpath/files/testpath-0.2-setup.py.patch @@ -0,0 +1,28 @@ +Patch to bring back setup.py from +https://github.com/jupyter/testpath/blob/086bd1bd1ec7da1b3dacfed1705c0c99fae231b3/setup.py +--- /dev/null ++++ setup.py +@@ -0,0 +1,22 @@ ++from distutils.core import setup ++ ++with open("README.rst", "r") as f: ++ readme = f.read() ++ ++setup(name='testpath', ++ version='0.1', ++ description='Test utilities for code working with files and commands', ++ long_description = readme, ++ author='Thomas Kluyver', ++ author_email='thomas@kluyver.me.uk', ++ url='https://github.com/takluyver/testpath', ++ packages=['testpath'], ++ classifiers=[ ++ 'Intended Audience :: Developers', ++ 'License :: OSI Approved :: MIT License', ++ 'Programming Language :: Python', ++ 'Programming Language :: Python :: 2', ++ 'Programming Language :: Python :: 3', ++ 'Topic :: Software Development :: Testing', ++ ] ++) +\ No newline at end of file diff --git a/dev-python/testpath/metadata.xml b/dev-python/testpath/metadata.xml new file mode 100644 index 0000000..4db1c84 --- /dev/null +++ b/dev-python/testpath/metadata.xml @@ -0,0 +1,14 @@ + + + + sci + + Testpath is a collection of utilities for Python code working with + files and commands. It contains functions to check things on the + filesystem, and tools for mocking system commands and recording + calls to those. + + + jupyter/testpath + + diff --git a/dev-python/testpath/testpath-0.2.ebuild b/dev-python/testpath/testpath-0.2.ebuild new file mode 100644 index 0000000..a3ee765 --- /dev/null +++ b/dev-python/testpath/testpath-0.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 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="Test utilities for code working with files and commands" +HOMEPAGE="http://jupyter.org" +SRC_URI="https://github.com/jupyter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +LICENSE="BSD" +SLOT="0" +IUSE="doc test" + +DEPEND=" + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + virtual/python-pathlib[${PYTHON_USEDEP}] + ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + " + +PATCHES=( + "${FILESDIR}/${P}"-setup.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 +} + +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 +}