From 460deb88a1d9df1b3bfd0ed9bc0a0d64119ceab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 31 May 2020 17:27:55 +0200 Subject: [PATCH] dev-python/cmd2: Port to py39 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/cmd2/cmd2-0.10.1.ebuild | 2 +- dev-python/cmd2/cmd2-1.0.2.ebuild | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-python/cmd2/cmd2-0.10.1.ebuild b/dev-python/cmd2/cmd2-0.10.1.ebuild index c6dd48a3be498..e4ce45c0ea6bd 100644 --- a/dev-python/cmd2/cmd2-0.10.1.ebuild +++ b/dev-python/cmd2/cmd2-0.10.1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) inherit distutils-r1 virtualx diff --git a/dev-python/cmd2/cmd2-1.0.2.ebuild b/dev-python/cmd2/cmd2-1.0.2.ebuild index 52af0aec44258..0a10ae6eda419 100644 --- a/dev-python/cmd2/cmd2-1.0.2.ebuild +++ b/dev-python/cmd2/cmd2-1.0.2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) inherit distutils-r1 virtualx @@ -38,3 +38,8 @@ src_test() { local -x COLUMNS=80 virtx distutils-r1_src_test } + +python_test() { + distutils_install_for_testing + pytest -vv || die "Tests failed with ${EPYTHON}" +}