From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/testpath/Manifest | 2 + .../testpath/files/testpath-0.2-setup.py.patch | 28 ++++++++++++ dev-python/testpath/metadata.xml | 22 ++++++++++ dev-python/testpath/testpath-0.3.1.ebuild | 50 ++++++++++++++++++++++ dev-python/testpath/testpath-0.4.4-r1.ebuild | 27 ++++++++++++ dev-python/testpath/testpath-0.4.4.ebuild | 38 ++++++++++++++++ 6 files changed, 167 insertions(+) create mode 100644 dev-python/testpath/Manifest create mode 100644 dev-python/testpath/files/testpath-0.2-setup.py.patch create mode 100644 dev-python/testpath/metadata.xml create mode 100644 dev-python/testpath/testpath-0.3.1.ebuild create mode 100644 dev-python/testpath/testpath-0.4.4-r1.ebuild create mode 100644 dev-python/testpath/testpath-0.4.4.ebuild (limited to 'dev-python/testpath') diff --git a/dev-python/testpath/Manifest b/dev-python/testpath/Manifest new file mode 100644 index 000000000000..cc82c12571b9 --- /dev/null +++ b/dev-python/testpath/Manifest @@ -0,0 +1,2 @@ +DIST testpath-0.3.1.tar.gz 91333 BLAKE2B 86787b9677e8baa6d45fb5e6f047f2ab448e385201f20af3a3a9f33d6edd6c67e4eec09c178e815626096ad77d417ef99ddee562bf0fd7947b3f7ae1862f8156 SHA512 ab826cfb76d9a3ed6f1b178240f6bf61439bd792be26b5ad407b5c3efaa455b48965ceaf17e4ca6a4bc706465a8ed1c6c31a1572df5beeea2bb8db7814dc04f0 +DIST testpath-0.4.4.tar.gz 92101 BLAKE2B e607fbccf66570ebe29779701bac11048751e9ee8381cd7841ba5dc55e02ee2edc32e8fd8a4a869fdd786f0c4bacdb5e7efc644e0111c24a786631257a08c9cb SHA512 4435c99325d535c713e88b59ce16704e10947232e4eccfe0e792ff9288b65e677417881ce8bbb69577aebb4b9ef793621d8e54898ecb158d07fc22e8445950e2 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..409e6babe398 --- /dev/null +++ b/dev-python/testpath/metadata.xml @@ -0,0 +1,22 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + python@gentoo.org + Python + + + 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 + + gentoo-staging + 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..d7c94e75a1f1 --- /dev/null +++ b/dev-python/testpath/testpath-0.3.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( pypy3 python3_{6,7} ) + +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 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86" +IUSE="doc test" +RESTRICT="!test? ( 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.4.4-r1.ebuild b/dev-python/testpath/testpath-0.4.4-r1.ebuild new file mode 100644 index 000000000000..55d67c8608fe --- /dev/null +++ b/dev-python/testpath/testpath-0.4.4-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="Test utilities for code working with files and commands" +HOMEPAGE="https://github.com/jupyter/testpath https://testpath.readthedocs.io/en/latest/" +SRC_URI="https://github.com/jupyter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc x86" + +DEPEND=" + test? ( + dev-python/pathlib2[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx doc diff --git a/dev-python/testpath/testpath-0.4.4.ebuild b/dev-python/testpath/testpath-0.4.4.ebuild new file mode 100644 index 000000000000..694fa324bacb --- /dev/null +++ b/dev-python/testpath/testpath-0.4.4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="Test utilities for code working with files and commands" +HOMEPAGE="https://github.com/jupyter/testpath https://testpath.readthedocs.io/en/latest/" +SRC_URI="https://github.com/jupyter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +DEPEND=" + test? ( + dev-python/pathlib2[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-0.2-setup.py.patch" +) + +distutils_enable_tests pytest +distutils_enable_sphinx doc + +python_prepare_all() { + # Prevent un-needed download during build + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die + + distutils-r1_python_prepare_all +} -- cgit v1.3.1