From c506cbfa926ae934148e9b780242fe0673c937ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 17 Mar 2020 17:55:23 +0100 Subject: [PATCH] dev-python/intelhex: Enable tests, py3.{7,8} MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- ...ntelhex-2.2.1.ebuild => intelhex-2.2.1-r1.ebuild} | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) rename dev-python/intelhex/{intelhex-2.2.1.ebuild => intelhex-2.2.1-r1.ebuild} (59%) diff --git a/dev-python/intelhex/intelhex-2.2.1.ebuild b/dev-python/intelhex/intelhex-2.2.1-r1.ebuild similarity index 59% rename from dev-python/intelhex/intelhex-2.2.1.ebuild rename to dev-python/intelhex/intelhex-2.2.1-r1.ebuild index 2b8b2111c4e2..a2f38563881d 100644 --- a/dev-python/intelhex/intelhex-2.2.1.ebuild +++ b/dev-python/intelhex/intelhex-2.2.1-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 @@ -13,3 +13,13 @@ SRC_URI="mirror://pypi/I/IntelHex/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~mips ~x86" + +distutils_enable_tests setup.py + +src_prepare() { + # upstream don't run their own tests when releasing... + [[ ${PV} == 2.2.1 ]] || die "Revisit on bump" + sed -i -e 's:2.2:&.1:' scripts/*.py || die + + distutils-r1_src_prepare +} -- 2.26.2