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/setuptools_trial/Manifest | 1 + dev-python/setuptools_trial/metadata.xml | 24 +++++++++++++ .../setuptools_trial-0.6.0-r1.ebuild | 42 ++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 dev-python/setuptools_trial/Manifest create mode 100644 dev-python/setuptools_trial/metadata.xml create mode 100644 dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild (limited to 'dev-python/setuptools_trial') diff --git a/dev-python/setuptools_trial/Manifest b/dev-python/setuptools_trial/Manifest new file mode 100644 index 000000000000..685582c0ba49 --- /dev/null +++ b/dev-python/setuptools_trial/Manifest @@ -0,0 +1 @@ +DIST setuptools_trial-0.6.0.tar.gz 6227 BLAKE2B 2df7276197a5630b8140dce17528b75045ea86e15495146aceafc4428f6ab6493fbe8e2edfded30ae644523455df02f3cb85e8bf8879bd4fafc9a332d9f6bc40 SHA512 9104b98627f57ed53c90d22042346875c5324d7b30e1ec9ba1718b5c59a786915a8fe0a53789a5dbd9318a12b27122661234f5be403365261db6a8728ce39827 diff --git a/dev-python/setuptools_trial/metadata.xml b/dev-python/setuptools_trial/metadata.xml new file mode 100644 index 000000000000..01eb5d756e17 --- /dev/null +++ b/dev-python/setuptools_trial/metadata.xml @@ -0,0 +1,24 @@ + + + + + dolsen@gentoo.org + Brian Dolbec + + + + vladimir@rutsky.org + Vladimir Rutsky + + setuptools_trial + rutsky/setuptools-trial + + + 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. + + gentoo-staging + diff --git a/dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild b/dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild new file mode 100644 index 000000000000..4bc6f905bbc2 --- /dev/null +++ b/dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS="rdepend" +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.org/project/setuptools_trial/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] +" + +BDEPEND="${RDEPEND}" + +python_test() { + distutils_install_for_testing + + # The pkg test suite creates a virtualenv to install to for testing + # The distutils-r1 eclass already does the equivalent for us. + # So just run the same commands they do directly... + pushd "${S}"/tests/dummy_project > /dev/null || die + "${EPYTHON}" -m setup.py trial || \ + die "trial tests failed with ${EPYTHON}" + "${EPYTHON}" -m setup.py trial --reporter=text || \ + die "trial --reporter tests failed with ${EPYTHON}" + popd > /dev/null || die + pushd "${S}"/tests/alias_project > /dev/null || die + "${EPYTHON}" -m setup.py test || \ + die "alias_project tests failed with ${EPYTHON}" + popd > /dev/null || die +} -- cgit v1.3