# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3)
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3)
inherit distutils-r1
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="idna test"
-RESTRICT="!test? ( test )"
+IUSE="idna"
-DEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
+RDEPEND="
idna? ( dev-python/idna[${PYTHON_USEDEP}] )
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
-RDEPEND=""
+BDEPEND="
+ test? ( dev-python/idna[${PYTHON_USEDEP}] )
+"
-python_test() {
- py.test -vv || die
-}
+distutils_enable_tests pytest