commit: 4a10c00f9b0a83fc034d6ab96258a08bb4061043
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 31 14:33:13 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 31 15:42:22 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a10c00f
dev-python/unittest2: Port to py39
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/unittest2/unittest2-1.1.0.ebuild | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/dev-python/unittest2/unittest2-1.1.0.ebuild
b/dev-python/unittest2/unittest2-1.1.0.ebuild
index 7ef8bf2464c..479a1085f05 100644
--- a/dev-python/unittest2/unittest2-1.1.0.ebuild
+++ b/dev-python/unittest2/unittest2-1.1.0.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
+PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 )
inherit distutils-r1
@@ -16,14 +16,13 @@ SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
-CDEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
+RDEPEND="
dev-python/linecache2[${PYTHON_USEDEP}]
>=dev-python/six-1.4[${PYTHON_USEDEP}]
dev-python/traceback2[${PYTHON_USEDEP}]
"
-DEPEND="${CDEPEND}"
-RDEPEND="${CDEPEND}"
+
+distutils_enable_tests unittest
PATCHES=(
"${FILESDIR}"/remove-argparse-dependence.patch
@@ -31,5 +30,6 @@ PATCHES=(
)
python_test() {
- "${PYTHON}" -m unittest2 discover --verbose || die "tests failed under
${EPYTHON}"
+ "${PYTHON}" -m unittest2 discover --verbose ||
+ die "tests failed under ${EPYTHON}"
}