diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2017-01-03 20:25:38 -0800 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2017-01-03 20:48:29 -0800 |
commit | bf4ee685c890ef93d5b7565601651d2d5eca0e86 (patch) | |
tree | 89a7e81cb3ffb04eac20b5f818d0b8d2e5472a8d /dev-python/setuptools_trial | |
parent | dev-python/pytest-virtualenv: New pkg, dep of dev-python/setuptools_trial (diff) | |
download | gentoo-bf4ee685c890ef93d5b7565601651d2d5eca0e86.tar.gz gentoo-bf4ee685c890ef93d5b7565601651d2d5eca0e86.tar.bz2 gentoo-bf4ee685c890ef93d5b7565601651d2d5eca0e86.zip |
dev-python/setuptools-trial: New pkg, dep of buildbot test suite
Diffstat (limited to 'dev-python/setuptools_trial')
-rw-r--r-- | dev-python/setuptools_trial/Manifest | 1 | ||||
-rw-r--r-- | dev-python/setuptools_trial/metadata.xml | 22 | ||||
-rw-r--r-- | dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild | 42 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/setuptools_trial/Manifest b/dev-python/setuptools_trial/Manifest new file mode 100644 index 000000000000..3e017030178e --- /dev/null +++ b/dev-python/setuptools_trial/Manifest @@ -0,0 +1 @@ +DIST setuptools_trial-0.6.0.tar.gz 6227 SHA256 14220f8f761c48ba1e2526f087195077cf54fad7098b382ce220422f0ff59b12 SHA512 9104b98627f57ed53c90d22042346875c5324d7b30e1ec9ba1718b5c59a786915a8fe0a53789a5dbd9318a12b27122661234f5be403365261db6a8728ce39827 WHIRLPOOL b75ae1cadce7353695fa791edab530bc9a4af0acedb783044cc6405736d8fdb309b77d3a703865e22c4c1c8ae786b7ae5e0342a42fd592aa70fe005bafc79d7e diff --git a/dev-python/setuptools_trial/metadata.xml b/dev-python/setuptools_trial/metadata.xml new file mode 100644 index 000000000000..026da74ccd84 --- /dev/null +++ b/dev-python/setuptools_trial/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>dolsen@gentoo.org</email> + <description>Primary maintainer</description> + </maintainer> + <upstream> + <maintainer> + <email>vladimir@rutsky.org</email> + <name>Vladimir Rutsky</name> + </maintainer> + <remote-id type="pypi">setuptools_trial</remote-id> + </upstream> + <longdescription> + This is a plugin for setuptools that integrates Twisted trial. Once + installed, “python ./setup.py trial” will run the package’s unit tests + using Twisted trial. The package can also optionally be configured so + that “python ./setup.py test” will use Twisted trial instead of pyunit + a.k.a. unittest. + </longdescription> +</pkgmetadata> diff --git a/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild b/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild new file mode 100644 index 000000000000..0a3ae3ab0a86 --- /dev/null +++ b/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 + +DESCRIPTION="Setuptools plugin that makes unit tests execute with trial instead of pyunit" +HOMEPAGE="https://github.com/rutsky/setuptools-trial https://pypi.python.org/pypi/setuptools_trial" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="test" +IUSE="" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python2_7) +" + +DEPEND=" + ${RDEPEND} +" + +# tests fail due to pip install sandbox violations +# test? ( +# dev-python/virtualenv[${PYTHON_USEDEP}] +# dev-python/pytest[${PYTHON_USEDEP}] +# dev-python/pytest-virtualenv[${PYTHON_USEDEP}] +# ) +#" + +#python_test() { + #distutils_install_for_testing + + #esetup.py test || die "Tests failed under ${EPYTHON}" +#} |