From 07cb63a1c6ccd046d33c27d5b7e7d6d708878744 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 27 May 2020 10:42:07 +0200 Subject: [PATCH] dev-python/pyhamcrest: Port to py39 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pyhamcrest/pyhamcrest-1.9.0-r1.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-python/pyhamcrest/pyhamcrest-1.9.0-r1.ebuild b/dev-python/pyhamcrest/pyhamcrest-1.9.0-r1.ebuild index 46bbf1b22e5f..6c7080cb324b 100644 --- a/dev-python/pyhamcrest/pyhamcrest-1.9.0-r1.ebuild +++ b/dev-python/pyhamcrest/pyhamcrest-1.9.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} ) +PYTHON_COMPAT=( python2_7 python3_{6..9} ) inherit distutils-r1 @@ -21,9 +21,9 @@ IUSE="examples test" RESTRICT="!test? ( test )" RDEPEND=">=dev-python/six-1.4[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] +DEPEND=" test? ( + ${RDEPEND} >=dev-python/pytest-2.6[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] )" @@ -50,7 +50,7 @@ python_prepare_all() { } python_test() { - py.test -vv || die "Tests failed under ${EPYTHON}" + pytest -vv || die "Tests failed under ${EPYTHON}" "${EPYTHON}" tests/object_import.py || die "Tests failed under ${EPYTHON}" } -- 2.26.2