# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
+EAPI=7
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} )
PYTHON_REQ_USE="ncurses"
inherit distutils-r1
HOMEPAGE="https://ranger.github.io/"
LICENSE="GPL-3"
SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
RDEPEND="virtual/pager"
-DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest
src_prepare() {
# use versioned doc path
distutils-r1_src_prepare
}
-python_test() {
- py.test -v tests/ranger || die "Tests failed under ${EPYTHON}"
-}
-
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Ranger has many optional dependencies to support enhanced file previews."
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
+EAPI=7
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} )
PYTHON_REQ_USE="ncurses"
inherit distutils-r1
HOMEPAGE="https://ranger.github.io/"
LICENSE="GPL-3"
SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
RDEPEND="virtual/pager"
-DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest
src_prepare() {
# use versioned doc path
distutils-r1_src_prepare
}
-python_test() {
- py.test -v tests/ranger || die "Tests failed under ${EPYTHON}"
-}
-
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Ranger has many optional dependencies to support enhanced file previews."