dev-python/pyhamcrest: Port to py39
authorMichał Górny <mgorny@gentoo.org>
Wed, 27 May 2020 08:42:07 +0000 (10:42 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 27 May 2020 08:42:07 +0000 (10:42 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/pyhamcrest/pyhamcrest-1.9.0-r1.ebuild

index 46bbf1b22e5f911fbf92811317f71378fa19e2cf..6c7080cb324b7ab8a53f572bf632b6294834fd61 100644 (file)
@@ -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}"
 }