1 |
commit: 4a10c00f9b0a83fc034d6ab96258a08bb4061043 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 14:33:13 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 15:42:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a10c00f |
7 |
|
8 |
dev-python/unittest2: Port to py39 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/unittest2/unittest2-1.1.0.ebuild | 14 +++++++------- |
13 |
1 file changed, 7 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/unittest2/unittest2-1.1.0.ebuild b/dev-python/unittest2/unittest2-1.1.0.ebuild |
16 |
index 7ef8bf2464c..479a1085f05 100644 |
17 |
--- a/dev-python/unittest2/unittest2-1.1.0.ebuild |
18 |
+++ b/dev-python/unittest2/unittest2-1.1.0.ebuild |
19 |
@@ -1,9 +1,9 @@ |
20 |
# Copyright 1999-2020 Gentoo Authors |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI=5 |
24 |
+EAPI=7 |
25 |
|
26 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
27 |
+PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) |
28 |
|
29 |
inherit distutils-r1 |
30 |
|
31 |
@@ -16,14 +16,13 @@ SLOT="0" |
32 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
33 |
IUSE="" |
34 |
|
35 |
-CDEPEND=" |
36 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
37 |
+RDEPEND=" |
38 |
dev-python/linecache2[${PYTHON_USEDEP}] |
39 |
>=dev-python/six-1.4[${PYTHON_USEDEP}] |
40 |
dev-python/traceback2[${PYTHON_USEDEP}] |
41 |
" |
42 |
-DEPEND="${CDEPEND}" |
43 |
-RDEPEND="${CDEPEND}" |
44 |
+ |
45 |
+distutils_enable_tests unittest |
46 |
|
47 |
PATCHES=( |
48 |
"${FILESDIR}"/remove-argparse-dependence.patch |
49 |
@@ -31,5 +30,6 @@ PATCHES=( |
50 |
) |
51 |
|
52 |
python_test() { |
53 |
- "${PYTHON}" -m unittest2 discover --verbose || die "tests failed under ${EPYTHON}" |
54 |
+ "${PYTHON}" -m unittest2 discover --verbose || |
55 |
+ die "tests failed under ${EPYTHON}" |
56 |
} |