mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/unittest2: Port to py39
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user