summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2020-04-28 17:21:13 -0700
committerBrian Dolbec <dolsen@gentoo.org>2020-05-08 17:50:51 -0700
commit36e7816647baad8aa939399db250786a8d9c8787 (patch)
treef3d9f28b351e017db21e83eeee79dd404761f463
parentdev-python/autobahn: Version bump, adds python 3.7, 3.8 (diff)
downloadgentoo-36e7816647baad8aa939399db250786a8d9c8787.tar.gz
gentoo-36e7816647baad8aa939399db250786a8d9c8787.tar.bz2
gentoo-36e7816647baad8aa939399db250786a8d9c8787.zip
dev-python/setuptools_trial: Revision bump, adds python 3.7, 3.8
Bump eapi, also duplicate the pkg tests inside our build environment. metadata.xml take maintainership Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r--dev-python/setuptools_trial/metadata.xml5
-rw-r--r--dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild42
-rw-r--r--dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild25
3 files changed, 46 insertions, 26 deletions
diff --git a/dev-python/setuptools_trial/metadata.xml b/dev-python/setuptools_trial/metadata.xml
index 2d9727db0f6..492255f2cfc 100644
--- a/dev-python/setuptools_trial/metadata.xml
+++ b/dev-python/setuptools_trial/metadata.xml
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
<upstream>
<maintainer>
<email>vladimir@rutsky.org</email>
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 00000000000..4bc6f905bbc
--- /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
+}
diff --git a/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild b/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild
deleted file mode 100644
index f8e7fe22122..00000000000
--- a/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python3_6 )
-
-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=""
-
-RDEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
- >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
-"
-
-DEPEND="
- ${RDEPEND}
-"