summaryrefslogtreecommitdiff
path: root/dev-python/testpath
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/testpath
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/testpath')
-rw-r--r--dev-python/testpath/Manifest9
-rw-r--r--dev-python/testpath/files/testpath-0.2-setup.py.patch28
-rw-r--r--dev-python/testpath/metadata.xml17
-rw-r--r--dev-python/testpath/testpath-0.2.ebuild54
-rw-r--r--dev-python/testpath/testpath-0.3.1.ebuild49
-rw-r--r--dev-python/testpath/testpath-0.3.ebuild54
6 files changed, 211 insertions, 0 deletions
diff --git a/dev-python/testpath/Manifest b/dev-python/testpath/Manifest
new file mode 100644
index 000000000000..1d6a14537eca
--- /dev/null
+++ b/dev-python/testpath/Manifest
@@ -0,0 +1,9 @@
+AUX testpath-0.2-setup.py.patch 944 SHA256 65353d7e4a13af097020996de9ed4a0cf25923cd2eac05977e4f7dd3dec1085f SHA512 c27c2dda320d2c16239eb498b2f59f85746745ce1875879a17f41235081983fd1015f0dfd182c6823b998f85aaf460486a3ac6d955be969487692ed50c5648aa WHIRLPOOL eefe6bb25226168946a26dfc49f5a85767c62024dcdccd4696189fa0bc9c81873e769b11bf25f82eb3a546fe102970eca433a30b320c869638fdf3f7905099c3
+DIST testpath-0.2.tar.gz 13732 SHA256 a5388cc7c8370b1f11298c1d513b3d2b9e2f390607a7c39963e6e3ba9f1b7012 SHA512 cc211bdc8f31ff4c286324e37bbce7fd84e19447d9735f396ce67f7568dd1d133be732c1fd7a08928c94566279d0f293a0caeed6a58ae6cd3dc293035fe164ea WHIRLPOOL 6b87b1c5ba590e6b19968e823dee22d7bbe0411124c1290593eb5efd78b5af06c51853d3359f339c4ca60b2842c409a1fcd0ff45c59f2e7e07f557534d78fcaa
+DIST testpath-0.3.1.tar.gz 91333 SHA256 acd1e9ae3582e03b806ebcc40fbb2c660032d3f3ad991e5460e6856d69e6ba12 SHA512 ab826cfb76d9a3ed6f1b178240f6bf61439bd792be26b5ad407b5c3efaa455b48965ceaf17e4ca6a4bc706465a8ed1c6c31a1572df5beeea2bb8db7814dc04f0 WHIRLPOOL b8eb5eedcee129a0a8e76d8739d1c036d10bfb0a230a089c74e149ee8aea63eb681ce70054f3abc852de8c81709e989930e10eecea46931b05f2425d49594497
+DIST testpath-0.3.tar.gz 91250 SHA256 01cc3cd59a59d42b238252774b9ebfc9d2af1d0d9bac81d7801409f570b1cda5 SHA512 71a3266e17616c4df4a4c465151e9d48b89f573e4562132e85982b62446396884a270a32b5d4956aac1f0be1a00096cab9d0dc1718ae8b6312b0436eca683bdf WHIRLPOOL cc44d374625ff39d3ac579fc19eb6ae20b4d7e91cdf614784c1fc46a9324c7f140ea2f807c106a0e8ac31138de854671c59ec365da7fd9985bb4fbdd3a3a6c94
+EBUILD testpath-0.2.ebuild 1117 SHA256 ebb9947d01a07ac096b84d08f60397d267b5830bba6e801b425943565424a73f SHA512 e59d7221078325f902df0f5eebbbad473bd90c0498ab458d7f2ab46b8efeaf83fc873902548f96aed289bee34d3d7d8386fb52376a97db2119c12a2b44078f36 WHIRLPOOL f2a1845276864476e31c93b0e39efc51c89b175e7f856b87e762cac1ca9990f43d62c9137e5bced5858e56b095a93b01e56e1ec83ca04fe340b16ff91fa1bdc8
+EBUILD testpath-0.3.1.ebuild 1066 SHA256 3669a42bf1c12cc332962140ccc10b5133055dfec13ab7389caa3f205daab7ae SHA512 f56e3b5c7638472310d8d41169436cf942e2b7e8a7052dc2ca3df14301e5a130650a1289b005b1fe807552d7f2c2aa05173aa8fc08be0704becd934e6194cc7f WHIRLPOOL 0a2bdaf2777929f417c98b5944b0007594e5d9ee308116d31839f4ca4214a2e8feac369b82c232b2cde55434a383550cb6790309e8ae497f8519d61d8f0f6740
+EBUILD testpath-0.3.ebuild 1131 SHA256 f56f81873e98b0ce4034bbae960e243307571531cc3134ad4595c836e52ea1de SHA512 da68e5eec7b29fa5846b1dff424e657b987aa0f39a3767f158431fb66bfd93e542fbe9211329285fc1d1f00c72e6936236c7b280b79d49dd7e8ae450deea5bc9 WHIRLPOOL e058abe449fb8fd929e168b9fa653ceaadfca56f14c0cd792ad3ace254fd1b0944e0f84f220cbd9bc56f9b312c1d731618b9bd2338db7c3e3b1872da8ca0ed5f
+MISC ChangeLog 1371 SHA256 68962dd399e1199adb4962779042caf9bfd645aeeb63190d24b202ab168c4113 SHA512 db533721649e964b2ffedccedd42658ad4cdb246b2d88a22a4e089da61ea903a83254efdf0fba93af2e5203098f9284cf16112befad2297e0a1ea1b081108d24 WHIRLPOOL 4ff2c36616fd7bda030c8c394dd8a2303b4a50395a95a2a944fa45f6cae505fb77584f65fa6fc4ab7b026dfce339acf84f1a288d26f206a87e4e6cc0af74fa06
+MISC metadata.xml 613 SHA256 d0c71b3d51ebfcbb477b22217dec08f3d0f51edc45ec0a64e31511d416f60b86 SHA512 c251993ded801317c638b460520800bc7fee9390a3c581c01a463da661eda3c7348117aa98c19efd7eb577666dfe580fc690e2f30d2001bd98e49f2baa33248e WHIRLPOOL e0f98bb3fb9d2324349e21f639f30545de4b4caef07a54e5becd15f37fcf312dae7d44ed2ec36b551527ee742b8dfb7df1fb16daf309f34194849bcb39dc531c
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 000000000000..a1bf41acd352
--- /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
++++ b/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 000000000000..cba9cbf64b00
--- /dev/null
+++ b/dev-python/testpath/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription>
+ 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.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">jupyter/testpath</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/testpath/testpath-0.2.ebuild b/dev-python/testpath/testpath-0.2.ebuild
new file mode 100644
index 000000000000..8200f6e2480a
--- /dev/null
+++ b/dev-python/testpath/testpath-0.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{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"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+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
+}
diff --git a/dev-python/testpath/testpath-0.3.1.ebuild b/dev-python/testpath/testpath-0.3.1.ebuild
new file mode 100644
index 000000000000..e00dcfd0d7da
--- /dev/null
+++ b/dev-python/testpath/testpath-0.3.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+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"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc test"
+
+DEPEND="
+ test? (
+ dev-python/pathlib2[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.2-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() {
+ if use doc; then
+ emake -C doc html
+ HTML_DOCS=( doc/_build/html/. )
+ fi
+}
+
+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/testpath/testpath-0.3.ebuild b/dev-python/testpath/testpath-0.3.ebuild
new file mode 100644
index 000000000000..efa5591fab24
--- /dev/null
+++ b/dev-python/testpath/testpath-0.3.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+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"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc test"
+
+DEPEND="
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ virtual/python-pathlib[${PYTHON_USEDEP}]
+ )
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ "
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.2-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
+}