From 0036c7ab16aa1267f8e527254cd4935a60aa93a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 26 Apr 2020 08:58:12 +0200 Subject: [PATCH] dev-python/python-redmine: Enable py3.{7,8}, modernize MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../python-redmine/python-redmine-2.0.2.ebuild | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/dev-python/python-redmine/python-redmine-2.0.2.ebuild b/dev-python/python-redmine/python-redmine-2.0.2.ebuild index 004a759abd1c..403396ebdefe 100644 --- a/dev-python/python-redmine/python-redmine-2.0.2.ebuild +++ b/dev-python/python-redmine/python-redmine-2.0.2.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 @@ -14,19 +14,10 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" -# This package bundles dev-python/requests, so setup.py won't check for -# it. As a result, we don't need RDEPEND in DEPEND unconditionally. -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - ${RDEPEND} - dev-python/coverage[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - )" +distutils_enable_tests nose python_prepare_all() { # Remove the bundled copy of dev-python/requests... @@ -40,7 +31,3 @@ python_prepare_all() { distutils-r1_python_prepare_all } - -python_test() { - nosetests || die "tests failed under ${EPYTHON}" -} -- 2.26.2