commit: 300cbb5d658c2ab37a86c0e889954ac0ba704b55
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 21 21:59:28 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 22 08:22:37 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=300cbb5d
dev-python/python-utils: Port up to py3.9
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/python-utils/python-utils-2.3.0.ebuild | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
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 24e371d90eb..1e71d600470 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
-}