dev-python/typed-ast-1.4.0-r1: revbump, port to new helpers, add py38
authorPatrick McLean <chutzpah@gentoo.org>
Sat, 30 Nov 2019 00:18:50 +0000 (16:18 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Sat, 30 Nov 2019 00:44:37 +0000 (16:44 -0800)
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
dev-python/typed-ast/typed-ast-1.4.0-r1.ebuild [moved from dev-python/typed-ast/typed-ast-1.4.0.ebuild with 62% similarity]

similarity index 62%
rename from dev-python/typed-ast/typed-ast-1.4.0.ebuild
rename to dev-python/typed-ast/typed-ast-1.4.0-r1.ebuild
index 6b7dab0ca1c019013dfb91e453aed80c075bc06b..0a92447ceb156efcad18a7cfb0f4bdbe3b7d914c 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{5,6,7} )
+PYTHON_COMPAT=( python3_{5,6,7,8} )
 inherit distutils-r1
 
 DESCRIPTION="Python typed-ast backported"
@@ -13,14 +13,9 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/_}/${P/-/_}.tar.gz"
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
-       test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
 
-S=${WORKDIR}/${P/-/_}
+S="${WORKDIR}/${P/-/_}"
 
-python_test() {
-       pytest -vv || die "Tests fail with ${EPYTHON}"
-}
+distutils_enable_tests pytest