From 300cbb5d658c2ab37a86c0e889954ac0ba704b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 21 Nov 2020 22:59:28 +0100 Subject: dev-python/python-utils: Port up to py3.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/python-utils/python-utils-2.3.0.ebuild | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'dev-python/python-utils/python-utils-2.3.0.ebuild') diff --git a/dev-python/python-utils/python-utils-2.3.0.ebuild b/dev-python/python-utils/python-utils-2.3.0.ebuild index 24e371d90eb6..1e71d600470d 100644 --- a/dev-python/python-utils/python-utils-2.3.0.ebuild +++ b/dev-python/python-utils/python-utils-2.3.0.ebuild @@ -2,8 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7} pypy3) -PATCHES=( "${FILESDIR}"/${P}-pytest-runner.patch ) +PYTHON_COMPAT=( python3_{6..9} pypy3) inherit distutils-r1 @@ -15,17 +14,15 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" -RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}]" -BDEPEND="${RDEPEND} - dev-python/pytest-flakes[${PYTHON_USEDEP}]" +RDEPEND="dev-python/six[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}"/${P}-pytest-runner.patch ) + +distutils_enable_tests pytest python_prepare_all() { find . -name '__pycache__' -prune -exec rm -rf {} \; || die "Cleaning __pycache__ failed" find . -name '*.pyc' -exec rm -f {} \; || die "Cleaning *.pyc failed" + sed -i -e '/--cov/d' -e '/--pep8/d' -e '/--flakes/d' pytest.ini || die distutils-r1_python_prepare_all } - -python_test() { - pytest -v || die -} -- cgit v1.2.3